From 1aed98730194aa80b5954ae1d6370162041b56e2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 25 Apr 2017 21:26:29 -0400 Subject: Add free functions for allocated resources --- include/wlr/wayland.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/wlr') 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; }; -- cgit v1.2.3