summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:49:27 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:49:27 +0100
commit6965ee5e2570436648ecd9b50197c80fd3c28565 (patch)
treebdd78eac61983d68a173f0b473f030be2b0c2ff7 /common.h
downloadvdr-plugin-seduatmo-0.0.3.tar.gz
vdr-plugin-seduatmo-0.0.3.tar.bz2
init git0.0.3
Diffstat (limited to 'common.h')
-rw-r--r--common.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..a774793
--- /dev/null
+++ b/common.h
@@ -0,0 +1,54 @@
+/*
+ * common.h: EPG2VDR plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ */
+
+#ifndef __COMMON_H
+#define __COMMON_H
+
+//***************************************************************************
+//
+//***************************************************************************
+
+enum Misc
+{
+ success = 0,
+ done = success,
+ fail = -1,
+ ignore = -2,
+ na = -1,
+ yes = 1,
+ on = 1,
+ off = 0,
+ no = 0,
+ TB = 1
+};
+
+//***************************************************************************
+// Misc ..
+//***************************************************************************
+
+int minMax(int x, int min, int max);
+int getrand(int min, int max);
+double min(double a, double b);
+double max(double a, double b);
+
+//***************************************************************************
+// Time
+//***************************************************************************
+
+typedef unsigned long long MsTime;
+
+MsTime msNow();
+
+//***************************************************************************
+// Tell
+//***************************************************************************
+
+void tell(int eloquence, const char* format, ...);
+int error(const char* format, ...);
+
+//***************************************************************************
+#endif //___COMMON_H