summaryrefslogtreecommitdiff
path: root/include/grail-touch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grail-touch.h')
-rw-r--r--include/grail-touch.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/grail-touch.h b/include/grail-touch.h
index 9e8572b..e4bfd7b 100644
--- a/include/grail-touch.h
+++ b/include/grail-touch.h
@@ -67,7 +67,7 @@ struct touch_dev {
67 void (*modify)(struct touch_dev *dev, int slot, 67 void (*modify)(struct touch_dev *dev, int slot,
68 const touch_prop_mask_t *mask, const touch_prop_t *prop); 68 const touch_prop_mask_t *mask, const touch_prop_t *prop);
69 void (*destroy)(struct touch_dev *dev, int slot); 69 void (*destroy)(struct touch_dev *dev, int slot);
70 void (*sync)(struct touch_dev *dev, touch_time_t time); 70 void (*sync)(struct touch_dev *dev, const struct input_event *syn);
71 struct touch_dev_impl *impl; 71 struct touch_dev_impl *impl;
72 void *priv; 72 void *priv;
73}; 73};
@@ -75,7 +75,8 @@ struct touch_dev {
75struct touch_engine { 75struct touch_engine {
76 void (*event)(struct touch_engine *engine, 76 void (*event)(struct touch_engine *engine,
77 const struct input_event *ev); 77 const struct input_event *ev);
78 void (*sync)(struct touch_engine *engine); 78 void (*sync)(struct touch_engine *engine,
79 const struct input_event *syn);
79 struct touch_frame frame; 80 struct touch_frame frame;
80 void *priv; 81 void *priv;
81}; 82};
@@ -98,7 +99,8 @@ void touch_dev_close(struct touch_dev *dev, int fd);
98void touch_engine_init(struct touch_engine *engine, 99void touch_engine_init(struct touch_engine *engine,
99 void (*event)(struct touch_engine *engine, 100 void (*event)(struct touch_engine *engine,
100 const struct input_event *ev), 101 const struct input_event *ev),
101 void (*sync)(struct touch_engine *engine), 102 void (*sync)(struct touch_engine *engine,
103 const struct input_event *ev),
102 void *priv); 104 void *priv);
103void touch_engine_attach(struct touch_engine *engine, struct touch_dev *dev); 105void touch_engine_attach(struct touch_engine *engine, struct touch_dev *dev);
104void touch_engine_detach(struct touch_engine *engine, struct touch_dev *dev); 106void touch_engine_detach(struct touch_engine *engine, struct touch_dev *dev);