From: Adam Dickmeiss Date: Mon, 24 Feb 2003 13:14:49 +0000 (+0000) Subject: Added scan X-Git-Tag: YAZ.2.0.1~58 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1167a422a06ea4d4a4b0c14a9f6df5042790f99e;p=yaz-moved-to-github.git Added scan --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index d61919d..270942b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.16 2003-02-23 15:24:27 adam Exp $ + * $Id: zoomsh.c,v 1.17 2003-02-24 13:14:49 adam Exp $ * * ZOOM-C Shell */ @@ -297,6 +297,42 @@ static void cmd_search (ZOOM_connection *c, ZOOM_resultset *r, ZOOM_query_destroy (s); } +static void cmd_scan (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + const char *start_term = *args; + int i; + ZOOM_scanset s[MAX_CON]; + + while (*start_term == ' ') + start_term++; + + for (i = 0; i\n"); printf ("search \n"); printf ("show [ []\n"); + printf ("scan \n"); printf ("quit\n"); printf ("close \n"); printf ("set