dovecot-2.0: Added i_get_failure_handlers().

dovecot at dovecot.org dovecot at dovecot.org
Tue May 5 21:55:14 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/da94fa5953ec
changeset: 9224:da94fa5953ec
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 05 14:54:05 2009 -0400
description:
Added i_get_failure_handlers().

diffstat:

2 files changed, 12 insertions(+)
src/lib/failures.c |    9 +++++++++
src/lib/failures.h |    3 +++

diffs (32 lines):

diff -r b1c6b740a4a1 -r da94fa5953ec src/lib/failures.c
--- a/src/lib/failures.c	Tue May 05 13:56:53 2009 -0400
+++ b/src/lib/failures.c	Tue May 05 14:54:05 2009 -0400
@@ -285,6 +285,15 @@ void i_set_info_handler(failure_callback
 	info_handler = callback;
 }
 
+void i_get_failure_handlers(fatal_failure_callback_t **fatal_callback_r,
+			    failure_callback_t **error_callback_r,
+			    failure_callback_t **info_callback_r)
+{
+	*fatal_callback_r = fatal_handler;
+	*error_callback_r = error_handler;
+	*info_callback_r = info_handler;
+}
+
 static int ATTR_FORMAT(3, 0)
 syslog_handler(int level, enum log_type type, const char *format, va_list args)
 {
diff -r b1c6b740a4a1 -r da94fa5953ec src/lib/failures.h
--- a/src/lib/failures.h	Tue May 05 13:56:53 2009 -0400
+++ b/src/lib/failures.h	Tue May 05 14:54:05 2009 -0400
@@ -59,6 +59,9 @@ void i_set_fatal_handler(fatal_failure_c
 #endif
 void i_set_error_handler(failure_callback_t *callback);
 void i_set_info_handler(failure_callback_t *callback);
+void i_get_failure_handlers(fatal_failure_callback_t **fatal_callback_r,
+			    failure_callback_t **error_callback_r,
+			    failure_callback_t **info_callback_r);
 
 /* Send failures to file. */
 void default_fatal_handler(enum log_type type, int status,


More information about the dovecot-cvs mailing list