39 enum lws_extension_callback_reasons {
40 LWS_EXT_CB_CONSTRUCT = 4,
41 LWS_EXT_CB_CLIENT_CONSTRUCT = 5,
42 LWS_EXT_CB_DESTROY = 8,
43 LWS_EXT_CB_PACKET_TX_PRESEND = 12,
44 LWS_EXT_CB_PAYLOAD_TX = 21,
45 LWS_EXT_CB_PAYLOAD_RX = 22,
46 LWS_EXT_CB_OPTION_DEFAULT = 23,
47 LWS_EXT_CB_OPTION_SET = 24,
48 LWS_EXT_CB_OPTION_CONFIRM = 25,
49 LWS_EXT_CB_NAMED_OPTION_SET = 26,
135 enum lws_extension_callback_reasons reason,
136 void *user,
void *in,
size_t len);
156 LWS_VISIBLE LWS_EXTERN
int
158 const char *opt_name,
const char *opt_val);
170 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
173 const char *o,
int len);
187 LWS_VISIBLE LWS_EXTERN
int
191 enum lws_extension_callback_reasons reason,
192 void *user,
void *in,
size_t len);
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ext_parse_options(const struct lws_extension *ext, struct lws *wsi, void *ext_user, const struct lws_ext_options *opts, const char *o, int len)
LWS_VISIBLE LWS_EXTERN int lws_extension_callback_pm_deflate(struct lws_context *context, const struct lws_extension *ext, struct lws *wsi, enum lws_extension_callback_reasons reason, void *user, void *in, size_t len)
int lws_extension_callback_function(struct lws_context *context, const struct lws_extension *ext, struct lws *wsi, enum lws_extension_callback_reasons reason, void *user, void *in, size_t len)
Definition: lws-ws-ext.h:133
lws_ext_options_types
Definition: lws-ws-ext.h:55
LWS_VISIBLE LWS_EXTERN int lws_set_extension_option(struct lws *wsi, const char *ext_name, const char *opt_name, const char *opt_val)
@ EXTARG_DEC
Definition: lws-ws-ext.h:57
@ EXTARG_OPT_DEC
Definition: lws-ws-ext.h:58
@ EXTARG_NONE
Definition: lws-ws-ext.h:56
Definition: lws-ws-ext.h:77
const char * option_name
Definition: lws-ws-ext.h:78
const char * start
Definition: lws-ws-ext.h:80
int len
Definition: lws-ws-ext.h:81
int option_index
Definition: lws-ws-ext.h:79
Definition: lws-ws-ext.h:68
const char * name
Definition: lws-ws-ext.h:69
enum lws_ext_options_types type
Definition: lws-ws-ext.h:70
Definition: lws-ws-ext.h:139
const char * name
Definition: lws-ws-ext.h:140
const char * client_offer
Definition: lws-ws-ext.h:142
lws_extension_callback_function * callback
Definition: lws-ws-ext.h:141