Pass argc and argv to modules

This lets modules parse options from the command line.
This commit is contained in:
Kristian Høgsberg
2013-02-20 15:37:49 -05:00
parent 4172f668e7
commit cb4685bbd1
8 changed files with 31 additions and 25 deletions
+3 -1
View File
@@ -315,7 +315,9 @@ weston_xserver_destroy(struct wl_listener *l, 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_display *display = compositor->wl_display;
struct weston_xserver *wxs;