feature
[metze/samba/wip.git] / lib / tevent / tevent.h
index 7de04d03896c17958d1ad9cc94a3bfdae44dedf2..e004e42a37bbbe14c7b6b0332b57d7e2f2ff29ac 100644 (file)
@@ -29,6 +29,7 @@
 #define __TEVENT_H__
 
 #include <stdint.h>
+#include <stdbool.h>
 #include <talloc.h>
 #include <sys/time.h>
 #include <stdbool.h>
@@ -158,6 +159,13 @@ const char **tevent_backend_list(TALLOC_CTX *mem_ctx);
  */
 void tevent_set_default_backend(const char *backend);
 
+#define TEVENT_FEATURE_FD_SUPPORT      0x00000001
+#define TEVENT_FEATURE_TIMER_SUPPORT   0x00000002
+#define TEVENT_FEATURE_SIGNAL_SUPPORT  0x00000004
+#define TEVENT_FEATURE_AIO_SUPPORT     0x00000008
+
+bool tevent_have_features(struct tevent_context *ev, uint32_t features);
+
 #ifdef DOXYGEN
 /**
  * @brief Add a file descriptor based event.