summaryrefslogtreecommitdiff
path: root/libevdev/libevdev-int.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-05-30 10:42:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-05-30 13:37:25 +1000
commitf3d94ecfd725f462eb1c3a9ac16c4dae5c8872b1 (patch)
tree94273b1a6e8850d6d66c0abf9cc2c487033f65d4 /libevdev/libevdev-int.h
parente19994c34c4225185860cd9f2d2aab46a04347e6 (diff)
downloadlibevdev-f3d94ecfd725f462eb1c3a9ac16c4dae5c8872b1.tar.gz
Drop the callback interface, replace with libevdev_next_event
Callbacks looked good on paper, but synaptics ran into an issue already that it just couldn't easily pass around the state needed in the actual event processing function. Replace with a new interface that only returns the next event (still reading more off the fd while doing so). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'libevdev/libevdev-int.h')
-rw-r--r--libevdev/libevdev-int.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libevdev/libevdev-int.h b/libevdev/libevdev-int.h
index b231a81..d287697 100644
--- a/libevdev/libevdev-int.h
+++ b/libevdev/libevdev-int.h
@@ -37,10 +37,6 @@
struct libevdev {
int fd;
- libevdev_callback_proc callback;
- libevdev_callback_proc sync_callback;
- void *userdata;
-
libevdev_log_func_t log;
char name[MAX_NAME];
@@ -62,6 +58,7 @@ struct libevdev {
struct input_event *queue;
size_t queue_size; /**< size of queue in elements */
size_t queue_next; /**< next event index */
+ size_t queue_nsync; /**< number of sync events */
};
#endif