From 43868168897f628fe75157be9ab38ea63310c920 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 Aug 2017 09:59:14 -0400 Subject: 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. --- backend/drm/backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/drm') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 9458a6ec..d0cdc234 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -16,7 +16,7 @@ #include "backend/udev.h" #include "backend/drm.h" -static bool wlr_drm_backend_init(struct wlr_backend *_backend) { +static bool wlr_drm_backend_start(struct wlr_backend *_backend) { struct wlr_drm_backend *backend = (struct wlr_drm_backend *)_backend; wlr_drm_scan_connectors(backend); return true; @@ -47,7 +47,7 @@ static struct wlr_egl *wlr_drm_backend_get_egl(struct wlr_backend *_backend) { } static struct wlr_backend_impl backend_impl = { - .init = wlr_drm_backend_init, + .start = wlr_drm_backend_start, .destroy = wlr_drm_backend_destroy, .get_egl = wlr_drm_backend_get_egl }; @@ -106,7 +106,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, wlr_log_errno(L_ERROR, "Allocation failed"); return NULL; } - wlr_backend_create(&backend->backend, &backend_impl); + wlr_backend_init(&backend->backend, &backend_impl); backend->session = session; backend->udev = udev; -- cgit v1.2.3