aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-01-31 10:53:58 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-02-21 17:11:32 +0000
commit0f3b38365d07bb3e65b5ce2ec265453115276d1d (patch)
treef427995f384fd7fca1d1289cfdb067a92138afa8 /include
parentd5480efc7a03641600df411dea93308e5edc8b27 (diff)
types/wlr_switch: add base wlr_input_device
wlr_switch owns its wlr_input_device. It will be initialized when the switch is initialized, and finished when the switch is destroyed.
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, 3 insertions, 1 deletions
diff --git a/include/wlr/interfaces/wlr_switch.h b/include/wlr/interfaces/wlr_switch.h
index 83a1365b..cce55f98 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);
+ 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 93db04c5..a0b9562f 100644
--- a/include/wlr/types/wlr_switch.h
+++ b/include/wlr/types/wlr_switch.h
@@ -16,6 +16,8 @@
struct wlr_switch_impl;
struct wlr_switch {
+ struct wlr_input_device base;
+
struct wlr_switch_impl *impl;
struct {