Command help now looked up

No longer need to write help strings in windows.c
Usage and help are part of the command structure
This commit is contained in:
James Booth
2012-08-14 22:06:27 +01:00
parent 4f4f780e60
commit 9fd7b2b3c2
3 changed files with 100 additions and 30 deletions

View File

@@ -23,9 +23,18 @@
#ifndef COMMAND_H
#define COMMAND_H
// command help strings
struct cmd_help_t {
const gchar *usage;
const gchar *short_help;
};
void command_init(void);
gboolean process_input(char *inp);
char * cmd_complete(char *inp);
void reset_command_completer(void);
GSList * cmd_get_help_list_basic(void);
GSList * cmd_get_help_list_settings(void);
GSList * cmd_get_help_list_status(void);
#endif