- nmem_init ();
-
- zs = start_service();
- zh = zebra_open (zs);
- zebra_select_database(zh, "Default");
- zebra_init(zh);
- zebra_begin_trans (zh, 1);
-
- zebra_add_record (zh, myrec, strlen(myrec));
-
- zebra_search_PQF (zh, "@attr 1=4 my", "set1", &hits);
- if (hits != 1)
- {
- yaz_log(LOG_FATAL, "Expected 1 hit. Got %d", hits);
- exit_code = 1;
- }
+int main(int argc, char **argv)
+{
+ ZebraService zs = start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs);