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/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/backend.c')
-rw-r--r-- | backend/backend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/backend.c b/backend/backend.c index d06abacc..fc8ccdb0 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -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; } |