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 --- test/grail.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/grail.c') diff --git a/test/grail.c b/test/grail.c index 82de65f..e22ffd8 100644 --- a/test/grail.c +++ b/test/grail.c @@ -22,7 +22,7 @@ * ****************************************************************************/ -#include +#include #include #include #include @@ -133,7 +133,8 @@ static void tp_event(struct touch_engine *engine, { } -static void tp_sync(struct touch_engine *engine) +static void tp_sync(struct touch_engine *engine, + const struct input_event *syn) { struct gesture_handler *gh = engine->priv; struct touch_frame *frame = &engine->frame; @@ -158,7 +159,7 @@ int main(int argc, char *argv[]) struct touch_dev dev; int fd; if (argc < 2) { - fprintf(stderr, "Usage: mtdev \n"); + fprintf(stderr, "Usage: %s \n", argv[0]); return -1; } fd = open(argv[1], O_RDONLY | O_NONBLOCK); -- cgit v1.2.3