From 740efa6658c17158058f161b0230b7718b6bd051 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 2 Sep 2021 08:44:13 +0300 Subject: (1) Added current implementations: shell input handling --- commandHandler.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 commandHandler.c (limited to 'commandHandler.c') diff --git a/commandHandler.c b/commandHandler.c new file mode 100644 index 0000000..9d158f3 --- /dev/null +++ b/commandHandler.c @@ -0,0 +1,13 @@ +#include "commandHandler.h" + +struct CommandHandler handlers[MAX_HANDLERS]; + +int handlerCount = 0; + +void registerHandler(char *name, F_EXECUTOR executor) { + struct CommandHandler newCH; + newCH.p_name = name; + newCH.p_executor = executor; + + handlers[handlerCount++] = newCH; +} -- cgit v1.2.3