X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=2db2d9cccabde3f90252e90fdc987fea4444f530;hp=175b496ca799820bc5d891676f71970d31ba7cc9;hb=7f4c8ebb15388f1ffde4bc2dd956f11522797a95;hpb=e70beecd3fa6378aadf8773660741873023befcf diff --git a/command.c b/command.c index 175b496c..2db2d9cc 100644 --- a/command.c +++ b/command.c @@ -40,6 +40,22 @@ #include "signal.h" #include "version.h" +/* Defines one command of para_server. */ +struct server_command { + /* The name of the command. */ + const char *name; + /* Pointer to the function that handles the command. */ + int (*handler)(struct command_context *); + /* The privileges a user must have to execute this command. */ + unsigned int perms; + /* One-line description of the command. */ + const char *description; + /* Summary of the command line options. */ + const char *usage; + /* The long help text. */ + const char *help; +}; + static struct server_command afs_cmds[] = {DEFINE_AFS_CMD_ARRAY}; static struct server_command server_cmds[] = {DEFINE_SERVER_CMD_ARRAY};