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>
8 files changed
tree: 9d9a42a64558a42ac5fa40b1f1e4b4c147e3cd5c
  1. cmake/
  2. contrib/
  3. lib/
  4. lwsws/
  5. plugin-standalone/
  6. plugins/
  7. scripts/
  8. test-server/
  9. win32port/
  10. .gitignore
  11. .travis.yml
  12. Android.mk
  13. appveyor.yml
  14. autobahn-test.sh
  15. changelog
  16. CMakeLists.txt
  17. cross-arm-linux-gnueabihf.cmake
  18. cross-ming.cmake
  19. cross-openwrt-makefile
  20. FindLibWebSockets.cmake
  21. libwebsockets-api-doc.html
  22. libwebsockets.spec
  23. LICENSE
  24. lws_config.h.in
  25. lws_config_private.h.in
  26. module.json
  27. README.build.md
  28. README.coding.md
  29. README.lwsws.md
  30. README.md
  31. README.test-apps.md
  32. release-checklist
  33. travis_install.sh
README.md

Travis Build Status Appveyor Build status Coverity Scan Build Status

libwebsockets

This is the libwebsockets C library for lightweight websocket clients and servers. For support, visit

https://libwebsockets.org https://github.com/warmcat/libwebsockets

and consider joining the project mailing list at

https://libwebsockets.org/mailman/listinfo/libwebsockets

| News |

| We have updated https://libwebsockets.org, if you would like your project using lws featured in the image carousel, send an image, project URL and brief summary to andy@warmcat.com |

You can get the latest version of the library from git:

for more information:

After libwebsockets 1.3, tags will be signed using a key corresponding to this public key

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQINBFRe35QBEADZA7snW7MoEXkT2deDYZeggVD3694dg1o5G4q36NWjC8Pn/b2V
d+L9Nmw8ydKIv8PL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