- nmem_init ();
-
- zs = zebra_start("t2.cfg");
- zh = zebra_open (zs);
- zebra_select_database(zh, "Default");
- zebra_begin_trans (zh, 1);
- zebra_record_insert (zh, myrec, strlen(myrec));
-
- hits = zebra_search_PQF (zh, "@attr 1=4 my", "set1");
- printf ("hits: %d\n", hits);
+int main(int argc, char **argv)
+{
+ ZebraService zs = start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs, 0);