aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces/wlr_input_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/interfaces/wlr_input_device.h')
-rw-r--r--include/wlr/interfaces/wlr_input_device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/interfaces/wlr_input_device.h b/include/wlr/interfaces/wlr_input_device.h
index de527393..ab314807 100644
--- a/include/wlr/interfaces/wlr_input_device.h
+++ b/include/wlr/interfaces/wlr_input_device.h
@@ -25,6 +25,12 @@ void wlr_input_device_init(struct wlr_input_device *wlr_device,
*/
void wlr_input_device_finish(struct wlr_input_device *wlr_device);
+/**
+ * Calls the specialized input device destroy function.
+ * If the wlr_input_device is not owned by a specialized input device, the
+ * function will finish the wlr_input_device, and either call its implementation
+ * destroy function if one has been given, or free the wlr_input_device.
+ */
void wlr_input_device_destroy(struct wlr_input_device *dev);
#endif