diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2015-10-17 19:24:14 +0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-10-23 15:23:37 -0700 |
commit | 93daabbc7141de3c085278ab8905813038308209 (patch) | |
tree | 3dc7e928a0cebe05514f10a6eeaf97aa98b90141 /src/main.c | |
parent | e3c0d8af43272eb31f16b535ab821fd98399e8fa (diff) | |
download | weston-93daabbc7141de3c085278ab8905813038308209.tar.gz |
compositor: pass the backend config struct to the backends init function
Add new configuration argument to the backend_init() function, which
will replace the current argc, argv, and config arguments.
After each backend is converted individually the unused parameters
will be removed.
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -640,7 +640,8 @@ int main(int argc, char *argv[]) struct wl_event_loop *loop; int (*backend_init)(struct weston_compositor *c, int *argc, char *argv[], - struct weston_config *config); + struct weston_config *config, + struct weston_backend_config *config_base); int i, fd; char *backend = NULL; char *shell = NULL; @@ -739,7 +740,7 @@ int main(int argc, char *argv[]) if (weston_compositor_init_config(ec, config) < 0) goto out; - if (backend_init(ec, &argc, argv, config) < 0) { + if (backend_init(ec, &argc, argv, config, NULL) < 0) { weston_log("fatal: failed to create compositor backend\n"); goto out; } |