aboutsummaryrefslogtreecommitdiff
path: root/src/commandHandler.c
blob: 54b0c7f9db489ced00650707499555518c0832d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "commandHandler.h"

struct CommandHandler handlers[MAX_HANDLERS];

int handlerCount = 0;

void registerHandler(char *p_name, P_EXECUTOR p_executor) {
	struct CommandHandler newCH;
	newCH.p_name = p_name;
	newCH.p_executor = p_executor;

	handlers[handlerCount++] = newCH;
}