Seperated command functions into module

This commit is contained in:
James Booth
2013-12-15 16:10:32 +00:00
parent 447d235868
commit 2490f5b417
7 changed files with 2566 additions and 2492 deletions

View File

@@ -25,15 +25,10 @@
#include <glib.h>
// Command help strings
typedef struct cmd_help_t {
const gchar *usage;
const gchar *short_help;
const gchar *long_help[50];
} CommandHelp;
GHashTable *commands;
void cmd_init(void);
void cmd_close(void);
void cmd_uninit(void);
void cmd_autocomplete(char *input, int *size);
void cmd_reset_autocomplete(void);
@@ -49,6 +44,4 @@ void cmd_history_append(char *inp);
char *cmd_history_previous(char *inp, int *size);
char *cmd_history_next(char *inp, int *size);
gboolean _cmd_rooms(gchar **args, struct cmd_help_t help);
#endif