mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-30 21:29:50 +01:00
51cd3c0726
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.
22 lines
553 B
C
22 lines
553 B
C
/*
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
* future consistency of this API.
|
|
*/
|
|
#ifndef WLR_USE_UNSTABLE
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
#endif
|
|
|
|
#ifndef WLR_INTERFACES_WLR_POINTER_H
|
|
#define WLR_INTERFACES_WLR_POINTER_H
|
|
|
|
#include <wlr/types/wlr_pointer.h>
|
|
|
|
struct wlr_pointer_impl {
|
|
const char *name;
|
|
};
|
|
|
|
void wlr_pointer_init(struct wlr_pointer *pointer,
|
|
const struct wlr_pointer_impl *impl, const char *name);
|
|
void wlr_pointer_finish(struct wlr_pointer *pointer);
|
|
|
|
#endif
|