types/wlr_tablet_pad: constify impl

This commit is contained in:
Simon Zeni 2022-02-09 10:36:34 -05:00
parent 511f137f8f
commit f1181c34ed
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ struct wlr_tablet_pad_impl {
}; };
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad, 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); void wlr_tablet_pad_destroy(struct wlr_tablet_pad *pad);
#endif #endif

View File

@ -24,7 +24,7 @@ struct wlr_tablet_pad_impl;
struct wlr_tablet_pad { struct wlr_tablet_pad {
struct wlr_input_device base; struct wlr_input_device base;
struct wlr_tablet_pad_impl *impl; const struct wlr_tablet_pad_impl *impl;
struct { struct {
struct wl_signal button; struct wl_signal button;

View File

@ -6,7 +6,7 @@
#include <wlr/types/wlr_tablet_pad.h> #include <wlr/types/wlr_tablet_pad.h>
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad, 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); wlr_input_device_init(&pad->base, WLR_INPUT_DEVICE_TABLET_PAD, NULL, name);
pad->base.tablet_pad = pad; pad->base.tablet_pad = pad;