diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
commit | 140e2252be1a2263525ffb6811951c258b8cceea (patch) | |
tree | e19e2b691e819f73f54fae9d14f0b3e38a02eee0 /include | |
parent | 420a39bb53ad4a24823e924868e67a3966d663f0 (diff) | |
download | wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.gz wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.bz2 |
added platform SDK and started the event logger on Windows
Diffstat (limited to 'include')
-rw-r--r-- | include/wolf/log.h | 30 | ||||
-rw-r--r-- | include/wolf/port/sys.h | 2 |
2 files changed, 31 insertions, 1 deletions
diff --git a/include/wolf/log.h b/include/wolf/log.h index 97db35b..9826411 100644 --- a/include/wolf/log.h +++ b/include/wolf/log.h @@ -35,6 +35,20 @@ extern "C" { #endif +#if defined HAVE_SYSLOG_H +/** + * @brief defined if we have a syslogd daemon (Unix usually) + */ +#define WOLF_LOG_HAVE_SYSLOG +#endif + +#if defined HAVE_EVENTLOG +/** + * @brief defined if we have an event logger (Windows only) + */ +#define WOLF_LOG_HAVE_EVENTLOG +#endif + /** * @brief severity levels. Similarly defined as in syslog.h */ @@ -184,6 +198,14 @@ void wolf_log_openlogtosyslog( const char *ident, int options ); #endif /* defined HAVE_SYSLOG_H */ +#if defined HAVE_EVENTLOG +/** + * Open a channel to the Windows event logger. + * + */ +void wolf_log_openlogtoeventlog( void ); +#endif /* defined HAVE_EVENTLOG */ + /** * Open a channel for logging to stderr. * @@ -204,6 +226,14 @@ void wolf_log_closelogtofile( void ); void wolf_log_closelogtosyslog( void ); #endif /* defined HAVE_SYSLOG_H */ +#if defined HAVE_EVENTLOG +/** + * Close logging to the Windows event logger. + * + */ +void wolf_log_closelogtoeventlog( void ); +#endif /* defined HAVE_EVENTLOG */ + /** * Close logging to stderr. */ diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index 048f064..4a0de66 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -214,7 +214,7 @@ #endif /* defined CYGWIN */ #if defined _WIN32 -/* TODO */ +#define HAVE_EVENTLOG #endif /* defined _WIN32 */ /* Microsoft Windows compiler */ |