From b76660d71e2ea77752025089bd71deffad64e325 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 26 Jul 2010 13:51:34 +0200 Subject: Test implementation of grail api This patch introduces the grail API, and a program to test it (evlink). Signed-off-by: Henrik Rydberg --- include/grail-touch.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/grail-touch.h') 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 { void (*modify)(struct touch_dev *dev, int slot, const touch_prop_mask_t *mask, const touch_prop_t *prop); void (*destroy)(struct touch_dev *dev, int slot); - void (*sync)(struct touch_dev *dev, touch_time_t time); + void (*sync)(struct touch_dev *dev, const struct input_event *syn); struct touch_dev_impl *impl; void *priv; }; @@ -75,7 +75,8 @@ struct touch_dev { struct touch_engine { void (*event)(struct touch_engine *engine, const struct input_event *ev); - void (*sync)(struct touch_engine *engine); + void (*sync)(struct touch_engine *engine, + const struct input_event *syn); struct touch_frame frame; void *priv; }; @@ -98,7 +99,8 @@ void touch_dev_close(struct touch_dev *dev, int fd); void touch_engine_init(struct touch_engine *engine, void (*event)(struct touch_engine *engine, const struct input_event *ev), - void (*sync)(struct touch_engine *engine), + void (*sync)(struct touch_engine *engine, + const struct input_event *ev), void *priv); void touch_engine_attach(struct touch_engine *engine, struct touch_dev *dev); void touch_engine_detach(struct touch_engine *engine, struct touch_dev *dev); -- cgit v1.2.3