forked from rofafor/vdr-plugin-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotocolif.h
34 lines (30 loc) · 875 Bytes
/
protocolif.h
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
/*
* protocolif.h: IPTV plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#pragma once
typedef struct {
int protocol;
const char *locationP;
int parameterP;
unsigned int indexP;
int channelNumber;
int useYtDlp;
char handlerType;
} SourceParameter;
class cIptvProtocolIf {
public:
cIptvProtocolIf() = default;
virtual ~cIptvProtocolIf() = default;
virtual int Read(unsigned char *bufferAddrP, unsigned int bufferLenP) = 0;
virtual bool SetSource(SourceParameter parameter) = 0;
virtual bool SetPid(int pidP, int typeP, bool onP) = 0;
virtual bool Open() = 0;
virtual bool Close() = 0;
virtual cString GetInformation() = 0;
private:
cIptvProtocolIf(const cIptvProtocolIf &);
cIptvProtocolIf &operator=(const cIptvProtocolIf &);
};