aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2019-03-20 09:41:20 +1100
committerBrian Ashworth <bosrsf04@gmail.com>2019-03-19 22:45:58 -0400
commit4453757fc9fa357288423ef3b54af3a1d7f35366 (patch)
treec371e580a6df27dd82e74da6b8b0509a0d4107e3 /include/wlr
parent6b7f5e4010103bffaf4666b77f7a4369295588d8 (diff)
s/lid_switch/switch_device
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/interfaces/wlr_switch.h6
-rw-r--r--include/wlr/types/wlr_input_device.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/interfaces/wlr_switch.h b/include/wlr/interfaces/wlr_switch.h
index 0b0454f5..83a1365b 100644
--- a/include/wlr/interfaces/wlr_switch.h
+++ b/include/wlr/interfaces/wlr_switch.h
@@ -12,11 +12,11 @@
#include <wlr/types/wlr_switch.h>
struct wlr_switch_impl {
- void (*destroy)(struct wlr_switch *lid_switch);
+ void (*destroy)(struct wlr_switch *switch_device);
};
-void wlr_switch_init(struct wlr_switch *lid_switch,
+void wlr_switch_init(struct wlr_switch *switch_device,
struct wlr_switch_impl *impl);
-void wlr_switch_destroy(struct wlr_switch *lid_switch);
+void wlr_switch_destroy(struct wlr_switch *switch_device);
#endif
diff --git a/include/wlr/types/wlr_input_device.h b/include/wlr/types/wlr_input_device.h
index f948d55b..21462023 100644
--- a/include/wlr/types/wlr_input_device.h
+++ b/include/wlr/types/wlr_input_device.h
@@ -48,7 +48,7 @@ struct wlr_input_device {
void *_device;
struct wlr_keyboard *keyboard;
struct wlr_pointer *pointer;
- struct wlr_switch *lid_switch;
+ struct wlr_switch *switch_device;
struct wlr_touch *touch;
struct wlr_tablet *tablet;
struct wlr_tablet_pad *tablet_pad;