minui: add ev_get_epollfd() to retrieve epoll file descriptor

To allow use of ev_* functions with an external main loop.

Change-Id: If73717b64d7c455ca726b90a815a31c1edf52544
This commit is contained in:
Todd Poynor
2013-09-12 12:42:34 -07:00
parent e7265df352
commit 4665ede960
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -132,6 +132,11 @@ int ev_add_fd(int fd, ev_callback cb, void *data)
return ret;
}
int ev_get_epollfd(void)
{
return epollfd;
}
void ev_exit(void)
{
while (ev_count > 0) {
+1
View File
@@ -67,6 +67,7 @@ int ev_wait(int timeout);
int ev_get_input(int fd, unsigned int epevents, struct input_event *ev);
void ev_dispatch(void);
int ev_get_epollfd(void);
// Resources