aboutsummaryrefslogtreecommitdiff
path: root/util/messages.h
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2014-07-16 13:43:17 -0700
committerRuss Allbery <eagle@eyrie.org>2014-07-16 13:43:17 -0700
commit6409733ee3b7b1910dc1c166a392cc628834146c (patch)
treee9460f8f2ca0f3676afeed2a9dcf549acfc39b53 /util/messages.h
parent334ed844cbb5c8f7ea82a94c701a3016dd6950b9 (diff)
parentf8963ceb19cd2b503b981f43a3f8c0f45649989f (diff)
Imported Upstream version 1.1
Diffstat (limited to 'util/messages.h')
-rw-r--r--util/messages.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/messages.h b/util/messages.h
index 463137c..8c731b7 100644
--- a/util/messages.h
+++ b/util/messages.h
@@ -4,7 +4,7 @@
* The canonical version of this file is maintained in the rra-c-util package,
* which can be found at <http://www.eyrie.org/~eagle/software/rra-c-util/>.
*
- * Copyright 2008, 2010
+ * Copyright 2008, 2010, 2013, 2014
* The Board of Trustees of the Leland Stanford Junior University
* Copyright (c) 2004, 2005, 2006
* by Internet Systems Consortium, Inc. ("ISC")
@@ -34,6 +34,7 @@
#include <portable/macros.h>
#include <stdarg.h>
+#include <stddef.h>
BEGIN_DECLS
@@ -72,6 +73,12 @@ void message_handlers_warn(unsigned int count, ...);
void message_handlers_die(unsigned int count, ...);
/*
+ * Reset all message handlers back to the defaults and free any memory that
+ * was allocated by the other message_handlers_* functions.
+ */
+void message_handlers_reset(void);
+
+/*
* Some useful handlers, intended to be passed to message_handlers_*. All
* handlers take the length of the formatted message, the format, a variadic
* argument list, and the errno setting if any.