From 8f9336e0c12827b77b82a5ab30897f12b2a2ac71 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 20 Dec 2006 05:37:33 +0000 Subject: Add "config" command to access config UI --- src/hci/commands/config_cmd.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/hci/commands/config_cmd.c (limited to 'src/hci') diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c new file mode 100644 index 000000000..fc21c67f9 --- /dev/null +++ b/src/hci/commands/config_cmd.c @@ -0,0 +1,35 @@ +#include +#include +#include +#include +#include + + +#include +extern struct nvo_block *ugly_nvo_hack; + + +static int config_exec ( int argc, char **argv ) { + struct config_context dummy_context; + + if ( argc != 1 ) { + printf ( "Usage: %s\n" + "Opens the option configuration console\n", argv[0] ); + return 1; + } + + if ( ! ugly_nvo_hack ) { + printf ( "No non-volatile option storage available\n" ); + return 1; + } + + dummy_context.options = ugly_nvo_hack->options; + settings_ui ( &dummy_context ); + + return 0; +} + +struct command config_command __command = { + .name = "config", + .exec = config_exec, +}; -- cgit v1.2.3-55-g7522