diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-04 08:57:18 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-05 10:04:20 +0100 |
commit | a290d7a78dc36275e24e54f84570f37a66dc67a4 (patch) | |
tree | 87092b45033957545192fa80288d1a4be3bf69c1 /backend/libinput/tablet_tool.c | |
parent | b6dea80907b840ed30f056b618ee20492870f664 (diff) |
Make implementation function lists static const
This requires a change to the type of `struct wlr_tablet` and
`wlr_tablet_init` signature, both of which are part of the unstable API.
Diffstat (limited to 'backend/libinput/tablet_tool.c')
-rw-r--r-- | backend/libinput/tablet_tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index e07491d1..a6deeec8 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -13,7 +13,7 @@ #include "backend/libinput.h" #include "util/signal.h" -static struct wlr_tablet_impl tablet_impl; +static const struct wlr_tablet_impl tablet_impl; static bool tablet_is_libinput(struct wlr_tablet *tablet) { return tablet->impl == &tablet_impl; @@ -71,7 +71,7 @@ static void destroy_tablet(struct wlr_tablet *wlr_tablet) { free(tablet); } -static struct wlr_tablet_impl tablet_impl = { +static const struct wlr_tablet_impl tablet_impl = { .destroy = destroy_tablet, }; |