From: Adam Dickmeiss Date: Tue, 23 Feb 2010 11:39:26 +0000 (+0100) Subject: Add ZOOM_connection_close X-Git-Tag: v4.0.2~13 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f49f756835c48c2d083ef5f2b24bbaf499ebd98e;p=yaz-moved-to-github.git Add ZOOM_connection_close --- diff --git a/include/yaz/zoom.h b/include/yaz/zoom.h index c8e1130..1f0e3c4 100644 --- a/include/yaz/zoom.h +++ b/include/yaz/zoom.h @@ -74,6 +74,9 @@ ZOOM_API(void) ZOOM_connection_connect(ZOOM_connection c, const char *host, int portnum); +ZOOM_API(void) +ZOOM_connection_close(ZOOM_connection c); + /* destroy connection (close connection also) */ ZOOM_API(void) ZOOM_connection_destroy(ZOOM_connection c); diff --git a/src/zoom-c.c b/src/zoom-c.c index 14922ac..4a208b3 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -4670,6 +4670,11 @@ ZOOM_API(int) ZOOM_connection_get_timeout(ZOOM_connection c) return ZOOM_options_get_int(c->options, "timeout", 30); } +ZOOM_API(void) ZOOM_connection_close(ZOOM_connection c) +{ + do_close(c); +} + /* * Local variables: * c-basic-offset: 4