From: Adam Dickmeiss Date: Wed, 17 Jan 2007 13:51:36 +0000 (+0000) Subject: Change prototype of busyhandler X-Git-Tag: ZEBRA.2.0.10~4 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=af90f7f836a48a8e4bf6d5c2fc15c7133bac06f3;p=idzebra-moved-to-github.git Change prototype of busyhandler --- diff --git a/include/idzebra/api.h b/include/idzebra/api.h index 3b7268a..52154c4 100644 --- a/include/idzebra/api.h +++ b/include/idzebra/api.h @@ -1,4 +1,4 @@ -/* $Id: api.h,v 1.44 2007-01-17 13:22:53 adam Exp $ +/* $Id: api.h,v 1.45 2007-01-17 13:51:36 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -499,7 +499,7 @@ ZEBRA_RES zebra_set_limit(ZebraHandle zh, int complement_flag, zint *ids); YAZ_EXPORT ZEBRA_RES zebra_set_busy_handler(ZebraHandle zh, - int (*f)(void *client_data, ZebraHandle zh), + int (*f)(void *client_data), void *client_data); YAZ_END_CDECL diff --git a/index/zebraapi.c b/index/zebraapi.c index ccf5f3b..9f907d0 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.245 2007-01-17 13:22:53 adam Exp $ +/* $Id: zebraapi.c,v 1.246 2007-01-17 13:51:36 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -1025,7 +1025,7 @@ void zebra_set_partial_result(ZebraHandle zh) ZEBRA_RES zebra_set_busy_handler(ZebraHandle zh, - int (*f)(void *client_data, ZebraHandle zh), + int (*f)(void *client_data), void *client_data) { zh->busy_handler_func = f; diff --git a/index/zebrasrv.c b/index/zebrasrv.c index bbc354a..47e21cf 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -1,4 +1,4 @@ -/* $Id: zebrasrv.c,v 1.7 2007-01-17 13:22:53 adam Exp $ +/* $Id: zebrasrv.c,v 1.8 2007-01-17 13:51:36 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -262,7 +262,7 @@ static void search_terms(ZebraHandle zh, bend_search_rr *r) } -static int busy_handler(void *client_data, ZebraHandle zh) +static int busy_handler(void *client_data) { bend_association assoc =(bend_association) client_data; if (!bend_assoc_is_alive(assoc))