libweston: Properly namespace backends entrypoint

This prevents loading a backend as a simple module. This will avoid
messing up with backends when we will introduce libweston common
modules.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
dev
Quentin Glidic 8 years ago
parent b2f32ab4a7
commit 23e1d6f176
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 2
      libweston/compositor-drm.c
  2. 2
      libweston/compositor-fbdev.c
  3. 2
      libweston/compositor-headless.c
  4. 2
      libweston/compositor-rdp.c
  5. 2
      libweston/compositor-wayland.c
  6. 2
      libweston/compositor-x11.c
  7. 2
      libweston/compositor.c
  8. 2
      libweston/compositor.h

@ -3304,7 +3304,7 @@ config_init_to_defaults(struct weston_drm_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct drm_backend *b; struct drm_backend *b;

@ -782,7 +782,7 @@ config_init_to_defaults(struct weston_fbdev_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct fbdev_backend *b; struct fbdev_backend *b;

@ -316,7 +316,7 @@ config_init_to_defaults(struct weston_headless_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct headless_backend *b; struct headless_backend *b;

@ -1370,7 +1370,7 @@ config_init_to_defaults(struct weston_rdp_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct rdp_backend *b; struct rdp_backend *b;

@ -2578,7 +2578,7 @@ config_init_to_defaults(struct weston_wayland_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct wayland_backend *b; struct wayland_backend *b;

@ -1756,7 +1756,7 @@ config_init_to_defaults(struct weston_x11_backend_config *config)
} }
WL_EXPORT int WL_EXPORT int
backend_init(struct weston_compositor *compositor, weston_backend_init(struct weston_compositor *compositor,
struct weston_backend_config *config_base) struct weston_backend_config *config_base)
{ {
struct x11_backend *b; struct x11_backend *b;

@ -5399,7 +5399,7 @@ weston_compositor_load_backend(struct weston_compositor *compositor,
if (backend >= ARRAY_LENGTH(backend_map)) if (backend >= ARRAY_LENGTH(backend_map))
return -1; return -1;
backend_init = weston_load_module(backend_map[backend], "backend_init"); backend_init = weston_load_module(backend_map[backend], "weston_backend_init");
if (!backend_init) if (!backend_init)
return -1; return -1;

@ -1815,7 +1815,7 @@ int
weston_input_init(struct weston_compositor *compositor); weston_input_init(struct weston_compositor *compositor);
int int
backend_init(struct weston_compositor *c, weston_backend_init(struct weston_compositor *c,
struct weston_backend_config *config_base); struct weston_backend_config *config_base);
int int
module_init(struct weston_compositor *compositor, module_init(struct weston_compositor *compositor,

Loading…
Cancel
Save