blob: cfcd6a5a0e39b76b96e1895ec7caf9160e044415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
|