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)
45 lws_smd_class_t smd_class;
49 const char **state_names;
52 } lws_state_manager_t;
65 LWS_EXTERN LWS_VISIBLE
void
66 lws_state_reg_notifier(lws_state_manager_t *mgr, lws_state_notify_link_t *nl);
76 LWS_EXTERN LWS_VISIBLE
void
77 lws_state_reg_deregister(lws_state_notify_link_t *nl);
89 LWS_EXTERN LWS_VISIBLE
void
90 lws_state_reg_notifier_list(lws_state_manager_t *mgr,
91 lws_state_notify_link_t *
const *nl);
103 LWS_EXTERN LWS_VISIBLE
int
104 lws_state_transition_steps(lws_state_manager_t *mgr,
int target);
114 LWS_EXTERN LWS_VISIBLE
int
115 lws_state_transition(lws_state_manager_t *mgr,
int target);
Definition: lws-dll2.h:203
Definition: lws-dll2.h:197