diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-02-14 00:28:11 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-02-14 00:28:11 +0100 |
| commit | 72de33c4f15144e7c597fad850510dd7da88a0f2 (patch) | |
| tree | 7d349ba78f168359866b98b9424238d50e58e7f0 /src/cmd.h | |
| parent | 12b6c9dfd009352e0bb7f8395abd3678e3bd6265 (diff) | |
| download | tmus-72de33c4f15144e7c597fad850510dd7da88a0f2.tar.gz tmus-72de33c4f15144e7c597fad850510dd7da88a0f2.zip | |
Refactored main.c into many files
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; |
