mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
types/wlr_switch: constify impl
This commit is contained in:
parent
f1181c34ed
commit
1acc931cf0
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ struct wlr_switch_impl {
|
||||||
};
|
};
|
||||||
|
|
||||||
void wlr_switch_init(struct wlr_switch *switch_device,
|
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);
|
void wlr_switch_destroy(struct wlr_switch *switch_device);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,7 +18,7 @@ struct wlr_switch_impl;
|
||||||
struct wlr_switch {
|
struct wlr_switch {
|
||||||
struct wlr_input_device base;
|
struct wlr_input_device base;
|
||||||
|
|
||||||
struct wlr_switch_impl *impl;
|
const struct wlr_switch_impl *impl;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct wl_signal toggle;
|
struct wl_signal toggle;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <wlr/types/wlr_switch.h>
|
#include <wlr/types/wlr_switch.h>
|
||||||
|
|
||||||
void wlr_switch_init(struct wlr_switch *switch_device,
|
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,
|
wlr_input_device_init(&switch_device->base, WLR_INPUT_DEVICE_SWITCH, NULL,
|
||||||
name);
|
name);
|
||||||
switch_device->base.switch_device = switch_device;
|
switch_device->base.switch_device = switch_device;
|
||||||
|
|
Loading…
Reference in a new issue