-/* $Id: zebrasrv.c,v 1.8 2007-01-17 13:51:36 adam Exp $
+/* $Id: zebrasrv.c,v 1.10 2007-02-02 13:48:13 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
}
-static int busy_handler(void *client_data)
+static int break_handler(void *client_data)
{
bend_association assoc =(bend_association) client_data;
if (!bend_assoc_is_alive(assoc))
zebra_result (zh, &r->errcode, &r->errstring);
return 0;
}
- zebra_set_busy_handler(zh, busy_handler, r->association);
+ zebra_set_break_handler(zh, break_handler, r->association);
yaz_log (YLOG_DEBUG, "ResultSet '%s'", r->setname);
switch (r->query->which)
{
default:
r->errcode = YAZ_BIB1_QUERY_TYPE_UNSUPP;
}
- zebra_set_busy_handler(zh, 0, 0);
+ zebra_set_break_handler(zh, 0, 0);
return 0;
}
zebra_stop((ZebraService) sob->handle);
res_set(default_res, "profilePath", DEFAULT_PROFILE_PATH);
res_set(default_res, "modulePath", DEFAULT_MODULE_PATH);
- sob->handle = zebra_start(sob->configname);
+ sob->handle = zebra_start_res(sob->configname, default_res, 0);
res_close(default_res);
if (!sob->handle)
{