aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-14 16:07:00 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-14 16:22:31 +0200
commitba20d5b3cae29a90b1d66c9d53f295a7c41c932e (patch)
treec1a6661f8e55666c33d8bec6d0d55e14df194339 /include
parentbd67849c03a13b2a12d35fb068d30eb0f8ea3cc9 (diff)
Refactor out wlr_touch_state
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_touch.h6
-rw-r--r--include/wlr/types/wlr_touch.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/include/wlr/interfaces/wlr_touch.h b/include/wlr/interfaces/wlr_touch.h
index d83ad558..b5fcef18 100644
--- a/include/wlr/interfaces/wlr_touch.h
+++ b/include/wlr/interfaces/wlr_touch.h
@@ -3,11 +3,11 @@
#include <wlr/types/wlr_touch.h>
struct wlr_touch_impl {
- void (*destroy)(struct wlr_touch_state *state);
+ void (*destroy)(struct wlr_touch *touch);
};
-struct wlr_touch *wlr_touch_create(struct wlr_touch_impl *impl,
- struct wlr_touch_state *state);
+void wlr_touch_init(struct wlr_touch *touch,
+ struct wlr_touch_impl *impl);
void wlr_touch_destroy(struct wlr_touch *touch);
#endif
diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h
index 740d70f6..93069fcb 100644
--- a/include/wlr/types/wlr_touch.h
+++ b/include/wlr/types/wlr_touch.h
@@ -3,11 +3,9 @@
#include <wayland-server.h>
#include <stdint.h>
-struct wlr_touch_state;
struct wlr_touch_impl;
struct wlr_touch {
- struct wlr_touch_state *state;
struct wlr_touch_impl *impl;
struct {