aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_switch.h2
-rw-r--r--include/wlr/types/wlr_switch.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/interfaces/wlr_switch.h b/include/wlr/interfaces/wlr_switch.h
index cce55f98..fbf5e6cb 100644
--- a/include/wlr/interfaces/wlr_switch.h
+++ b/include/wlr/interfaces/wlr_switch.h
@@ -16,7 +16,7 @@ struct wlr_switch_impl {
};
void wlr_switch_init(struct wlr_switch *switch_device,
- struct wlr_switch_impl *impl, const char *name);
+ const struct wlr_switch_impl *impl, const char *name);
void wlr_switch_destroy(struct wlr_switch *switch_device);
#endif
diff --git a/include/wlr/types/wlr_switch.h b/include/wlr/types/wlr_switch.h
index a0b9562f..31811ec3 100644
--- a/include/wlr/types/wlr_switch.h
+++ b/include/wlr/types/wlr_switch.h
@@ -18,7 +18,7 @@ struct wlr_switch_impl;
struct wlr_switch {
struct wlr_input_device base;
- struct wlr_switch_impl *impl;
+ const struct wlr_switch_impl *impl;
struct {
struct wl_signal toggle;