6 typedef uint_fast8_t command_flags_t
;
8 COMMAND_FLAG_EVENT_CONNECT
= (1<<0),
9 COMMAND_FLAG_EVENT_DISCONNECT
= (1<<1),
13 unsigned char *command
;
15 command_flags_t flags
;
16 STAILQ_ENTRY(command
) stailq_entry
;
19 struct command
* command_new(unsigned char *command
, size_t command_len
, command_flags_t flags
);
20 void command_free(struct command
*command
);
22 void command_parse(struct connection
*c
, struct server_worker_context
*ctx
, size_t thread_id
, struct command
*command
);
24 #endif /* COMMAND_H */