summaryrefslogtreecommitdiff
path: root/include/sudo_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sudo_event.h')
-rw-r--r--include/sudo_event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sudo_event.h b/include/sudo_event.h
index 12bb89478..67dfb20bd 100644
--- a/include/sudo_event.h
+++ b/include/sudo_event.h
@@ -192,6 +192,9 @@ sudo_dso_public bool sudo_ev_got_break_v1(struct sudo_event_base *base);
/* Return the base an event is associated with or NULL. */
#define sudo_ev_get_base(_ev) ((_ev) ? (_ev)->base : NULL)
+/* Set the base an event is associated with. */
+#define sudo_ev_set_base(_ev, _b) ((_ev)->base = (_b))
+
/* Magic pointer value to use self pointer as callback arg. */
#define sudo_ev_self_cbarg() ((void *)-1)