Pass argc and argv to modules
This lets modules parse options from the command line.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user