mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -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
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@
|
|||
#include <wlr/egl.h>
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue