mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 22:16:21 +00:00
Seperated command functions into module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user