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. --- include/wlr/backend.h | 2 +- include/wlr/backend/interface.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wlr/backend.h b/include/wlr/backend.h index f87e88bd..f92857eb 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -19,7 +19,7 @@ struct wlr_backend { }; struct wlr_backend *wlr_backend_autocreate(struct wl_display *display); -bool wlr_backend_init(struct wlr_backend *backend); +bool wlr_backend_start(struct wlr_backend *backend); void wlr_backend_destroy(struct wlr_backend *backend); struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend); diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h index adca23eb..b0814da5 100644 --- a/include/wlr/backend/interface.h +++ b/include/wlr/backend/interface.h @@ -6,12 +6,12 @@ #include struct wlr_backend_impl { - bool (*init)(struct wlr_backend *backend); + bool (*start)(struct wlr_backend *backend); void (*destroy)(struct wlr_backend *backend); struct wlr_egl *(*get_egl)(struct wlr_backend *backend); }; -void wlr_backend_create(struct wlr_backend *backend, +void wlr_backend_init(struct wlr_backend *backend, const struct wlr_backend_impl *impl); #endif -- cgit v1.2.3