Change prototype of busyhandler
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Jan 2007 13:51:36 +0000 (13:51 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Jan 2007 13:51:36 +0000 (13:51 +0000)
include/idzebra/api.h
index/zebraapi.c
index/zebrasrv.c

index 3b7268a..52154c4 100644 (file)
@@ -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                                
index ccf5f3b..9f907d0 100644 (file)
@@ -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;
index bbc354a..47e21cf 100644 (file)
@@ -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))