From b45cd330549c234d0c061602d6239b083ddb9978 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Jun 2007 15:16:09 +0000 Subject: add daemon_logv() git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@116 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- libdaemon/dlog.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libdaemon/dlog.h') 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 +#include #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 -- cgit