mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
types/wlr_tablet_pad: constify impl
This commit is contained in:
parent
511f137f8f
commit
f1181c34ed
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ struct wlr_tablet_pad_impl {
|
|||
};
|
||||
|
||||
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
|
||||
struct wlr_tablet_pad_impl *impl, const char *name);
|
||||
const struct wlr_tablet_pad_impl *impl, const char *name);
|
||||
void wlr_tablet_pad_destroy(struct wlr_tablet_pad *pad);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,7 @@ struct wlr_tablet_pad_impl;
|
|||
struct wlr_tablet_pad {
|
||||
struct wlr_input_device base;
|
||||
|
||||
struct wlr_tablet_pad_impl *impl;
|
||||
const struct wlr_tablet_pad_impl *impl;
|
||||
|
||||
struct {
|
||||
struct wl_signal button;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <wlr/types/wlr_tablet_pad.h>
|
||||
|
||||
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
|
||||
struct wlr_tablet_pad_impl *impl, const char *name) {
|
||||
const struct wlr_tablet_pad_impl *impl, const char *name) {
|
||||
wlr_input_device_init(&pad->base, WLR_INPUT_DEVICE_TABLET_PAD, NULL, name);
|
||||
pad->base.tablet_pad = pad;
|
||||
|
||||
|
|
Loading…
Reference in a new issue