From: Adam Dickmeiss Date: Thu, 27 Aug 2009 20:05:29 +0000 (+0200) Subject: Extend zoomsh's show command WRT type X-Git-Tag: v3.0.48~3^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=30b68ac32ab0516934cee67a076b53b0cb85c6d9;p=yaz-moved-to-github.git Extend zoomsh's show command WRT type zoomsh's show command takes a new 3rd optional parameter which is the type as passed to ZOOM_record_get. Default is "render". --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 363b1e0..a6da27d 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -173,7 +173,7 @@ static void cmd_close(ZOOM_connection *c, ZOOM_resultset *r, static void display_records(ZOOM_connection c, ZOOM_resultset r, - int start, int count) + int start, int count, const char *type) { int i; for (i = 0; i= 0) ZOOM_options_set(options, "start", start_str); @@ -237,6 +238,9 @@ static void cmd_show(ZOOM_connection *c, ZOOM_resultset *r, if (next_token_copy(args, count_str, sizeof(count_str)) >= 0) ZOOM_options_set(options, "count", count_str); + if (next_token_copy(args, render_str, sizeof(render_str)) >= 0) + type = render_str; + for (i = 0; i