From dfff2351c1cf010650e27533806e49de45ec146f Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 2 Dec 2008 22:25:04 +0100 Subject: Added command for editing eurephia config (in database) --- eurephiadm/commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eurephiadm/commands.h') diff --git a/eurephiadm/commands.h b/eurephiadm/commands.h index 141fadd..242a5c8 100644 --- a/eurephiadm/commands.h +++ b/eurephiadm/commands.h @@ -41,16 +41,18 @@ int cmd_ShowCfg(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, /* Commands listed are found in ./commands/{command}.c files - one file per command*/ int cmd_ListUsers(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv); +int cmd_EditConfig(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv); /* Declaration of all commands */ static const eurephiadm_functions cmdline_functions[] = { - // command, need_session, arghints, helpinfo, helpdescr, function + // command, need_session, arghints, helpinfo, helpdescr, function {"help", 0, NULL, "This help screen", NULL, cmd_Help}, {"logout", 1, NULL, "Logout from an open session", NULL, cmd_Logout}, {"listusers", 1, NULL, "List all registered users", NULL, cmd_ListUsers}, {"show-config", 1, NULL, "List all config settings", NULL, cmd_ShowCfg}, {"show-configfile", 0, NULL, "List only config file settings", NULL, cmd_ShowCfg}, + {"config", 1, "[-s|-d] ", "Add, delete or show one config setting", NULL, cmd_EditConfig}, {NULL, 0, NULL, NULL, NULL, NULL} }; -- cgit