libweston: allow double-loading modules
authorPekka Paalanen <pekka.paalanen@collabora.com>
Mon, 4 Nov 2019 12:07:51 +0000 (14:07 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 21 Nov 2019 16:32:55 +0000 (16:32 +0000)
commitf696ee93375f1e678d992d6e7aa2aa0133289aea
tree9988a5951426a33dfac0ef00d8800c16099d751b
parent6ffbba3ac13bc16d247ea50ef09cb149d892e125
libweston: allow double-loading modules

This is necessary for the test harness to be able to execute the compositor
multiple times in the same process. As we never unload opened modules, the
first compositor iteration will leave them all loaded and following compositor
iterations will then have them already loaded.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
libweston/compositor.c