From 30b68ac32ab0516934cee67a076b53b0cb85c6d9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 27 Aug 2009 22:05:29 +0200 Subject: [PATCH] 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". --- zoom/zoomsh.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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