uloop: Add flag to allow callback to be called on error conditions.
[project/libubox.git] / uloop.h
diff --git a/uloop.h b/uloop.h
index 98dd818..7564514 100644 (file)
--- a/uloop.h
+++ b/uloop.h
@@ -53,6 +53,8 @@ typedef void (*uloop_process_handler)(struct uloop_process *c, int ret);
 #define ULOOP_EDGE_DEFER       (1 << 5)
 #endif
 
+#define ULOOP_ERROR_CB         (1 << 6)
+
 struct uloop_fd
 {
        uloop_fd_handler cb;