aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-06 08:29:55 +0900
committerGitHub <noreply@github.com>2017-09-06 08:29:55 +0900
commit586ae674ae65c64bf57653afae5378ca76ba40a7 (patch)
treed786da6ef28908a3811c9e33a2e979a0bfc1c738
parent8230a72aad0a9e33c6c34cf1735fbc288951993f (diff)
parente733b0e64309dbddffba33f19029664ebaf4ffb7 (diff)
Merge pull request #136 from acrisci/bug/rename-output-layout-create
Rename wlr_output_layout_init()
-rw-r--r--examples/output-layout.c2
-rw-r--r--examples/pointer.c2
-rw-r--r--include/wlr/types/wlr_output_layout.h2
-rw-r--r--types/wlr_output_layout.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c
index c3e3e6d2..be542630 100644
--- a/examples/output-layout.c
+++ b/examples/output-layout.c
@@ -185,7 +185,7 @@ int main(int argc, char *argv[]) {
state.x_vel = 500;
state.y_vel = 500;
- state.layout = wlr_output_layout_init();
+ state.layout = wlr_output_layout_create();
clock_gettime(CLOCK_MONOTONIC, &state.ts_last);
state.config = parse_args(argc, argv);
diff --git a/examples/pointer.c b/examples/pointer.c
index db71627e..2b937540 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -273,7 +273,7 @@ int main(int argc, char *argv[]) {
state.config = parse_args(argc, argv);
state.cursor = wlr_cursor_create();
- state.layout = wlr_output_layout_init();
+ state.layout = wlr_output_layout_create();
wlr_cursor_attach_output_layout(state.cursor, state.layout);
wlr_cursor_map_to_region(state.cursor, state.config->cursor.mapped_box);
wl_list_init(&state.devices);
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index 9cccd53c..1f4a96d5 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -25,7 +25,7 @@ struct wlr_output_layout_output {
struct wlr_output_layout_output_state *state;
};
-struct wlr_output_layout *wlr_output_layout_init();
+struct wlr_output_layout *wlr_output_layout_create();
void wlr_output_layout_destroy(struct wlr_output_layout *layout);
diff --git a/types/wlr_output_layout.c b/types/wlr_output_layout.c
index 97fc8a68..922c332b 100644
--- a/types/wlr_output_layout.c
+++ b/types/wlr_output_layout.c
@@ -22,7 +22,7 @@ struct wlr_output_layout_output_state {
struct wl_listener output_destroy;
};
-struct wlr_output_layout *wlr_output_layout_init() {
+struct wlr_output_layout *wlr_output_layout_create() {
struct wlr_output_layout *layout =
calloc(1, sizeof(struct wlr_output_layout));
layout->state = calloc(1, sizeof(struct wlr_output_layout_state));