diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-04-25 21:26:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-04-25 21:26:29 -0400 |
commit | 1aed98730194aa80b5954ae1d6370162041b56e2 (patch) | |
tree | b25542b567327d436ec4b5c855345b71ee8b4c83 /include | |
parent | 1e8970b4a9cb7a63741e8cdc78284cbaffec20f9 (diff) |
Add free functions for allocated resources
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/wayland.h | 10 |
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; }; |