From e462a15fb8b1f5ff505153f1a3e1097a4fbf0e80 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 03:29:51 -0700 Subject: 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. --- web/web_prompt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/web_prompt.h (limited to 'web/web_prompt.h') 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 -- cgit v1.2.3-70-g09d2