diff options
Diffstat (limited to 'src/cmd.h')
| -rw-r--r-- | src/cmd.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h new file mode 100644 index 0000000..26f572b --- /dev/null +++ b/src/cmd.h @@ -0,0 +1,18 @@ +#pragma once + +#include <wchar.h> + +#include <stdbool.h> + +typedef bool (*cmd_func)(const wchar_t *args); + +struct cmd { + const wchar_t *name; + cmd_func func; +}; + +void cmd_init(void); + +extern const struct cmd commands[]; +extern const size_t command_count; +extern wchar_t *cmd_status; |
