Allow -1 as valid fd in libevdev_change_fd
[platform/upstream/libevdev.git] / libevdev / libevdev-int.h
index 21d67d3..847fe56 100644 (file)
@@ -26,6 +26,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdbool.h>
 #include <errno.h>
 #include "libevdev.h"
 
@@ -73,6 +74,7 @@ enum SyncState {
 
 struct libevdev {
        int fd;
+       bool initialized;
        char *name;
        char *phys;
        char *uniq;