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>
diff --git a/xwayland/launcher.c b/xwayland/launcher.c
index 276795a..0ecdb20 100644
--- a/xwayland/launcher.c
+++ b/xwayland/launcher.c
@@ -351,8 +351,7 @@
extern const struct weston_xwayland_surface_api surface_api;
WL_EXPORT int
-module_init(struct weston_compositor *compositor,
- int *argc, char *argv[])
+weston_module_init(struct weston_compositor *compositor)
{
struct wl_display *display = compositor->wl_display;