wlr_touch: Declare wlr_touch_impl usage as const

This brings it in line with wlr_keyboard and wlr_pointer
This commit is contained in:
Sebastian Krzyszkowiak 2019-07-15 22:54:39 +02:00 committed by Drew DeVault
parent 692a16cef7
commit 2d4bc66f11
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);