diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-02-20 15:37:49 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-02-20 15:37:49 -0500 |
commit | cb4685bbd193d6872b8cbef398170d014f3d5623 (patch) | |
tree | 6e3677f0c82ab43e06a5ca0fe07a9cc1de3772de /tests | |
parent | 4172f668e7838a0e89d09b569d99745228c1c9c0 (diff) | |
download | weston-cb4685bbd193d6872b8cbef398170d014f3d5623.tar.gz weston-cb4685bbd193d6872b8cbef398170d014f3d5623.tar.bz2 weston-cb4685bbd193d6872b8cbef398170d014f3d5623.zip |
Pass argc and argv to modules
This lets modules parse options from the command line.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/surface-global-test.c | 3 | ||||
-rw-r--r-- | tests/surface-test.c | 3 | ||||
-rw-r--r-- | tests/weston-test.c | 3 |
3 files changed, 6 insertions, 3 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; diff --git a/tests/surface-test.c b/tests/surface-test.c index b41c63fa..8157e333 100644 --- a/tests/surface-test.c +++ b/tests/surface-test.c @@ -50,7 +50,8 @@ surface_transform(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; diff --git a/tests/weston-test.c b/tests/weston-test.c index a9def4ba..83a7124f 100644 --- a/tests/weston-test.c +++ b/tests/weston-test.c @@ -224,7 +224,8 @@ idle_launch_client(void *data) } WL_EXPORT int -module_init(struct weston_compositor *ec) +module_init(struct weston_compositor *ec, + int *argc, char *argv[], const char *config_file) { struct weston_test *test; struct wl_event_loop *loop; |