VCL: add epoll_* functions.
[vpp.git] / src / uri / vppcom.h
index 4b048e0..b7c8028 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <netdb.h>
 #include <errno.h>
+#include <sys/epoll.h>
 
 /*
  * VPPCOM Public API Definitions, Enums, and Data Structures
@@ -141,6 +142,13 @@ extern int vppcom_select (unsigned long n_bits,
                          unsigned long *write_map,
                          unsigned long *except_map, double wait_for_time);
 
+extern int vppcom_epoll_create (void);
+extern int vppcom_epoll_ctl (uint32_t vep_idx, int op,
+                            uint32_t session_index,
+                            struct epoll_event *event);
+extern int vppcom_epoll_wait (uint32_t vep_idx, struct epoll_event *events,
+                             int maxevents, double wait_for_time);
+
 #endif /* included_vppcom_h */
 
 /*