X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fzoom.h;h=668ff84004c01def74b86f299baa797a2dd37b03;hb=15e7414994200ceccc20195f084a574f9b30ad1f;hp=1f0e3c44e22755a99d0adb301b032bdb9154dfc1;hpb=f49f756835c48c2d083ef5f2b24bbaf499ebd98e;p=yaz-moved-to-github.git diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index 1f0e3c4..668ff84 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -170,6 +170,14 @@ ZOOM_connection_search_pqf(ZOOM_connection c, const char *q); ZOOM_API(void) ZOOM_resultset_destroy(ZOOM_resultset r); +/** release result set from connection. + + The result will will no longer be able to perform retrievals + from the connection from which it was created. +*/ +ZOOM_API(void) +ZOOM_resultset_release(ZOOM_resultset r); + /* result set option */ ZOOM_API(const char *) ZOOM_resultset_option_get(ZOOM_resultset r, const char *key); @@ -416,6 +424,20 @@ ZOOM_API(int) ZOOM_connection_process(ZOOM_connection c); +/** \brief executes non-blocking tasks for connection + \param c connection + \retval 0 no task was executed + \retval 1 task was executed (but probably not completed) + + This function, unlike, ZOOM_connection_process, does not try to + return any events (and remove them). But events may be generated + from it. These are saved and may later be retrieved with + ZOOM_connection_process and ZOOM_connection_last_event . +*/ +ZOOM_API(int) +ZOOM_connection_exec_task(ZOOM_connection c); + + /** \brief get socket fd for ZOOM connection \param c connection \retval -1 no socket assigned for connection @@ -477,7 +499,6 @@ ZOOM_API(int) ZOOM_connection_fire_event_socket(ZOOM_connection c, int mask); - /** \brief peek at next event \param c connection \returns ZOOM_EVENT_NONE (for no events in queue), ZOOM_EVENT_CONNECT, ..