summaryrefslogtreecommitdiffstats
path: root/libdaemon/dlog.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-06-11 15:16:09 +0000
committerLennart Poettering <lennart@poettering.net>2007-06-11 15:16:09 +0000
commitb45cd330549c234d0c061602d6239b083ddb9978 (patch)
tree019ed7655be9ce4a62f718f1d55490e00277b569 /libdaemon/dlog.h
parente64d682f16b36ca16c6e8b2dada36520243a3d1c (diff)
add daemon_logv()
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@116 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
Diffstat (limited to 'libdaemon/dlog.h')
-rw-r--r--libdaemon/dlog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdaemon/dlog.h b/libdaemon/dlog.h
index f0d5d41..ff66060 100644
--- a/libdaemon/dlog.h
+++ b/libdaemon/dlog.h
@@ -23,6 +23,7 @@
*/
#include <syslog.h>
+#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
@@ -64,6 +65,12 @@ extern const char* daemon_log_ident;
*/
void daemon_log(int prio, const char* t, ...) DAEMON_GCC_PRINTF_ATTR(2,3);
+/** This variable is defined to 1 iff daemon_logv() is supported.*/
+#define DAEMON_LOGV_AVAILABLE 1
+
+/** Same as daemon_logv, but without variadic arguments */
+void daemon_logv(int prio, const char* t, va_list ap);
+
/** Return a sensible syslog identification for daemon_log_ident
* generated from argv[0]. This will return a pointer to the file name
* of argv[0], i.e. strrchr(argv[0], '\')+1