From 7dfee50350180e38c7c02b79c5a3ee454dc552fd Mon Sep 17 00:00:00 2001
From: Simon Zeni <simon@bl4ckb0ne.ca>
Date: Tue, 1 Feb 2022 11:32:39 -0500
Subject: types/wlr_tablet_tool: add base wlr_input_device

wlr_tablet_tool owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the tablet tool is destroyed.
---
 include/wlr/interfaces/wlr_tablet_tool.h | 2 +-
 include/wlr/types/wlr_tablet_tool.h      | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

(limited to 'include/wlr')

diff --git a/include/wlr/interfaces/wlr_tablet_tool.h b/include/wlr/interfaces/wlr_tablet_tool.h
index 81e72d75..de7430a2 100644
--- a/include/wlr/interfaces/wlr_tablet_tool.h
+++ b/include/wlr/interfaces/wlr_tablet_tool.h
@@ -16,7 +16,7 @@ struct wlr_tablet_impl {
 };
 
 void wlr_tablet_init(struct wlr_tablet *tablet,
-		const struct wlr_tablet_impl *impl);
+	const struct wlr_tablet_impl *impl, const char *name);
 void wlr_tablet_destroy(struct wlr_tablet *tablet);
 
 #endif
diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h
index 75fc1ee8..b8b4000f 100644
--- a/include/wlr/types/wlr_tablet_tool.h
+++ b/include/wlr/types/wlr_tablet_tool.h
@@ -60,6 +60,8 @@ struct wlr_tablet_tool {
 struct wlr_tablet_impl;
 
 struct wlr_tablet {
+	struct wlr_input_device base;
+
 	const struct wlr_tablet_impl *impl;
 
 	struct {
-- 
cgit v1.2.3