summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-09-20 20:30:22 +0200
committerJochen Dolze <vdr@dolze.de>2009-09-20 20:30:22 +0200
commit27b768a40f33b229ee832d22f24696565b812f98 (patch)
treed03fec9e719028d9805e143956b38180c1b5920e /common.h
downloadvdr-plugin-markad-27b768a40f33b229ee832d22f24696565b812f98.tar.gz
vdr-plugin-markad-27b768a40f33b229ee832d22f24696565b812f98.tar.bz2
First commit
Diffstat (limited to 'common.h')
-rw-r--r--common.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..8a61879
--- /dev/null
+++ b/common.h
@@ -0,0 +1,36 @@
+/*
+ * common.h: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * $Id$
+ */
+
+#ifndef __common_h_
+#define __common_h_
+
+#include <vdr/tools.h> // needed for (d/e/i)syslog
+
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+
+#include "global.h"
+
+class cMarkAdCommon
+{
+private:
+ int recvnumber;
+ MarkAdContext *macontext;
+ MarkAdMark mark;
+
+ void ResetMark();
+ bool AddMark(int Position, const char *Comment);
+ void SetTimerMarks(int LastIFrame);
+public:
+ MarkAdMark *Process(int LastIFrame);
+ cMarkAdCommon(int RecvNumber,MarkAdContext *maContext);
+ ~cMarkAdCommon();
+};
+
+#endif \ No newline at end of file