X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=eac09f056af21cbfc9c5b4994c7150f200606ae5;hb=6aea41e619e9ec72167483465ca959715faa8e55;hp=5d6a0990597165bc5b17a7cfaf5595e73955ca09;hpb=c781b528c69927871c62cff33e94c87ce251bde9;p=paraslash.git diff --git a/command.c b/command.c index 5d6a0990..eac09f05 100644 --- a/command.c +++ b/command.c @@ -40,12 +40,16 @@ #include "signal.h" #include "version.h" +typedef int server_command_handler_t(struct command_context *); +static server_command_handler_t SERVER_COMMAND_HANDLERS; +server_command_handler_t AFS_COMMAND_HANDLERS; + /* 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 *); + server_command_handler_t *handler; /* The privileges a user must have to execute this command. */ unsigned int perms; /* One-line description of the command. */