summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2015-10-17 19:24:14 +0300
committerBryce Harrington <bryce@osg.samsung.com>2015-10-23 15:23:37 -0700
commit93daabbc7141de3c085278ab8905813038308209 (patch)
tree3dc7e928a0cebe05514f10a6eeaf97aa98b90141 /src/main.c
parente3c0d8af43272eb31f16b535ab821fd98399e8fa (diff)
downloadweston-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 329db142..892607c0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}