aboutsummaryrefslogtreecommitdiffhomepage
path: root/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'evdev.c')
-rw-r--r--evdev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/evdev.c b/evdev.c
index 8cc4aa4..6b9d494 100644
--- a/evdev.c
+++ b/evdev.c
@@ -6,6 +6,7 @@
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
+#include <dirent.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -25,6 +26,12 @@ struct applause_evdev {
pthread_t thread;
};
+const char *
+applause_dirent_name(const struct dirent *entry)
+{
+ return entry->d_name;
+}
+
char *
applause_evdev_getname(const char *node)
{