X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=zoom%2Fzoom-c.c;h=04fb7e83c92ce062f432ec5fc22860a4e92b7599;hb=fd2f1538cdb20385c2c267d318c59d567eb3d242;hp=436fae92fb8fdd6bb038b71453c1372bb94442c3;hpb=15f2d80b134fa41e213f6328440d1a25f80efd97;p=yaz-moved-to-github.git diff --git a/zoom/zoom-c.c b/zoom/zoom-c.c index 436fae9..04fb7e8 100644 --- a/zoom/zoom-c.c +++ b/zoom/zoom-c.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-c.c,v 1.8 2001-11-15 21:59:40 adam Exp $ + * $Id: zoom-c.c,v 1.9 2001-11-16 09:52:39 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -236,6 +236,8 @@ void Z3950_connection_connect(Z3950_connection c, else c->host_port = xstrdup(host); + Z3950_options_set(c->options, "host", c->host_port); + c->async = Z3950_options_get_bool (c->options, "async", 0); task = Z3950_connection_add_task (c, Z3950_TASK_CONNECT); @@ -259,11 +261,6 @@ Z3950_query Z3950_query_create(void) return s; } -const char *Z3950_connection_host (Z3950_connection c) -{ - return c->host_port; -} - void Z3950_query_destroy(Z3950_query s) { if (!s)