Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Vogel <karl.vogel@gmail.com>2014-02-11 12:37:08 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-02-23 21:18:32 +0400
commit926121113b903bf7b6133f782c84d0ed6c1a1a58 (patch)
treea80504b83b97eef48ced3d819f7f3cdd3eae1063 /uloop.h
parent43d2d349cb86a79d3d86012b101c458d344b05a4 (diff)
uloop: Add flag to allow callback to be called on error conditions.
In some conditions, an application is interested in errors happening on a file descriptor and might be able to resolve the issue in the callback function. This patch adds a flag to notify the uloop framework that errors should be passed to the callback function, instead of silently removing the fd from the polling set. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
Diffstat (limited to 'uloop.h')
-rw-r--r--uloop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/uloop.h b/uloop.h
index 98dd818..7564514 100644
--- 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;