tevent: make tevent_abort() available for backends
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Jul 2014 13:10:00 +0000 (15:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 May 2018 07:51:45 +0000 (09:51 +0200)
We'll remove the _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tevent/tevent.c
lib/tevent/tevent_internal.h

index 3d32fd7e12de91f2c0354e3ad053d47f3ebae671..501d548a9f092b92f80d3789d72ccb5e5589d644 100644 (file)
@@ -70,8 +70,6 @@
 #include <sys/eventfd.h>
 #endif
 
-static void tevent_abort(struct tevent_context *ev, const char *reason);
-
 struct tevent_ops_list {
        struct tevent_ops_list *next, *prev;
        const char *name;
@@ -575,7 +573,8 @@ void tevent_set_abort_fn(void (*abort_fn)(const char *reason))
        tevent_abort_fn = abort_fn;
 }
 
-static void tevent_abort(struct tevent_context *ev, const char *reason)
+_PRIVATE_
+void tevent_abort(struct tevent_context *ev, const char *reason)
 {
        if (ev != NULL) {
                tevent_debug(ev, TEVENT_DEBUG_FATAL,
index ec3955e70a492dfb340328dc1fdbd75af9b053bd..cbe2e69548dc1718e25b76571a1ab701a08d6dd2 100644 (file)
@@ -246,6 +246,8 @@ struct tevent_debug_ops {
 void tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
                  const char *fmt, ...) PRINTF_ATTRIBUTE(3,4);
 
+void tevent_abort(struct tevent_context *ev, const char *reason);
+
 struct tevent_context {
        /* the specific events implementation */
        const struct tevent_ops *ops;