From b7e8a3f1caf54145d750209f2e14b5b54c61769b Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 May 2008 14:35:45 +0200 Subject: [PATCH] net registry: add a getvalueraw command to print the value in raw format. Michael --- source/utils/net_registry.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/utils/net_registry.c b/source/utils/net_registry.c index 73cbbaaa0d3..6b3f6ffbaa2 100644 --- a/source/utils/net_registry.c +++ b/source/utils/net_registry.c @@ -306,6 +306,12 @@ static int net_registry_getvalue(struct net_context *c, int argc, return net_registry_getvalue_internal(c, argc, argv, false); } +static int net_registry_getvalueraw(struct net_context *c, int argc, + const char **argv) +{ + return net_registry_getvalue_internal(c, argc, argv, true); +} + static int net_registry_setvalue(struct net_context *c, int argc, const char **argv) { @@ -468,6 +474,11 @@ int net_registry(struct net_context *c, int argc, const char **argv) net_registry_getvalue, "Print a registry value", }, + { + "getvalueraw", + net_registry_getvalueraw, + "Print a registry value (raw format)", + }, { "setvalue", net_registry_setvalue,