1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/plat/unix
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
..
android cleaning 2020-01-05 22:17:58 +00:00
CMakeLists.txt Subject: Fixes to build on FreeBSD and Illumos 2020-08-10 15:04:10 +01:00
private-lib-plat-unix.h lws_mutex 2020-06-16 19:45:35 +01:00
unix-caps.c coverity: 49785: confirm initgroups worked 2020-08-19 07:21:55 +01:00
unix-fds.c CTest: migrate and deprecate existing selftest scripts 2020-05-11 15:40:13 +01:00
unix-file.c _GNU_SOURCE: only define if not already defined 2019-12-22 18:17:45 +00:00
unix-init.c plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
unix-misc.c coverity: 50976: check fsync return for cert write 2020-08-19 07:23:19 +01:00
unix-pipe.c fakewsi: replace with smaller substructure 2020-07-20 06:28:52 +01:00
unix-plugins.c plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
unix-resolv.c ntpclient: add plat-specific init with env var LWS_NTP_SERVER able to set it on unix and windows 2020-04-25 15:11:21 +01:00
unix-service.c coverity: 62374: no need to init n 2020-08-18 14:00:54 +01:00
unix-sockets.c lws_interface_to_sa: confirm getifaddrs worked 2020-07-29 11:14:37 +01:00
unix-spawn.c freebsd: sai build adaptations 2020-08-10 15:04:10 +01:00