diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-09 10:36:34 -0500 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-21 13:53:40 -0500 |
commit | f1181c34ed3c3dd80299d634de062c4f2d731bac (patch) | |
tree | 2ed965514d53e5aa5efc7fa965d202b18cf86519 | |
parent | 511f137f8fb245e4877d83a0846294091373eba1 (diff) |
types/wlr_tablet_pad: constify impl
-rw-r--r-- | include/wlr/interfaces/wlr_tablet_pad.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_tablet_pad.h | 2 | ||||
-rw-r--r-- | types/wlr_tablet_pad.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/interfaces/wlr_tablet_pad.h b/include/wlr/interfaces/wlr_tablet_pad.h index b35f162e..ff5c9359 100644 --- a/include/wlr/interfaces/wlr_tablet_pad.h +++ b/include/wlr/interfaces/wlr_tablet_pad.h @@ -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 diff --git a/include/wlr/types/wlr_tablet_pad.h b/include/wlr/types/wlr_tablet_pad.h index f30809cf..24923353 100644 --- a/include/wlr/types/wlr_tablet_pad.h +++ b/include/wlr/types/wlr_tablet_pad.h @@ -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; diff --git a/types/wlr_tablet_pad.c b/types/wlr_tablet_pad.c index 7d5635f7..861d1add 100644 --- a/types/wlr_tablet_pad.c +++ b/types/wlr_tablet_pad.c @@ -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; |