summaryrefslogtreecommitdiff
path: root/tests/surface-global-test.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-02-20 15:37:49 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-02-20 15:37:49 -0500
commitcb4685bbd193d6872b8cbef398170d014f3d5623 (patch)
tree6e3677f0c82ab43e06a5ca0fe07a9cc1de3772de /tests/surface-global-test.c
parent4172f668e7838a0e89d09b569d99745228c1c9c0 (diff)
downloadweston-cb4685bbd193d6872b8cbef398170d014f3d5623.tar.gz
Pass argc and argv to modules
This lets modules parse options from the command line.
Diffstat (limited to 'tests/surface-global-test.c')
-rw-r--r--tests/surface-global-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/surface-global-test.c b/tests/surface-global-test.c
index 5908f60d..5bafa08c 100644
--- a/tests/surface-global-test.c
+++ b/tests/surface-global-test.c
@@ -67,7 +67,8 @@ surface_to_from_global(void *data)
}
WL_EXPORT int
-module_init(struct weston_compositor *compositor)
+module_init(struct weston_compositor *compositor,
+ int *argc, char *argv[], const char *config_file)
{
struct wl_event_loop *loop;