From b3ebbfd9a0dc04ca20325f4cf2621f8d952147fe Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 14 Mar 2011 18:07:46 +0100 Subject: Move realtime read into its own function The realtime read functionality is needed in many places, in particular in the test frameworks of utouch-frame and utouch-grail. Move the realtime code from evemu_play into its own function, and make it part of the API. Signed-off-by: Henrik Rydberg --- include/evemu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/evemu.h b/include/evemu.h index f414fdf..31107bc 100644 --- a/include/evemu.h +++ b/include/evemu.h @@ -76,6 +76,8 @@ int evemu_read(struct evemu_device *dev, FILE *fp); int evemu_write_event(FILE *fp, const struct input_event *ev); int evemu_read_event(FILE *fp, struct input_event *ev); +int evemu_read_event_realtime(FILE *fp, struct input_event *ev, + struct timeval *evtime); int evemu_record(FILE *fp, int fd, int ms); int evemu_play(FILE *fp, int fd); -- cgit v1.2.3