aboutsummaryrefslogtreecommitdiffhomepage
path: root/evdev.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-24 19:29:42 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-24 19:29:42 +0300
commitd444a5d7405016a5094e26050cfb453bcd6f882a (patch)
tree64e64cdc97dc128b5cf4a7aebeec32ef5bf47e63 /evdev.h
parentb45726451da90bba61d75f817982d2abdfbb0542 (diff)
downloadapplause2-d444a5d7405016a5094e26050cfb453bcd6f882a.tar.gz
evdev: access struct dirent via helper function applause_dirent_name() instead directly from Lua
* the structure is highly platform-dependant and might even differ between 32-bit and 64-bit systems * in particular this fixes EvdevStream on FreeBSD
Diffstat (limited to 'evdev.h')
-rw-r--r--evdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/evdev.h b/evdev.h
index 764b11b..68442e3 100644
--- a/evdev.h
+++ b/evdev.h
@@ -8,6 +8,7 @@ typedef struct applause_evdev_sample {
typedef struct applause_evdev applause_evdev;
+const char *applause_dirent_name(const struct dirent *entry);
char *applause_evdev_getname(const char *node);
applause_evdev *applause_evdev_new(const char *node, bool grab);
void applause_evdev_pull(applause_evdev *evdev, applause_evdev_sample *sample);