1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green d98101d1e3 plugins: generalize and provide public api
Move the common plugin scanning dir stuff to be based on lws_dir, which
already builds for windows.  Previously this was done via dirent for unix
and libuv for windows.

Reduce the dl plat stuff to just wrap instantiation and destruction of
dynlibs, establish common code in lib/misc/dir.c for plugin scanning
itself.

Migrate the libuv windows dl stuff to windows-plugins.c, so that he's
available even if later libuv loop support becomes and event lib plugin.

Remove the existing api exports scheme for plugins, just export a const struct
now which has a fixed header type but then whatever you want afterwards depending
on the class / purpose of the plugin.  Place a "class" string in the header so
there can be different kinds of plugins implying different types exported.

Make the plugin apis public and add support for filter by class string, and
per instantation / destruction callbacks so the subclassed header type can
do its thing for the plugin class.  The user provides a linked-list base
for his class of plugins, so he can manage them completely separately and
in user code / user export types.

Rip out some last hangers-on from generic sessions / tables.

This is all aimed at making the plugins support general enough so it can
provide event lib plugins later.
2020-08-31 16:51:37 +01:00
..
abstract cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
core plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
core-net plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
drivers lws_netdev: fix rssi averaging 2020-07-21 08:16:01 +01:00
event-libs plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
jose lws_jwt_token_sanity 2020-07-15 16:18:00 +01:00
misc plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
plat plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
roles plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
secure-streams ss: protect against reentry in lws_destroy 2020-08-31 16:51:37 +01:00
system coverity: COV294450 and COV294451 2020-07-27 11:16:49 +01:00
tls clean: SSL_accept failure just needs info logging 2020-08-31 16:51:37 +01:00
CMakeLists.txt sai: freebsd 2020-08-10 15:04:10 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries