X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=24746d26a5c033c9f5c7ce5d45ec83897b91ecd3;hp=e403a17137f9e453e3ea47b796ff5b76c2a122c0;hb=13671e7cc0f3dd4e4b02f94d64a50778c5696ba6;hpb=b340923765c14d2ba050a171bb557474044d7e6a diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index e403a17..24746d2 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.6 2001-11-16 10:18:20 adam Exp $ + * $Id: zoomsh.c,v 1.7 2001-11-18 21:14:23 adam Exp $ * * ZOOM-C Shell */ @@ -64,8 +64,8 @@ static int is_command (const char *cmd_str, const char *this_str, int this_len) return 1; } -static void cmd_set (Z3950_connection *c, Z3950_resultset *r, - Z3950_options options, +static void cmd_set (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, const char **args) { char key[40], val[80]; @@ -77,15 +77,15 @@ static void cmd_set (Z3950_connection *c, Z3950_resultset *r, } if (!next_token_copy (args, val, sizeof(val))) { - const char *val = Z3950_options_get(options, key); + const char *val = ZOOM_options_get(options, key); printf ("%s = %s\n", key, val ? val : ""); } else - Z3950_options_set(options, key, val); + ZOOM_options_set(options, key, val); } -static void cmd_close (Z3950_connection *c, Z3950_resultset *r, - Z3950_options options, +static void cmd_close (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, const char **args) { char host[60]; @@ -96,33 +96,33 @@ static void cmd_close (Z3950_connection *c, Z3950_resultset *r, const char *h; if (!c[i]) continue; - if ((h = Z3950_connection_option_get(c[i], "host")) + if ((h = ZOOM_connection_option_get(c[i], "host")) && !strcmp (h, host)) { - Z3950_connection_destroy (c[i]); + ZOOM_connection_destroy (c[i]); c[i] = 0; } else if (*host == '\0') { - Z3950_connection_destroy (c[i]); + ZOOM_connection_destroy (c[i]); c[i] = 0; } } } -static void display_records (Z3950_connection c, - Z3950_resultset r, +static void display_records (ZOOM_connection c, + ZOOM_resultset r, int start, int count) { int i; for (i = 0; i\n"); @@ -254,8 +254,8 @@ static void cmd_help (Z3950_connection *c, Z3950_resultset *r, printf (" implementationName\n"); } -static void cmd_connect (Z3950_connection *c, Z3950_resultset *r, - Z3950_options options, +static void cmd_connect (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, const char **args) { int error; @@ -270,10 +270,10 @@ static void cmd_connect (Z3950_connection *c, Z3950_resultset *r, for (j = -1, i = 0; i