mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
43fb40e949
commit
4386816889
8 changed files with 22 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue