diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-29 10:42:23 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-29 12:36:39 -0400 |
commit | a51b76083e589214320f30c8792d6b2666ef21d2 (patch) | |
tree | 939cfa811095bcd593d280c8c83325eee466e5bf | |
parent | 1fb8bc9340d157dffd354ea18f8521e279021750 (diff) |
rename wlr_cursor_init to wlr_cursor_create
-rw-r--r-- | examples/pointer.c | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_cursor.h | 2 | ||||
-rw-r--r-- | types/wlr_cursor.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index 100feccc..5341c72c 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -340,7 +340,7 @@ int main(int argc, char *argv[]) { }; state.config = parse_args(argc, argv); - state.cursor = wlr_cursor_init(); + state.cursor = wlr_cursor_create(); wlr_cursor_map_to_region(state.cursor, state.config->cursor.mapped_geo); wl_list_init(&state.devices); diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h index b91c195e..ef3b8dbb 100644 --- a/include/wlr/types/wlr_cursor.h +++ b/include/wlr/types/wlr_cursor.h @@ -31,7 +31,7 @@ struct wlr_cursor { } events; }; -struct wlr_cursor *wlr_cursor_init(); +struct wlr_cursor *wlr_cursor_create(); void wlr_cursor_destroy(struct wlr_cursor *cur); diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 9a9a28b8..4bbf897b 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -41,7 +41,7 @@ struct wlr_cursor_state { struct wlr_geometry *mapped_geometry; }; -struct wlr_cursor *wlr_cursor_init() { +struct wlr_cursor *wlr_cursor_create() { struct wlr_cursor *cur = calloc(1, sizeof(struct wlr_cursor)); if (!cur) { wlr_log(L_ERROR, "Failed to allocate wlr_cursor"); |