diff options
author | Chase Douglas <chase.douglas@ubuntu.com> | 2012-06-08 14:11:20 -0700 |
---|---|---|
committer | Chase Douglas <chase.douglas@ubuntu.com> | 2012-06-08 14:11:20 -0700 |
commit | 2a9b7b788bd28a6567f766e2312888436e839cf6 (patch) | |
tree | 54eaf1a79783b01a6a121cac74e17cc5c52973b5 /include | |
parent | a6221df4c68e8efb2006b17b9e4a12d287d16361 (diff) | |
parent | d1f2d5d1b15efd1b9e9a3c15036ab9c161e0124a (diff) |
Merge evemu-event tool and single-event replay API
Diffstat (limited to 'include')
-rw-r--r-- | include/evemu.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/evemu.h b/include/evemu.h index 3f2bfb0..4f4db55 100644 --- a/include/evemu.h +++ b/include/evemu.h @@ -328,6 +328,15 @@ int evemu_read(struct evemu_device *dev, FILE *fp); int evemu_write_event(FILE *fp, const struct input_event *ev); /** + * evemu_create_event() - Create a single event + * @ev: pointer to the kernel event to be filled + * @type: the event type to set + * @code: the event code to set + * @value: the event value to set + */ +int evemu_create_event(struct input_event *ev, int type, int code, int value); + +/** * evemu_read_event() - read kernel event from file * @fp: file pointer to read the event from * @ev: pointer to the kernel event to be filled @@ -370,6 +379,14 @@ int evemu_read_event_realtime(FILE *fp, struct input_event *ev, */ int evemu_record(FILE *fp, int fd, int ms); + +/** + * evemu_play_one() - play one event to kernel device + * @fd: file descriptor of kernel device to write to + * @ev: pointer to the kernel event to be played + */ +int evemu_play_one(int fd, const struct input_event *ev); + /** * evemu_play() - replay events from file to kernel device in realtime * @fp: file pointer to read the events from |