lwsws conf and plugins convert to libuv apis
authorAndy Green <andy@warmcat.com>
Fri, 8 Apr 2016 23:22:40 +0000 (07:22 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 13 Apr 2016 03:53:40 +0000 (11:53 +0800)
commit0a183545b29b6a91c41e29ce8fb7fc6c810e493e
treee39077bbac54323d9ea22d5584d50a25e7cae828
parente01a551a17f386381be06f8d556650d3ac64fe0d
lwsws conf and plugins convert to libuv apis

After discussion here

https://libwebsockets.org/pipermail/libwebsockets/2016-April/002268.html

scandir usage in

 - lwsws conf.c
 - lws plugin support

and

 - lws plugin apis for dl

are converted to us libuv apis so they can work cross-platform easily.

lws itself remains not requiring libuv, although it's an option.

 - LWS_WITH_LWSWS
 - LWS_WITH_PLUGINS

now force LWS_WITH_LIBUV if selected... both of these are new features
only in master atm and both are off by default in CMake.

There's a complication libuv can be too old to offer the necessary apis,
this is the case in Travis Trusty instance.  In that case, UV_VERSION_MAJOR ==0,
then the unix-only plugin implementation is used instead.

Signed-off-by: Andy Green <andy@warmcat.com>
CMakeLists.txt
lib/libuv.c
lib/libwebsockets.h
lib/lws-plat-unix.c
lib/private-libwebsockets.h
lwsws/conf.c