summaryrefslogtreecommitdiffstats
path: root/eurephiadm/eurephiadm.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-02 21:46:37 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-02 21:46:37 +0100
commitce2be0ed68d81efa18792fe50f66135f1b12e7b0 (patch)
treeab87b9007ea35043305bb973908ccef7ef677555 /eurephiadm/eurephiadm.c
parent9125da7fbf599c7e83aad575774c288ed463fca1 (diff)
downloadeurephia-ce2be0ed68d81efa18792fe50f66135f1b12e7b0.tar.gz
eurephia-ce2be0ed68d81efa18792fe50f66135f1b12e7b0.tar.xz
eurephia-ce2be0ed68d81efa18792fe50f66135f1b12e7b0.zip
Moved all declarations which has to do with commands into commands.h
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);