25 struct lws_state_notify_link;
26 struct lws_state_manager;
28 #if defined(LWS_WITH_SYS_STATE)
30 typedef int (*lws_state_notify_t)(
struct lws_state_manager *mgr,
31 struct lws_state_notify_link *link,
32 int current,
int target);
34 typedef struct lws_state_notify_link {
36 lws_state_notify_t notify_cb;
38 } lws_state_notify_link_t;
40 typedef struct lws_state_manager {
42 struct lws_context *context;
44 #if defined(LWS_WITH_SYS_SMD)
49 const char **state_names;
52 } lws_state_manager_t;
66 lws_state_reg_notifier(lws_state_manager_t *mgr, lws_state_notify_link_t *nl);
77 lws_state_reg_deregister(lws_state_notify_link_t *nl);
90 lws_state_reg_notifier_list(lws_state_manager_t *mgr,
91 lws_state_notify_link_t *
const *nl);
104 lws_state_transition_steps(lws_state_manager_t *mgr,
int target);
115 lws_state_transition(lws_state_manager_t *mgr,
int target);