X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=37b487b94a5d7f734b199b7c9534c7f811f23942;hb=9241daf8b3104b67b2801872d0e07d6762f78b47;hp=d61919d8ceb6956aee8a94285ee018345a333a9d;hpb=a2691350ad223dd62d441fab573cd3cb241a14b3;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index d61919d..37b487b 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.18 2003-03-03 19:57:36 adam Exp $ * * ZOOM-C Shell */ @@ -19,6 +19,7 @@ #include #include +#include #include #define MAX_CON 100 @@ -297,6 +298,43 @@ 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