summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-01-02 19:54:22 +0000
committerlordjaxom <lordjaxom>2005-01-02 19:54:22 +0000
commit292b318449180bb3d1d7102df86bda4afd2faecb (patch)
tree92cfe9abcc7e7f6f781ef4df3a390368ad0896f2 /common.h
parent7c9181bf95fedb7a4b4ab40c31aaa841ead074ed (diff)
downloadvdr-plugin-text2skin-292b318449180bb3d1d7102df86bda4afd2faecb.tar.gz
vdr-plugin-text2skin-292b318449180bb3d1d7102df86bda4afd2faecb.tar.bz2
- defined some macros in preparation to 1.3.18
Diffstat (limited to 'common.h')
-rw-r--r--common.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/common.h b/common.h
index 28aa42e..e453486 100644
--- a/common.h
+++ b/common.h
@@ -1,5 +1,5 @@
/*
- * $Id: common.h,v 1.2 2004/12/21 18:35:54 lordjaxom Exp $
+ * $Id: common.h,v 1.3 2005/01/02 19:54:22 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_COMMON_H
@@ -8,10 +8,11 @@
#include "xml/string.h"
#include <string>
#include <vdr/osd.h>
+#include <vdr/config.h>
#ifdef DEBUG
# define Dprintf(x...) fprintf(stderr, x);
-# define Dbench(x) time_t bench_##x = time_ms();
+# define Dbench(x) uint64 bench_##x = time_ms();
# define Ddiff(x) time_ms() - bench_##x
#else
# define Dprintf(x...)
@@ -19,6 +20,14 @@
# define Ddiff(x)
#endif
+#if VDRVERSNUM >= 10318
+# define time_ms() cTimeMs().Now()
+# define Apid1() Apid(0)
+# define Apid2() Apid(1)
+# define Dpid1() Dpid(0)
+# define Dpid2() Dpid(1)
+#endif
+
/* Check if a channel is a radio station. */
#define ISRADIO(x) ((x)->Vpid()==0||(x)->Vpid()==1||(x)->Vpid()==0x1fff)