summaryrefslogtreecommitdiff
path: root/web/web_prompt.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-02 03:29:51 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-02 03:29:51 -0700
commite462a15fb8b1f5ff505153f1a3e1097a4fbf0e80 (patch)
tree4ec12048ddd90042556878a7ce0857904bdd651a /web/web_prompt.h
parent22646d963e2b0c9b5ef629aa7704158026cfa6d1 (diff)
downloaddartboat-e462a15fb8b1f5ff505153f1a3e1097a4fbf0e80.tar.gz
dartboat-e462a15fb8b1f5ff505153f1a3e1097a4fbf0e80.tar.xz
web: split opts and prompt handlers into separate files
Currently using a bunch of forward declarations in prompt.c that should be cleaned up later.
Diffstat (limited to 'web/web_prompt.h')
-rw-r--r--web/web_prompt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/web_prompt.h b/web/web_prompt.h
new file mode 100644
index 0000000..b416f2a
--- /dev/null
+++ b/web/web_prompt.h
@@ -0,0 +1,16 @@
+#ifndef WEB_PROMPT_H
+#define WEB_PROMPT_H
+
+enum prompt_mode {
+ PM_DARTBOARD,
+ PM_VISIT,
+ PM_NUM_DARTS,
+ PM_END_MATCH,
+ PM_SELECT_MODE
+};
+
+extern enum prompt_mode pm;
+
+void prompt_handle(char *command, char *data);
+
+#endif