aboutsummaryrefslogtreecommitdiff
path: root/test/fuzz/fuzzer.h
blob: 32655321f4d73345be8786e62c8e5f1a827ed02b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef FUZZER_H
#define FUZZER_H

enum CmdStatus {
	CMD_FAIL = false,
	CMD_OK = true,
	CMD_ERR,          /* syntax error */
	CMD_QUIT,         /* quit, accept no further commands */
};

static const char *cmd_status_msg[] = {
	[CMD_FAIL] = "Fail\n",
	[CMD_OK]   = "",
	[CMD_ERR]  = "Syntax error\n",
	[CMD_QUIT] = "Bye\n",
};

#endif