summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-05-18 07:19:41 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2012-05-18 07:19:41 (GMT)
commit5745ef4a6bfeede40fe69067f51e714718243045 (patch)
tree4a7cf8c7b2194fd187b2e46300f1e1e3c653b692 /log.h
parent46f6510bb78a19f862bd3c1ffff6ac322ca6d6b4 (diff)
downloadvdr-plugin-eepg-5745ef4a6bfeede40fe69067f51e714718243045.tar.gz
vdr-plugin-eepg-5745ef4a6bfeede40fe69067f51e714718243045.tar.bz2
move cSetupEEPG to separate files
Diffstat (limited to 'log.h')
-rw-r--r--log.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/log.h b/log.h
index 900aed6..35942d3 100644
--- a/log.h
+++ b/log.h
@@ -10,16 +10,17 @@
#include <string>
#include <stdarg.h>
+#include "setupeepg.h"
#define VERBOSE 1
/* 0 = only print errors, 1 = print channels and themes, 2 = print channels, themes, titles, summaries 3 = debug mode */
/* all is logged into /var/log/syslog */
-bool CheckLevel(int level)
+inline bool CheckLevel(int level)
{
#ifdef DEBUG
- if (SetupPE.LogLevel >= level)
+ if (cSetupEEPG::getInstance()->LogLevel >= level)
#else
if (VERBOSE >= level)
#endif
@@ -29,7 +30,7 @@ bool CheckLevel(int level)
return false;
}
-const char* PrepareLog(std::string message)
+inline const char* PrepareLog(std::string message)
{
message = "EEPG: " + message;
return message.c_str();
@@ -38,7 +39,7 @@ const char* PrepareLog(std::string message)
#define MAXSYSLOGBUF 256
//void LogVsyslog(int errLevel, const char * message, ...)
-void LogVsyslog(int errLevel, int const& lineNum, const char * function, const char * message, ...)
+inline void LogVsyslog(int errLevel, int const& lineNum, const char * function, const char * message, ...)
{
va_list ap;
char fmt[MAXSYSLOGBUF];