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