1 /* src/client/command_db.h
3 * The Command DB collects identifiers and verbal descriptions of all commands
10 #include <stdint.h> /* uint8_t */
16 char * dsc_short; /* short string name of command to be used internally */
17 char * dsc_long; /* long string description of command for the user */
18 uint8_t id; /* unique identifier of command */
23 struct Command * cmds; /* memory area for sequence of all Command structs */
24 uint8_t n; /* number of Command structs in database */
29 /* Give short description of command ("dsc_short"), get its ID. */
30 extern uint8_t get_command_id(char * dsc_short);
32 /* Give short description of command ("dsc_short"), get long description. */
33 extern char * get_command_longdsc(char * dsc_short);
35 /* Reads CommandDB from CommandDB file, line by line, until first empty line. */
36 extern void init_command_db();
38 /* Free all memory allocated with init_command_db. */
39 extern void free_command_db();