summaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2010-02-21 19:56:01 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2010-02-21 19:56:01 +0100
commite73252dc58ecd5a27c6d8af94028f311f23687ab (patch)
treea66d0564de1a0e267ee681e5d731b1864e7a3d12 /global.h
downloadvdr-plugin-graphlcd-e73252dc58ecd5a27c6d8af94028f311f23687ab.tar.gz
vdr-plugin-graphlcd-e73252dc58ecd5a27c6d8af94028f311f23687ab.tar.bz2
initial git upload, based on graphlcd-0.1.5
Diffstat (limited to 'global.h')
-rw-r--r--global.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/global.h b/global.h
new file mode 100644
index 0000000..a810180
--- /dev/null
+++ b/global.h
@@ -0,0 +1,33 @@
+/*
+ * GraphLCD plugin for the Video Disk Recorder
+ *
+ * global.h - global definitions
+ *
+ * This file is released under the GNU General Public License. Refer
+ * to the COPYING file distributed with this package.
+ *
+ * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de>
+ * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+#ifndef _GRAPHLCD_GLOBAL_H_
+#define _GRAPHLCD_GLOBAL_H_
+
+
+#include <stdlib.h>
+
+#include <glcddrivers/driver.h>
+
+
+#define PLUGIN_NAME "graphlcd"
+#define SPACEWIDTH 2
+
+#define FREENULL(p) (free (p), p = NULL)
+
+template<class T> inline void clip(T & value, T min, T max)
+{
+ if (value < min) value = min;
+ if (value > max) value = max;
+}
+
+#endif