summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2026-03-21 03:59:28 +0000
committerFelix Fietkau2026-03-21 04:01:38 +0000
commitf9b1f3ff17baeb490cc896a037f176c0240ae776 (patch)
tree0fa2a99fc094de15895f8322065ff249cfccfc99
parent895f92164b665ef84ca804873ddb03fb6f7c8b37 (diff)
downloadlibubox-master.tar.gz
uloop: revert my flag changes from the ULOOP_PRIORITY changeHEADmaster
ULOOP_ERROR_CB was accidentally renumbered because it was declared after the internal flags. Move the flags, and preserve the bit values in order to avoid unnecesary ABI churn Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--uloop.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/uloop.h b/uloop.h
index 74e35a8..d07bf44 100644
--- a/uloop.h
+++ b/uloop.h
@@ -49,13 +49,13 @@ typedef void (*uloop_signal_handler)(struct uloop_signal *s);
#define ULOOP_EDGE_TRIGGER (1 << 2)
#define ULOOP_BLOCKING (1 << 3)
-#define ULOOP_ERROR_CB (1 << 4)
-#define ULOOP_PRIORITY (1 << 5)
+#define ULOOP_ERROR_CB (1 << 6)
+#define ULOOP_PRIORITY (1 << 7)
/* internal flags */
-#define ULOOP_EVENT_BUFFERED (1 << 6)
+#define ULOOP_EVENT_BUFFERED (1 << 4)
#ifdef USE_KQUEUE
-#define ULOOP_EDGE_DEFER (1 << 7)
+#define ULOOP_EDGE_DEFER (1 << 5)
#endif
#define ULOOP_EVENT_MASK (ULOOP_READ | ULOOP_WRITE | ULOOP_PRIORITY)