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.
This commit is contained in:
Simon Zeni 2022-02-01 11:32:39 -05:00 committed by Kirill Primak
parent a662743610
commit 7dfee50350
5 changed files with 16 additions and 4 deletions

View file

@ -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

View file

@ -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 {