summaryrefslogtreecommitdiff
path: root/dist/epgdata2xmltv/epgdata2xmltv.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-07-26 13:44:54 +0200
committerJochen Dolze <vdr@dolze.de>2011-07-26 13:44:54 +0200
commitc4e9bfde803a12bc6da45c491884f1c0bd98be5b (patch)
tree223223355a3578bed9b9d8715fffab418e82f96a /dist/epgdata2xmltv/epgdata2xmltv.h
parent653b36f3db380683e73cb0ae3c17ddc28bd41fa1 (diff)
downloadvdr-plugin-xmltv2vdr-c4e9bfde803a12bc6da45c491884f1c0bd98be5b.tar.gz
vdr-plugin-xmltv2vdr-c4e9bfde803a12bc6da45c491884f1c0bd98be5b.tar.bz2
Added information files
Added error handler for libxml
Diffstat (limited to 'dist/epgdata2xmltv/epgdata2xmltv.h')
-rw-r--r--dist/epgdata2xmltv/epgdata2xmltv.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/dist/epgdata2xmltv/epgdata2xmltv.h b/dist/epgdata2xmltv/epgdata2xmltv.h
index 3748c5d..d2b85d8 100644
--- a/dist/epgdata2xmltv/epgdata2xmltv.h
+++ b/dist/epgdata2xmltv/epgdata2xmltv.h
@@ -18,10 +18,16 @@
#include <sys/stat.h>
#include <unistd.h>
-#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(a) : void() )
-#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(a) : void() )
-#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(a) : void() )
-#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_with_tid(a) : void() )
+#if __GNUC__ > 3
+#define UNUSED(v) UNUSED_ ## v __attribute__((unused))
+#else
+#define UNUSED(x) x
+#endif
+
+#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_redir(a) : void() )
+#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_redir(a) : void() )
+#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_redir(a) : void() )
+#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_redir(a) : void() )
#define EPGDATA2XMLTV_USERAGENT "libcurl-agent/1.0"
#define EPGDATA2XMLTV_URL "http://www.epgdata.com/index.php?action=sendPackage&iOEM=VDR&dataType=xml&dayOffset=%s"