Add ZOOM_connection_close
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Feb 2010 11:39:26 +0000 (12:39 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Feb 2010 11:39:26 +0000 (12:39 +0100)
include/yaz/zoom.h
src/zoom-c.c

index c8e1130..1f0e3c4 100644 (file)
@@ -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);
index 14922ac..4a208b3 100644 (file)
@@ -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