X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=37b487b94a5d7f734b199b7c9534c7f811f23942;hb=2a8b6ee438067fd3cc2f85685b727d726136bfb8;hp=80970661384f7a25f519e2c8b53875f966dc9f17;hpb=d9d97a04b6f9597225b8440dad61790dfa39a751;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 8097066..37b487b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.14 2003-02-17 14:35:42 adam Exp $ + * $Id: zoomsh.c,v 1.18 2003-03-03 19:57:36 adam Exp $ * * ZOOM-C Shell */ @@ -18,6 +18,8 @@ #include +#include +#include #include #define MAX_CON 100 @@ -184,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, @@ -227,6 +231,13 @@ static void cmd_ext (ZOOM_connection *c, ZOOM_resultset *r, } } +static void cmd_debug (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + yaz_log_init_level(LOG_ALL); +} + static void cmd_search (ZOOM_connection *c, ZOOM_resultset *r, ZOOM_options options, const char **args) @@ -287,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