diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:03:05 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-14 16:22:31 +0200 |
commit | bd67849c03a13b2a12d35fb068d30eb0f8ea3cc9 (patch) | |
tree | b818ca1e9ac88ab3947123d2ea4c2bdeb8da6f20 /include/wlr | |
parent | a289940bff8bcda5cc6aeb1d88f4f1e5c2c38317 (diff) |
Refactor out wlr_tablet_tool_state
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/interfaces/wlr_tablet_tool.h | 6 | ||||
-rw-r--r-- | include/wlr/types/wlr_tablet_tool.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/wlr/interfaces/wlr_tablet_tool.h b/include/wlr/interfaces/wlr_tablet_tool.h index cd326878..43a24fd0 100644 --- a/include/wlr/interfaces/wlr_tablet_tool.h +++ b/include/wlr/interfaces/wlr_tablet_tool.h @@ -3,11 +3,11 @@ #include <wlr/types/wlr_tablet_tool.h> struct wlr_tablet_tool_impl { - void (*destroy)(struct wlr_tablet_tool_state *tool); + void (*destroy)(struct wlr_tablet_tool *tool); }; -struct wlr_tablet_tool *wlr_tablet_tool_create(struct wlr_tablet_tool_impl *impl, - struct wlr_tablet_tool_state *state); +void wlr_tablet_tool_init(struct wlr_tablet_tool *tool, + struct wlr_tablet_tool_impl *impl); void wlr_tablet_tool_destroy(struct wlr_tablet_tool *tool); #endif diff --git a/include/wlr/types/wlr_tablet_tool.h b/include/wlr/types/wlr_tablet_tool.h index f99cd065..dcb9c191 100644 --- a/include/wlr/types/wlr_tablet_tool.h +++ b/include/wlr/types/wlr_tablet_tool.h @@ -5,11 +5,9 @@ #include <stdint.h> struct wlr_tablet_tool_impl; -struct wlr_tablet_tool_state; struct wlr_tablet_tool { struct wlr_tablet_tool_impl *impl; - struct wlr_tablet_tool_state *state; struct { struct wl_signal axis; |