From 09171d137882f80de8584a5adec1ac13c7718a4e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 Nov 2005 15:07:29 +0000 Subject: [PATCH] Allow inspection of result set options with rget command --- zoom/zoomsh.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 111f629..3f31b1a 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zoomsh.c,v 1.37 2005-06-25 15:46:08 adam Exp $ + * $Id: zoomsh.c,v 1.38 2005-11-01 15:07:29 adam Exp $ */ /* ZOOM-C Shell */ @@ -122,6 +122,29 @@ static void cmd_get (ZOOM_connection *c, ZOOM_resultset *r, } } +static void cmd_rget(ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + char key[40]; + if (next_token_copy (args, key, sizeof(key)) < 0) + { + printf ("missing argument for get\n"); + } + else + { + int i; + for (i = 0; i"); + } + } +} + static void cmd_close (ZOOM_connection *c, ZOOM_resultset *r, ZOOM_options options, const char **args) @@ -488,6 +511,8 @@ static int cmd_parse (ZOOM_connection *c, ZOOM_resultset *r, cmd_set (c, r, options, buf); else if (is_command ("get", cmd_str, cmd_len)) cmd_get (c, r, options, buf); + else if (is_command ("rget", cmd_str, cmd_len)) + cmd_rget (c, r, options, buf); else if (is_command ("connect", cmd_str, cmd_len)) cmd_connect (c, r, options, buf); else if (is_command ("open", cmd_str, cmd_len)) -- 1.7.10.4