diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-03-14 17:57:40 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-14 18:04:54 +0100 |
| commit | 9994438da1c74a27be7677d8a22b8158309e9c37 (patch) | |
| tree | 19889736387c43d1ffe46823cb6f2212c6c52a60 /include | |
| parent | ce26d71cf779fc6d4d6c5bc7af856d5256e68d8a (diff) | |
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 <rydberg@euromail.se>
Diffstat (limited to 'include')
| -rw-r--r-- | include/evemu.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); | |||
| 76 | 76 | ||
| 77 | int evemu_write_event(FILE *fp, const struct input_event *ev); | 77 | int evemu_write_event(FILE *fp, const struct input_event *ev); |
| 78 | int evemu_read_event(FILE *fp, struct input_event *ev); | 78 | int evemu_read_event(FILE *fp, struct input_event *ev); |
| 79 | int evemu_read_event_realtime(FILE *fp, struct input_event *ev, | ||
| 80 | struct timeval *evtime); | ||
| 79 | 81 | ||
| 80 | int evemu_record(FILE *fp, int fd, int ms); | 82 | int evemu_record(FILE *fp, int fd, int ms); |
| 81 | int evemu_play(FILE *fp, int fd); | 83 | int evemu_play(FILE *fp, int fd); |
