summaryrefslogtreecommitdiff
path: root/vdrttxtsubshooks.h
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2010-02-13 00:28:21 +0100
committeretobi <git@e-tobi.net>2010-03-06 12:06:30 +0100
commit178be33fc9d09033b0e10bebd2f7234cff555c02 (patch)
tree2d2ebcb9862f7fcdb9ef5a55d0de2b70d531c813 /vdrttxtsubshooks.h
parent7e060559397bb5a7e8d31e32dd49a4ec0d0cba2c (diff)
downloadvdr-patches-patches/ttxtsubs-vdr-1.7.12.tar.gz
vdr-patches-patches/ttxtsubs-vdr-1.7.12.tar.bz2
Ttxtsubs plugin hookpatches/ttxtsubs-vdr-1.7.12
Diffstat (limited to 'vdrttxtsubshooks.h')
-rw-r--r--vdrttxtsubshooks.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/vdrttxtsubshooks.h b/vdrttxtsubshooks.h
new file mode 100644
index 0000000..2f97969
--- /dev/null
+++ b/vdrttxtsubshooks.h
@@ -0,0 +1,46 @@
+/*
+ * vdr-ttxtsubs - A plugin for the Linux Video Disk Recorder
+ * Copyright (c) 2003 - 2008 Ragnar Sundblad <ragge@nada.kth.se>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifndef __VDRTTXTSUBSHOOKS_H
+#define __VDRTTXTSUBSHOOKS_H
+
+#define TTXTSUBSVERSNUM 2
+
+class cDevice;
+class cChannel;
+struct tTeletextSubtitlePage;
+
+class cVDRTtxtsubsHookListener {
+ public:
+ cVDRTtxtsubsHookListener(void) {};
+ virtual ~cVDRTtxtsubsHookListener();
+
+ void HookAttach(void);
+
+ virtual void HideOSD(void) {};
+ virtual void ShowOSD(void) {};
+ virtual void PlayerTeletextData(uint8_t *p, int length, bool IsPesRecording = true, const struct tTeletextSubtitlePage teletextSubtitlePages[] = NULL, int pageCount = 0) {};
+ virtual int ManualPageNumber(const cChannel *channel) { return 0; };
+
+ // used by VDR to call hook listeners
+ static cVDRTtxtsubsHookListener *Hook(void);
+};
+
+#endif