diff options
-rw-r--r-- | debug.h | 10 | ||||
-rw-r--r-- | decoder.h | 2 | ||||
-rw-r--r-- | queue.h | 10 | ||||
-rw-r--r-- | ts2pkt.h | 5 | ||||
-rw-r--r-- | video.h | 10 |
5 files changed, 28 insertions, 9 deletions
@@ -12,6 +12,12 @@ #define LOG_ERR 3 #endif -#define tsyslog(fmt,...) void( (SysLogLevel > 3) ? syslog_with_tid(LOG_ERR, fmt, __VA_ARGS__) : void() ) +extern int SysLogLevel; +extern void syslog_with_tid(int priority, const char *format, ...) __attribute__ ((format (printf, 2, 3))); -#endif
\ No newline at end of file +#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_with_tid(LOG_ERR, a) : void() ) + +#endif @@ -10,7 +10,6 @@ #define __STDC_CONSTANT_MACROS -#include <vdr/tools.h> // needed for (d/e/i)syslog #include <stdint.h> #include <sched.h> @@ -37,6 +36,7 @@ extern "C" #if LIBAVCODEC_VERSION_INT < ((52<<16)+(23<<8)+0) #include <libavformat/avformat.h> #endif +#include "debug.h" } #include "global.h" @@ -8,14 +8,18 @@ #ifndef __queue_h_ #define __queue_h_ -#include <vdr/tools.h> // needed for (d/e/i)syslog -#include "debug.h" +#include <stdlib.h> +#include <stdint.h> +#include <string.h> #ifndef uchar typedef unsigned char uchar; #endif -#include <string.h> +extern "C" +{ +#include "debug.h" +} class cMarkAdPaketQueue { @@ -8,7 +8,10 @@ #ifndef __ts2pkt_h_ #define __ts2pkt_h_ -#include <vdr/tools.h> // needed for (d/e/i)syslog +extern "C" +{ +#include "debug.h" +} #ifndef TS_SIZE #define TS_SIZE 188 @@ -8,12 +8,18 @@ #ifndef __video_h_ #define __video_h_ -#include <vdr/tools.h> // needed for (d/e/i)syslog - #include <time.h> #include <math.h> +#include <string.h> +#include <stdio.h> +#include <stdlib.h> #include "global.h" +extern "C" +{ +#include "debug.h" +} + #define LOGO_MAXHEIGHT 170 #define LOGO_MAXWIDTH 480 |