aboutsummaryrefslogtreecommitdiff
path: root/test/fuzz/fuzzer.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzz/fuzzer.h')
-rw-r--r--test/fuzz/fuzzer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/fuzz/fuzzer.h b/test/fuzz/fuzzer.h
new file mode 100644
index 0000000..3265532
--- /dev/null
+++ b/test/fuzz/fuzzer.h
@@ -0,0 +1,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