aboutsummaryrefslogtreecommitdiff
path: root/shared/protocol.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-14 17:06:02 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-14 17:06:02 +0200
commita8ec533f4e548601e283cee628aaf5ffc1e7d662 (patch)
treed5c0155fe61bb468ea9e02b6afca6e4139c61f65 /shared/protocol.h
parentec475b0469104a0a76542c52286ed08933ac750c (diff)
parser done
Diffstat (limited to 'shared/protocol.h')
-rw-r--r--shared/protocol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/protocol.h b/shared/protocol.h
index 74b289c..b7b92bb 100644
--- a/shared/protocol.h
+++ b/shared/protocol.h
@@ -56,6 +56,8 @@ typedef struct {
ws_s_protocol_parser_state* ws_protocol_parser_alloc();
/** @brief deallocate parser struct, automatically frees all child pointers */
void ws_protocol_parser_free(ws_s_protocol_parser_state* state);
+/** @brief reset parser state to parse a new request */
+void ws_protocol_parser_reset(ws_s_protocol_parser_state* state);
/**
* @brief initialize ws_s_protocol_parsed_cmd struct pointer of
* ws_s_protocol_parser_state (internal only)