From: Stefan Metzmacher Date: Tue, 22 Jul 2014 13:10:00 +0000 (+0200) Subject: tevent: make tevent_abort() available for backends X-Git-Tag: tevent-0.9.37~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add485e47cf4c082eb117d64fd7a7a397484a66a;p=thirdparty%2Fsamba.git tevent: make tevent_abort() available for backends We'll undo the 0.9.36 ABI change on the 0.9.37 release at the end of this patchset. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/lib/tevent/ABI/tevent-0.9.36.sigs b/lib/tevent/ABI/tevent-0.9.36.sigs index 8a579c8ee7d..07d6e29fddd 100644 --- a/lib/tevent/ABI/tevent-0.9.36.sigs +++ b/lib/tevent/ABI/tevent-0.9.36.sigs @@ -17,6 +17,7 @@ _tevent_req_notify_callback: void (struct tevent_req *, const char *) _tevent_req_oom: void (struct tevent_req *, const char *) _tevent_schedule_immediate: void (struct tevent_immediate *, struct tevent_context *, tevent_immediate_handler_t, void *, const char *, const char *) _tevent_threaded_schedule_immediate: void (struct tevent_threaded_context *, struct tevent_immediate *, tevent_immediate_handler_t, void *, const char *, const char *) +tevent_abort: void (struct tevent_context *, const char *) tevent_backend_list: const char **(TALLOC_CTX *) tevent_cleanup_pending_signal_handlers: void (struct tevent_signal *) tevent_common_add_fd: struct tevent_fd *(struct tevent_context *, TALLOC_CTX *, int, uint16_t, tevent_fd_handler_t, void *, const char *, const char *) diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index 3d32fd7e12d..222a3a1a3dd 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -70,8 +70,6 @@ #include #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,7 @@ 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) +void tevent_abort(struct tevent_context *ev, const char *reason) { if (ev != NULL) { tevent_debug(ev, TEVENT_DEBUG_FATAL, diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h index 692e8d0e0a2..b13efedb5d9 100644 --- a/lib/tevent/tevent_internal.h +++ b/lib/tevent/tevent_internal.h @@ -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;