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:
@@ -34,6 +34,7 @@
|
||||
#include <colord.h>
|
||||
|
||||
#include "compositor.h"
|
||||
#include "weston.h"
|
||||
#include "cms-helper.h"
|
||||
#include "shared/helpers.h"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user