aboutsummaryrefslogtreecommitdiff
path: root/commandHandler.c
blob: 9d158f3ad7bb255240983d9c572a655f7a0b79e7 (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 *name, F_EXECUTOR executor) {
	struct CommandHandler newCH;
	newCH.p_name = name;
	newCH.p_executor = executor;

	handlers[handlerCount++] = newCH;
}