From a290d7a78dc36275e24e54f84570f37a66dc67a4 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Thu, 4 Feb 2021 08:57:18 -0500 Subject: 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. --- include/wlr/interfaces/wlr_tablet_tool.h | 2 +- include/wlr/types/wlr_tablet_tool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/interfaces/wlr_tablet_tool.h b/include/wlr/interfaces/wlr_tablet_tool.h index 9cfc3ca0..81e72d75 100644 --- a/include/wlr/interfaces/wlr_tablet_tool.h +++ b/include/wlr/interfaces/wlr_tablet_tool.h @@ -16,7 +16,7 @@ struct wlr_tablet_impl { }; void wlr_tablet_init(struct wlr_tablet *tablet, - struct wlr_tablet_impl *impl); + const struct wlr_tablet_impl *impl); void wlr_tablet_destroy(struct wlr_tablet *tablet); #endif diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h index 4dbac4d0..9dbf6ffb 100644 --- a/include/wlr/types/wlr_tablet_tool.h +++ b/include/wlr/types/wlr_tablet_tool.h @@ -61,7 +61,7 @@ struct wlr_tablet_tool { struct wlr_tablet_impl; struct wlr_tablet { - struct wlr_tablet_impl *impl; + const struct wlr_tablet_impl *impl; struct { struct wl_signal axis; -- cgit v1.2.3