mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05: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
|
|
@ -14,7 +14,7 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include "backend/udev.h"
|
||||
|
||||
void wlr_backend_create(struct wlr_backend *backend,
|
||||
void wlr_backend_init(struct wlr_backend *backend,
|
||||
const struct wlr_backend_impl *impl) {
|
||||
assert(backend);
|
||||
backend->impl = impl;
|
||||
|
|
@ -24,9 +24,9 @@ void wlr_backend_create(struct wlr_backend *backend,
|
|||
wl_signal_init(&backend->events.output_remove);
|
||||
}
|
||||
|
||||
bool wlr_backend_init(struct wlr_backend *backend) {
|
||||
if (backend->impl->init) {
|
||||
return backend->impl->init(backend);
|
||||
bool wlr_backend_start(struct wlr_backend *backend) {
|
||||
if (backend->impl->start) {
|
||||
return backend->impl->start(backend);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue