diff options
-rw-r--r-- | include/hardware_legacy/uevent.h | 1 | ||||
-rw-r--r-- | uevent/uevent.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/hardware_legacy/uevent.h b/include/hardware_legacy/uevent.h index e4b588b..bedfff5 100644 --- a/include/hardware_legacy/uevent.h +++ b/include/hardware_legacy/uevent.h @@ -22,6 +22,7 @@ extern "C" { #endif int uevent_init(); +int uevent_get_fd(); int uevent_next_event(char* buffer, int buffer_length); int uevent_add_native_handler(void (*handler)(void *data, const char *msg, int msg_len), void *handler_data); diff --git a/uevent/uevent.c b/uevent/uevent.c index 396bad4..ef8ce84 100644 --- a/uevent/uevent.c +++ b/uevent/uevent.c @@ -65,6 +65,11 @@ int uevent_init() return (fd > 0); } +int uevent_get_fd() +{ + return fd; +} + int uevent_next_event(char* buffer, int buffer_length) { while (1) { |