remove unused code, cleanup & shorten parse_message() function;

hide commands[] table; make it's contents accessible using a function
This commit is contained in:
marschap
2005-06-28 17:12:30 +00:00
parent bf1c2688c2
commit f9d35cad9e
3 changed files with 129 additions and 280 deletions
+4 -3
View File
@@ -19,13 +19,14 @@
point to a function to call, defined below.
*/
typedef int (*CommandFunc) (Client * c, int argc, char **argv);
typedef struct client_function {
char *keyword;
int (*function) (Client * c, int argc, char **argv);
CommandFunc function;
} client_function;
/* FIXME? Do these really need to be visible from other sources?*/
extern client_function commands[];
CommandFunc get_command_function(char *cmd);
#endif