aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>2019-07-15 22:54:39 +0200
committerDrew DeVault <sir@cmpwn.com>2019-07-17 09:23:10 -0400
commit2d4bc66f11f2ada674158ddc81e2ec184a534865 (patch)
tree61479e79819bee4f666aed246e445262127f08d8
parent692a16cef734dbe5823d342262a70193a73259b0 (diff)
wlr_touch: Declare wlr_touch_impl usage as const
This brings it in line with wlr_keyboard and wlr_pointer
-rw-r--r--include/wlr/interfaces/wlr_touch.h2
-rw-r--r--include/wlr/types/wlr_touch.h2
-rw-r--r--types/wlr_touch.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/interfaces/wlr_touch.h b/include/wlr/interfaces/wlr_touch.h
index cc426332..e4ea6a78 100644
--- a/include/wlr/interfaces/wlr_touch.h
+++ b/include/wlr/interfaces/wlr_touch.h
@@ -16,7 +16,7 @@ struct wlr_touch_impl {
};
void wlr_touch_init(struct wlr_touch *touch,
- struct wlr_touch_impl *impl);
+ const struct wlr_touch_impl *impl);
void wlr_touch_destroy(struct wlr_touch *touch);
#endif
diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h
index 99316ae0..80ba768e 100644
--- a/include/wlr/types/wlr_touch.h
+++ b/include/wlr/types/wlr_touch.h
@@ -15,7 +15,7 @@
struct wlr_touch_impl;
struct wlr_touch {
- struct wlr_touch_impl *impl;
+ const struct wlr_touch_impl *impl;
struct {
struct wl_signal down;
diff --git a/types/wlr_touch.c b/types/wlr_touch.c
index ba7ffac7..f04a8ffe 100644
--- a/types/wlr_touch.c
+++ b/types/wlr_touch.c
@@ -5,7 +5,7 @@
#include <wlr/types/wlr_touch.h>
void wlr_touch_init(struct wlr_touch *touch,
- struct wlr_touch_impl *impl) {
+ const struct wlr_touch_impl *impl) {
touch->impl = impl;
wl_signal_init(&touch->events.down);
wl_signal_init(&touch->events.up);