wlr_touch: Declare wlr_touch_impl usage as const

This brings it in line with wlr_keyboard and wlr_pointer
master
Sebastian Krzyszkowiak 6 years ago committed by Drew DeVault
parent 692a16cef7
commit 2d4bc66f11

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

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

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

Loading…
Cancel
Save