diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-13 09:59:14 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-13 10:19:57 -0400 |
commit | 43868168897f628fe75157be9ab38ea63310c920 (patch) | |
tree | 4abf844a207744843a95abfe07e5e1fe8b8bdc03 /backend/multi/backend.c | |
parent | 43fb40e949c6b0a7492935d358695fdc6ad593a9 (diff) |
wlr_backend_init -> wlr_backend_start
Also renames create to init. We'll use create for anything that
allocates and init for anything that takes a pointer and initializes it.
Diffstat (limited to 'backend/multi/backend.c')
-rw-r--r-- | backend/multi/backend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c index 63cad33e..99cf3db9 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -15,11 +15,11 @@ struct subbackend_state { struct wl_listener output_remove; }; -static bool multi_backend_init(struct wlr_backend *_backend) { +static bool multi_backend_start(struct wlr_backend *_backend) { struct wlr_multi_backend *backend = (struct wlr_multi_backend *)_backend; for (size_t i = 0; i < backend->backends->length; ++i) { struct subbackend_state *sub = backend->backends->items[i]; - if (!wlr_backend_init(sub->backend)) { + if (!wlr_backend_start(sub->backend)) { wlr_log(L_ERROR, "Failed to initialize backend %zd", i); return false; } @@ -53,7 +53,7 @@ static struct wlr_egl *multi_backend_get_egl(struct wlr_backend *_backend) { } struct wlr_backend_impl backend_impl = { - .init = multi_backend_init, + .start = multi_backend_start, .destroy = multi_backend_destroy, .get_egl = multi_backend_get_egl }; @@ -74,7 +74,7 @@ struct wlr_backend *wlr_multi_backend_create(struct wlr_session *session, return NULL; } - wlr_backend_create(&backend->backend, &backend_impl); + wlr_backend_init(&backend->backend, &backend_impl); backend->session = session; backend->udev = udev; |