aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-02 13:57:28 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-07 16:37:41 +0000
commit51cd3c07264e1c4967c5baea3f6629ac01334e97 (patch)
tree980d44bb7028c34524c5e4c54f94c9f50d4f58d2 /include
parent7dc4a3ecd71cf41dd1800c6afd3b16c83a90f031 (diff)
interface/wlr_pointer: rework destroy sequence
The destroy callback in wlr_pointer_impl has been removed. The function `wlr_pointer_finish` has been introduced to clean up the resources owned by a wlr_pointer. `wlr_input_device_destroy` no longer destroys the wlr_pointer, attempting to destroy a wlr_pointer will result in a no-op. The field `name` has been added to the wlr_pointer_impl to be able to identify a given wlr_pointer device.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_pointer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/interfaces/wlr_pointer.h b/include/wlr/interfaces/wlr_pointer.h
index e3950017..74e0feaf 100644
--- a/include/wlr/interfaces/wlr_pointer.h
+++ b/include/wlr/interfaces/wlr_pointer.h
@@ -12,11 +12,11 @@
#include <wlr/types/wlr_pointer.h>
struct wlr_pointer_impl {
- void (*destroy)(struct wlr_pointer *pointer);
+ const char *name;
};
void wlr_pointer_init(struct wlr_pointer *pointer,
const struct wlr_pointer_impl *impl, const char *name);
-void wlr_pointer_destroy(struct wlr_pointer *pointer);
+void wlr_pointer_finish(struct wlr_pointer *pointer);
#endif