libweston: Properly namespace modules entrypoint

Use different functions so we cannot load a libweston common module in
weston directly or the other way around.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Quentin Glidic
2016-12-02 14:20:35 +01:00
parent 23e1d6f176
commit 3d7ca3b9ea
11 changed files with 16 additions and 9 deletions
+1
View File
@@ -34,6 +34,7 @@
#include <colord.h>
#include "compositor.h"
#include "weston.h"
#include "cms-helper.h"
#include "shared/helpers.h"
+1
View File
@@ -34,6 +34,7 @@
#include "shared/string-helpers.h"
#include "shared/zalloc.h"
#include "compositor.h"
#include "weston.h"
struct systemd_notifier {
int watchdog_time;
+4
View File
@@ -63,6 +63,10 @@ wet_get_config(struct weston_compositor *compositor);
void *
wet_load_module(const char *name, const char *entrypoint);
int
module_init(struct weston_compositor *compositor,
int *argc, char *argv[]);
int
wet_load_xwayland(struct weston_compositor *comp);