-/* $Id: zebraapi.c,v 1.244 2007-01-16 15:31:23 adam Exp $
+/* $Id: zebraapi.c,v 1.245 2007-01-17 13:22:53 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
zh->m_staticrank = 0;
zh->m_segment_indexing = 0;
+ zh->busy_handler_func = 0;
+ zh->busy_handler_data = 0;
+
default_encoding = res_get_def(zh->session_res, "encoding", "ISO-8859-1");
zh->iconv_to_utf8 =
zh->partial_result = 1;
}
+
+ZEBRA_RES zebra_set_busy_handler(ZebraHandle zh,
+ int (*f)(void *client_data, ZebraHandle zh),
+ void *client_data)
+{
+ zh->busy_handler_func = f;
+ zh->busy_handler_data = client_data;
+ return ZEBRA_OK;
+}
+
ZEBRA_RES zebra_search_RPN_x(ZebraHandle zh, ODR o, Z_RPNQuery *query,
const char *setname, zint *hits,
int *estimated_hit_count,