Skip to content

Commit

Permalink
xwayland wip
Browse files Browse the repository at this point in the history
  • Loading branch information
giucam committed Jul 9, 2015
1 parent d5e737d commit 2ba78ef
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 98 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,10 @@ xwayland_la_SOURCES = \
xwayland/launcher.c \
xwayland/hash.c \
xwayland/hash.h \
xwayland/module-xwayland.h \
shared/helpers.h
westoninclude_HEADERS += \
xwayland/module-xwayland.h
endif


Expand Down
14 changes: 14 additions & 0 deletions src/compositor.c
Original file line number Diff line number Diff line change
Expand Up @@ -4610,6 +4610,20 @@ weston_load_module(const char *name, const char *entrypoint)
return init;
}

WL_EXPORT struct weston_module *
weston_compositor_init_module(struct weston_compositor *compositor,
const char *module,
struct weston_module_config *config)
{
struct weston_module *(*init)(struct weston_compositor *compositor,
struct weston_module_config *config);

init = weston_load_module(module, "module_init2");
if (!init)
return NULL;

return init(compositor, config);
}

/** Destroys the compositor.
*
Expand Down
14 changes: 14 additions & 0 deletions src/compositor.h
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,13 @@ struct weston_backend {
struct weston_backend_config {
};

struct weston_module_config {

};

struct weston_module {
};

struct weston_compositor {
struct wl_signal destroy_signal;

Expand Down Expand Up @@ -1577,6 +1584,9 @@ int
module_init(struct weston_compositor *compositor,
int *argc, char *argv[],
struct weston_config *config);
struct weston_module *
module_init2(struct weston_compositor *compositor,
struct weston_module_config *config);

void
weston_transformed_coord(int width, int height,
Expand All @@ -1596,6 +1606,10 @@ weston_transformed_region(int width, int height,

void *
weston_load_module(const char *name, const char *entrypoint);
struct weston_module *
weston_compositor_init_module(struct weston_compositor *compositor,
const char *module,
struct weston_module_config *config);

int
weston_parse_transform(const char *transform, uint32_t *out);
Expand Down
Loading

0 comments on commit 2ba78ef

Please sign in to comment.