]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tevent: expose tevent_find_ops_byname() to callers
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Oct 2022 12:10:15 +0000 (14:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2023 16:26:36 +0000 (16:26 +0000)
This makes it more flexible and allow a caller to overload
a tevent backend. Which will be used by Samba in order to
glue in io_uring support.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tevent/ABI/tevent-0.13.0.sigs
lib/tevent/tevent.c
lib/tevent/tevent.h
lib/tevent/tevent_internal.h

index 68722a0e62f987183eca346a854036ee5bf06b90..76c84af812cd2bf341ca82bc86d327bf50e16321 100644 (file)
@@ -60,6 +60,7 @@ tevent_fd_set_auto_close: void (struct tevent_fd *)
 tevent_fd_set_close_fn: void (struct tevent_fd *, tevent_fd_close_fn_t)
 tevent_fd_set_flags: void (struct tevent_fd *, uint16_t)
 tevent_fd_set_tag: void (struct tevent_fd *, uint64_t)
+tevent_find_ops_byname: const struct tevent_ops *(const char *)
 tevent_get_trace_callback: void (struct tevent_context *, tevent_trace_callback_t *, void *)
 tevent_get_trace_fd_callback: void (struct tevent_context *, tevent_trace_fd_callback_t *, void *)
 tevent_get_trace_immediate_callback: void (struct tevent_context *, tevent_trace_immediate_callback_t *, void *)
index e0151f9eb925f7029cf188b2239b7ecd8ab30843..19f30ff77225f3e0f6a427522d07cb03e0d170ad 100644 (file)
@@ -135,7 +135,7 @@ static void tevent_backend_init(void)
        tevent_standard_init();
 }
 
-_PRIVATE_ const struct tevent_ops *tevent_find_ops_byname(const char *name)
+const struct tevent_ops *tevent_find_ops_byname(const char *name)
 {
        struct tevent_ops_list *e;
 
index 656df254be0346510c061c84127a3099e1abe96c..350270d8e407ed97bd51d84bcf0f49991f6d87b9 100644 (file)
@@ -2442,6 +2442,7 @@ struct tevent_ops {
 };
 
 bool tevent_register_backend(const char *name, const struct tevent_ops *ops);
+const struct tevent_ops *tevent_find_ops_byname(const char *name);
 
 /* @} */
 
index 74a5d3d000d6615311a7a7432d47f8446233fe5c..a5df1b14b26cb9cf608602ead1c6a29398d7b5fe 100644 (file)
@@ -397,8 +397,6 @@ struct tevent_context {
 #endif
 };
 
-const struct tevent_ops *tevent_find_ops_byname(const char *name);
-
 int tevent_common_context_destructor(struct tevent_context *ev);
 int tevent_common_loop_wait(struct tevent_context *ev,
                            const char *location);