aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/wayland.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-25 21:26:29 -0400
committerDrew DeVault <sir@cmpwn.com>2017-04-25 21:26:29 -0400
commit1aed98730194aa80b5954ae1d6370162041b56e2 (patch)
treeb25542b567327d436ec4b5c855345b71ee8b4c83 /include/wlr/wayland.h
parent1e8970b4a9cb7a63741e8cdc78284cbaffec20f9 (diff)
Add free functions for allocated resources
Diffstat (limited to 'include/wlr/wayland.h')
-rw-r--r--include/wlr/wayland.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/wlr/wayland.h b/include/wlr/wayland.h
index 0a6974ff..bbbd2457 100644
--- a/include/wlr/wayland.h
+++ b/include/wlr/wayland.h
@@ -7,11 +7,13 @@
struct wlr_wl_seat {
struct wl_seat *wl_seat;
uint32_t capabilities;
- const char *name;
+ char *name;
list_t *keyboards;
list_t *pointers;
};
+void wlr_wl_seat_free(struct wlr_wl_seat *seat);
+
struct wlr_wl_output_mode {
uint32_t flags; // enum wl_output_mode
int32_t width, height;
@@ -21,8 +23,8 @@ struct wlr_wl_output_mode {
struct wlr_wl_output {
struct wl_output *wl_output;
uint32_t flags;
- const char *make;
- const char *model;
+ char *make;
+ char *model;
uint32_t scale;
int32_t x, y;
int32_t phys_width, phys_height; // mm
@@ -32,6 +34,8 @@ struct wlr_wl_output {
struct wlr_wl_output_mode *current_mode;
};
+void wlr_wl_output_free(struct wlr_wl_output *output);
+
struct wlr_wl_keyboard {
struct wl_keyboard *wl_keyboard;
};