summaryrefslogtreecommitdiffstats
path: root/eurephiadm/eurephiadm.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/eurephiadm.c')
-rw-r--r--eurephiadm/eurephiadm.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c
index f9dc7ed..8eac0a6 100644
--- a/eurephiadm/eurephiadm.c
+++ b/eurephiadm/eurephiadm.c
@@ -44,33 +44,6 @@
#define MAX_ARGUMENTS 64
-typedef struct {
- char *command;
- int need_session;
- char *arghint;
- char *helpinfo;
- char *helpdescr;
- int (*function)(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *, int argc, char **argv);
-} eurephiadm_functions;
-
-/* eurephiadm commands located in this file */
-int cmd_Help(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv);
-int cmd_Logout(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv);
-int cmd_ShowCfg(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv);
-
-
-// Other commands are declared in ./commands.h and the function implemented in
-// ./commands/*.c ... where each command should have their own file.
-
-static const eurephiadm_functions cmdline_functions[] = {
- {"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},
- {NULL, 0, NULL, NULL, NULL}
-};
-
char *print_version(char *fprg) {
char *prg = basename(fprg);