plugins_dir convert to array
authorAndy Green <andy@warmcat.com>
Mon, 2 May 2016 02:03:25 +0000 (10:03 +0800)
committerAndy Green <andy@warmcat.com>
Mon, 2 May 2016 02:03:25 +0000 (10:03 +0800)
commitcae57ad98dc8fdbf90f75ee2213cf7af47eabcc2
tree9d9a42a64558a42ac5fa40b1f1e4b4c147e3cd5c
parent4d5ac9c910554259d919ed41b006cc05f2f1e916
plugins_dir convert to array

If OOT lws plugins will be packaged as separate projects,
they're going to want to install their plugins somewhere
that makes sense for the package instead of one big lws
plugin dir.

This patch changes info to have a const char ** to a NULL
terminated array of directories it should search for
plugins.  lwsws knows about this and you can add to the
dir array using config fragments like

{
  "global": {
   "plugin-dir": "/usr/local/share/coherent-timeline/plugins"
  }
}

if the config fragment in /etc/lwsws/conf.d/ is also managed by the
package with the plugin, it can very cleanly add and remove itself
from lwsws based on package install status.

Signed-off-by: Andy Green <andy@warmcat.com>
README.lwsws.md
lib/libuv.c
lib/libwebsockets.h
lib/lws-plat-unix.c
lib/private-libwebsockets.h
lwsws/conf.c
lwsws/main.c
test-server/test-server-v2.0.c