compositor: add plugin-registry
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 29 Jun 2016 09:54:26 +0000 (11:54 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 1 Jul 2016 11:10:26 +0000 (14:10 +0300)
commit827b5d225de14f0c54b77040671370bb09d0fa0a
treef67a7a77cbcf556e3a7191914a52b258416757aa
parent24f917e723c2d00091ce772f89399da13f4d8ad6
compositor: add plugin-registry

Implement a simple register and lookup for function tables. This is
intended for plugins to expose APIs to other plugins.

It has been very hard to arrange a plugin to be able to call into
another plugin without modifying Weston core to explicitly support each
case. This patch fixes that.

The tests all pass.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com>
Makefile.am
libweston/compositor.c
libweston/compositor.h
libweston/plugin-registry.c [new file with mode: 0644]
libweston/plugin-registry.h [new file with mode: 0644]
tests/plugin-registry-test.c [new file with mode: 0644]