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/touch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/touch.c') diff --git a/test/touch.c b/test/touch.c index 1f9213d..bc10b54 100644 --- a/test/touch.c +++ b/test/touch.c @@ -22,7 +22,7 @@ * ****************************************************************************/ -#include +#include #include #include #include @@ -34,7 +34,8 @@ static void tp_event(struct touch_engine *engine, fprintf(stderr, "event %d %d %d\n", ev->type, ev->code, ev->value); } -static void tp_sync(struct touch_engine *engine) +static void tp_sync(struct touch_engine *engine, + const struct input_event *syn) { struct touch_frame *frame = &engine->frame; int slot, i; @@ -62,7 +63,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