summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/tevent_fd.c')
-rw-r--r--lib/tevent/tevent_fd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/tevent/tevent_fd.c b/lib/tevent/tevent_fd.c
index a0557fedbec..cd8b9741281 100644
--- a/lib/tevent/tevent_fd.c
+++ b/lib/tevent/tevent_fd.c
@@ -159,3 +159,21 @@ int tevent_common_invoke_fd_handler(struct tevent_fd *fde, uint16_t flags,
return 0;
}
+
+void tevent_fd_set_tag(struct tevent_fd *fde, uint64_t tag)
+{
+ if (fde == NULL) {
+ return;
+ }
+
+ fde->tag = tag;
+}
+
+uint64_t tevent_fd_get_tag(const struct tevent_fd *fde)
+{
+ if (fde == NULL) {
+ return 0;
+ }
+
+ return fde->tag;
+}