From 72de33c4f15144e7c597fad850510dd7da88a0f2 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 14 Feb 2022 00:28:11 +0100 Subject: Refactored main.c into many files --- src/cmd.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/cmd.h (limited to 'src/cmd.h') 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 + +#include + +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; -- cgit v1.2.3-71-gd317