diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-09 15:53:42 -0500 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-21 13:53:40 -0500 |
commit | 1acc931cf0f4de6b4402a70f1343f14df4d83347 (patch) | |
tree | 7ef4e7425e4a55caeaaea4972632a53a9d77e1f1 | |
parent | f1181c34ed3c3dd80299d634de062c4f2d731bac (diff) | |
download | wlroots-1acc931cf0f4de6b4402a70f1343f14df4d83347.tar.xz |
types/wlr_switch: constify impl
-rw-r--r-- | include/wlr/interfaces/wlr_switch.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_switch.h | 2 | ||||
-rw-r--r-- | types/wlr_switch.c | 2 |
3 files changed, 3 insertions, 3 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; diff --git a/types/wlr_switch.c b/types/wlr_switch.c index 44a004e2..629fa5ee 100644 --- a/types/wlr_switch.c +++ b/types/wlr_switch.c @@ -6,7 +6,7 @@ #include <wlr/types/wlr_switch.h> 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) { wlr_input_device_init(&switch_device->base, WLR_INPUT_DEVICE_SWITCH, NULL, name); switch_device->base.switch_device = switch_device; |