From f49f756835c48c2d083ef5f2b24bbaf499ebd98e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 23 Feb 2010 12:39:26 +0100 Subject: [PATCH] Add ZOOM_connection_close --- include/yaz/zoom.h | 3 +++ src/zoom-c.c | 5 +++++ 2 files changed, 8 insertions(+) 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 -- 1.7.10.4