compositor-openwfd: Fixup backend split
This commit is contained in:
parent
81e8c26176
commit
f64c66106f
@ -61,7 +61,7 @@ openwfd_backend = openwfd-backend.la
|
|||||||
openwfd_backend_la_LDFLAGS = -module -avoid-version
|
openwfd_backend_la_LDFLAGS = -module -avoid-version
|
||||||
openwfd_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(OPENWFD_COMPOSITOR_LIBS)
|
openwfd_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(OPENWFD_COMPOSITOR_LIBS)
|
||||||
openwfd_backend_la_CFLAGS = $(OPENWFD_COMPOSITOR_CFLAGS)
|
openwfd_backend_la_CFLAGS = $(OPENWFD_COMPOSITOR_CFLAGS)
|
||||||
openwfd_backend_SOURCES = compositor-openwfd.c
|
openwfd_backend_la_SOURCES = compositor-openwfd.c tty.c evdev.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ENABLE_DESKTOP_SHELL
|
if ENABLE_DESKTOP_SHELL
|
||||||
|
@ -578,3 +578,23 @@ wfd_compositor_create(struct wl_display *display, int connector)
|
|||||||
|
|
||||||
return &ec->base;
|
return &ec->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wlsc_compositor *
|
||||||
|
backend_init(struct wl_display *display, char *options)
|
||||||
|
{
|
||||||
|
int connector = 0, i;
|
||||||
|
char *p, *value;
|
||||||
|
|
||||||
|
static char * const tokens[] = { "connector", NULL };
|
||||||
|
|
||||||
|
p = options;
|
||||||
|
while (i = getsubopt(&p, tokens, &value), i != -1) {
|
||||||
|
switch (i) {
|
||||||
|
case 0:
|
||||||
|
connector = strtol(value, NULL, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return wfd_compositor_create(display, connector);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user