diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-09 14:45:29 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-09 14:45:29 +0200 |
commit | 76ec1833ba62798c671935014a10677f514ffc0a (patch) | |
tree | 4a7cf8c7b2194fd187b2e46300f1e1e3c653b692 | |
parent | b9ebcef5352ba8d70edc4ea6531b7560569af88b (diff) | |
download | vdr-plugin-eepg-76ec1833ba62798c671935014a10677f514ffc0a.tar.gz vdr-plugin-eepg-76ec1833ba62798c671935014a10677f514ffc0a.tar.bz2 |
fix compile
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | eepg.c | 4 | ||||
-rw-r--r-- | log.h | 6 | ||||
-rw-r--r-- | setupeepg.c | 2 | ||||
-rw-r--r-- | setupeepg.h | 4 |
5 files changed, 9 insertions, 9 deletions
@@ -65,7 +65,7 @@ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ### The object files (add further files here): -OBJS = $(PLUGIN).o dish.o epghandler.o +OBJS = $(PLUGIN).o dish.o epghandler.o setupeepg.o ifdef DBG CXXFLAGS += -g @@ -4548,9 +4548,9 @@ bool cPluginEEPG::SetupParse (const char *Name, const char *Value) SetupPE->DisplayMessage = atoi (Value); #ifdef DEBUG else if (!strcasecmp (Name, "LogLevel")) - SetupPE.LogLevel = atoi (Value); + SetupPE->LogLevel = atoi (Value); else if (!strcasecmp (Name, "ProcessEIT")) - SetupPE.ProcessEIT = atoi (Value); + SetupPE->ProcessEIT = atoi (Value); #endif else return false; @@ -17,7 +17,7 @@ /* all is logged into /var/log/syslog */ -bool CheckLevel(int level) +inline bool CheckLevel(int level) { #ifdef DEBUG if (cSetupEEPG::getInstance()->LogLevel >= level) @@ -30,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(); @@ -39,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]; diff --git a/setupeepg.c b/setupeepg.c index 4d9471e..3738227 100644 --- a/setupeepg.c +++ b/setupeepg.c @@ -26,7 +26,7 @@ cSetupEEPG::cSetupEEPG (void) } -static cSetupEEPG* cSetupEEPG::getInstance() +cSetupEEPG* cSetupEEPG::getInstance() { if (!_setupEEPG) _setupEEPG = new cSetupEEPG(); diff --git a/setupeepg.h b/setupeepg.h index ef1ad2a..f5e342a 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -26,8 +26,8 @@ public: private: cSetupEEPG (void); - cSetupEEPG(cSetupEEPG const&){}; // copy constructor is private - cSetupEEPG& operator=(cSetupEEPG const&){}; // assignment operator is private + cSetupEEPG(cSetupEEPG const&); // copy constructor is private + cSetupEEPG& operator=(cSetupEEPG const&); // assignment operator is private static cSetupEEPG* _setupEEPG; }; |