summaryrefslogtreecommitdiff
path: root/src/compositor-android.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-06-01 11:11:10 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-06-01 11:14:28 -0400
commitbaf43592855c78b36dee33cb0d8e325388ae2dd5 (patch)
tree6ef59b31eb2a5394b77ef66f568d09fd8f794eb7 /src/compositor-android.c
parent576cd15d8d33446d8f7bcb32279e0f61aa99bb86 (diff)
Pass argc and argv through to weston_compositor_init
Allowing it to do option parsing as well. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/compositor-android.c')
-rw-r--r--src/compositor-android.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compositor-android.c b/src/compositor-android.c
index 268538af..91bbf74d 100644
--- a/src/compositor-android.c
+++ b/src/compositor-android.c
@@ -403,7 +403,7 @@ android_compositor_destroy(struct weston_compositor *base)
}
static struct weston_compositor *
-android_compositor_create(struct wl_display *display)
+android_compositor_create(struct wl_display *display, int argc, char *argv[])
{
struct android_compositor *compositor;
struct android_output *output;
@@ -425,7 +425,7 @@ android_compositor_create(struct wl_display *display)
if (android_init_egl(compositor, output) < 0)
return NULL;
- if (weston_compositor_init(&compositor->base, display) < 0)
+ if (weston_compositor_init(&compositor->base, display, argc, argv) < 0)
return NULL;
android_compositor_add_output(compositor, output);
@@ -440,5 +440,5 @@ android_compositor_create(struct wl_display *display)
WL_EXPORT struct weston_compositor *
backend_init(struct wl_display *display, int argc, char *argv[])
{
- return android_compositor_create(display);
+ return android_compositor_create(display, argc, argv);
}