diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-14 19:52:13 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-06-20 17:40:07 +0200 |
commit | da9125bcaad4233983295e5d8c15b0f195891ba5 (patch) | |
tree | 5b4477866d04942cabbc8021b48bf6fa48061372 /vdrttxtsubshooks.h | |
parent | ab6f2ccf424896a80b6e2fdf9ab9313ea4b7f316 (diff) | |
download | vdr-patches-da9125bcaad4233983295e5d8c15b0f195891ba5.tar.gz vdr-patches-da9125bcaad4233983295e5d8c15b0f195891ba5.tar.bz2 |
ttxtsubs: Updated patch for VDR 1.7.x by Rolf Ahrenberg
Diffstat (limited to 'vdrttxtsubshooks.h')
-rw-r--r-- | vdrttxtsubshooks.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vdrttxtsubshooks.h b/vdrttxtsubshooks.h new file mode 100644 index 0000000..cfcd6a5 --- /dev/null +++ b/vdrttxtsubshooks.h @@ -0,0 +1,36 @@ + +#ifndef __VDRTTXTSUBSHOOKS_H +#define __VDRTTXTSUBSHOOKS_H + +class cDevice; +class cChannel; + +#define VDRTTXTSUBSHOOKS + +class cTtxtSubsRecorderBase { + public: + virtual ~cTtxtSubsRecorderBase() {}; + + // returns a PES packet if there is data to add to the recording + virtual uint8_t *GetPacket(uint8_t **buf, size_t *len) { return NULL; }; + virtual void DeviceAttach(void) {}; +}; + +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) {}; + virtual cTtxtSubsRecorderBase *NewTtxtSubsRecorder(cDevice *dev, const cChannel *ch) + { return NULL; }; + + // used by VDR to call hook listeners + static cVDRTtxtsubsHookListener *Hook(void); +}; + +#endif |