libwebsockets
Lightweight C library for HTML5 websockets
lws-protocols-plugins.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_protocols
 
struct  lws_plugin_header
 
struct  lws_plugin_protocol
 
struct  lws_plugin
 
struct  lws_plugin_evlib
 
union  lws_plugin.u
 

Macros

#define LWS_PROTOCOL_LIST_TERM   { NULL, NULL, 0, 0, 0, NULL, 0 }
 
#define LWS_PLUGIN_API_MAGIC   191
 

Typedefs

typedef struct lws_plugin_header lws_plugin_header_t
 
typedef struct lws_plugin_protocol lws_plugin_protocol_t
 
typedef struct lws_plugin_evlib lws_plugin_evlib_t
 
typedef int(* each_plugin_cb_t) (struct lws_plugin *p, void *user)
 

Functions

LWS_VISIBLE LWS_EXTERN const struct lws_protocolslws_vhost_name_to_protocol (struct lws_vhost *vh, const char *name)
 
LWS_VISIBLE LWS_EXTERN const struct lws_protocolslws_get_protocol (struct lws *wsi)
 
LWS_VISIBLE LWS_EXTERN const struct lws_protocolslws_protocol_get (struct lws *wsi) LWS_WARN_DEPRECATED
 
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_zalloc (struct lws_vhost *vhost, const struct lws_protocols *prot, int size)
 
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_get (struct lws_vhost *vhost, const struct lws_protocols *prot)
 
LWS_VISIBLE LWS_EXTERN void * lws_vhd_find_by_pvo (struct lws_context *cx, const char *protname, const char *pvo_name, const char *pvo_value)
 
LWS_VISIBLE LWS_EXTERN void * lws_adjust_protocol_psds (struct lws *wsi, size_t new_size)
 
LWS_VISIBLE LWS_EXTERN int lws_finalize_startup (struct lws_context *context)
 
LWS_VISIBLE LWS_EXTERN const struct lws_protocol_vhost_optionslws_pvo_search (const struct lws_protocol_vhost_options *pvo, const char *name)
 
LWS_VISIBLE LWS_EXTERN int lws_pvo_get_str (void *in, const char *name, const char **result)
 
LWS_VISIBLE LWS_EXTERN int lws_protocol_init (struct lws_context *context)
 
LWS_VISIBLE LWS_EXTERN int lws_plugins_init (struct lws_plugin **pplugin, const char *const *d, const char *_class, const char *filter, each_plugin_cb_t each, void *each_user)
 
LWS_VISIBLE LWS_EXTERN int lws_plugins_destroy (struct lws_plugin **pplugin, each_plugin_cb_t each, void *each_user)