X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=37b487b94a5d7f734b199b7c9534c7f811f23942;hb=9241daf8b3104b67b2801872d0e07d6762f78b47;hp=fb538f36c96526a2f670342b0c41b50e8d19d6d5;hpb=db585d7fcb8319fa86543eb062df7fdaf16858c6;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index fb538f3..37b487b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.15 2003-02-17 21:23:31 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 @@ -185,6 +186,8 @@ static void cmd_show (ZOOM_connection *c, ZOOM_resultset *r, display_records (c[i], r[i], start, count); } } + ZOOM_options_set (options, "count", "0"); + ZOOM_options_set (options, "start", "0"); } static void cmd_ext (ZOOM_connection *c, ZOOM_resultset *r, @@ -295,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