forked from FernetMenta/vdr-plugin-vnsiserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vnsicommand.h
195 lines (170 loc) · 6.78 KB
/
vnsicommand.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*
* vdr-plugin-vnsi - KODI server plugin for VDR
*
* Copyright (C) 2010 Alwin Esch (Team XBMC)
* Copyright (C) 2010, 2011 Alexander Pipelka
* Copyright (C) 2015 Team KODI
*
* http://kodi.tv
*
* 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, 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 KODI; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*
*/
#ifndef VNSI_COMMAND_H
#define VNSI_COMMAND_H
/** Current VNSI Protocol Version number */
#define VNSI_PROTOCOLVERSION 11
/** Start of RDS support protocol Version */
#define VNSI_RDS_PROTOCOLVERSION 8
/** Minimum VNSI Protocol Version number */
#define VNSI_MIN_PROTOCOLVERSION 5
/** Packet types */
#define VNSI_CHANNEL_REQUEST_RESPONSE 1
#define VNSI_CHANNEL_STREAM 2
#define VNSI_CHANNEL_KEEPALIVE 3
#define VNSI_CHANNEL_NETLOG 4
#define VNSI_CHANNEL_STATUS 5
#define VNSI_CHANNEL_SCAN 6
#define VNSI_CHANNEL_OSD 7
/** Response packets operation codes */
#define CONFNAME_PMTTIMEOUT "PmtTimeout"
#define CONFNAME_TIMESHIFT "Timeshift"
#define CONFNAME_TIMESHIFTBUFFERSIZE "TimeshiftBufferSize"
#define CONFNAME_TIMESHIFTBUFFERFILESIZE "TimeshiftBufferFileSize"
#define CONFNAME_TIMESHIFTBUFFERDIR "TimeshiftBufferDir"
#define CONFNAME_PLAYRECORDING "PlayRecording"
#define CONFNAME_AVOIDEPGSCAN "AvoidEPGScan"
#define CONFNAME_DISABLESCRAMBLETIMEOUT "DisableScrambleTimeout"
#define CONFNAME_DISABLECAMBLACKLIST "DisableCamBlacklist"
#define CONFNAME_GROUPRECORDINGS "GroupRecordings"
/* OPCODE 1 - 19: VNSI network functions for general purpose */
#define VNSI_LOGIN 1
#define VNSI_GETTIME 2
#define VNSI_ENABLESTATUSINTERFACE 3
#define VNSI_PING 7
#define VNSI_GETSETUP 8
#define VNSI_STORESETUP 9
/* OPCODE 20 - 39: VNSI network functions for live streaming */
#define VNSI_CHANNELSTREAM_OPEN 20
#define VNSI_CHANNELSTREAM_CLOSE 21
#define VNSI_CHANNELSTREAM_SEEK 22
/* OPCODE 40 - 59: VNSI network functions for recording streaming */
#define VNSI_RECSTREAM_OPEN 40
#define VNSI_RECSTREAM_CLOSE 41
#define VNSI_RECSTREAM_GETBLOCK 42
#define VNSI_RECSTREAM_POSTOFRAME 43
#define VNSI_RECSTREAM_FRAMETOPOS 44
#define VNSI_RECSTREAM_GETIFRAME 45
#define VNSI_RECSTREAM_GETLENGTH 46
/* OPCODE 60 - 79: VNSI network functions for channel access */
#define VNSI_CHANNELS_GETCOUNT 61
#define VNSI_CHANNELS_GETCHANNELS 63
#define VNSI_CHANNELGROUP_GETCOUNT 65
#define VNSI_CHANNELGROUP_LIST 66
#define VNSI_CHANNELGROUP_MEMBERS 67
#define VNSI_CHANNELS_GETCAIDS 68
#define VNSI_CHANNELS_GETWHITELIST 69
#define VNSI_CHANNELS_GETBLACKLIST 70
#define VNSI_CHANNELS_SETWHITELIST 71
#define VNSI_CHANNELS_SETBLACKLIST 72
/* OPCODE 80 - 99: VNSI network functions for timer access */
#define VNSI_TIMER_GETCOUNT 80
#define VNSI_TIMER_GET 81
#define VNSI_TIMER_GETLIST 82
#define VNSI_TIMER_ADD 83
#define VNSI_TIMER_DELETE 84
#define VNSI_TIMER_UPDATE 85
#define VNSI_TIMER_GETTYPES 86
/* OPCODE 100 - 119: VNSI network functions for recording access */
#define VNSI_RECORDINGS_DISKSIZE 100
#define VNSI_RECORDINGS_GETCOUNT 101
#define VNSI_RECORDINGS_GETLIST 102
#define VNSI_RECORDINGS_RENAME 103
#define VNSI_RECORDINGS_DELETE 104
#define VNSI_RECORDINGS_GETEDL 105
/* OPCODE 120 - 139: VNSI network functions for epg access and manipulating */
#define VNSI_EPG_GETFORCHANNEL 120
/* OPCODE 140 - 159: VNSI network functions for channel scanning */
#define VNSI_SCAN_SUPPORTED 140
#define VNSI_SCAN_GETCOUNTRIES 141
#define VNSI_SCAN_GETSATELLITES 142
#define VNSI_SCAN_START 143
#define VNSI_SCAN_STOP 144
#define VNSI_SCAN_SUPPORTED_TYPES 145
/* OPCODE 160 - 179: VNSI network functions for channel scanning */
#define VNSI_OSD_CONNECT 160
#define VNSI_OSD_DISCONNECT 161
#define VNSI_OSD_HITKEY 162
/* OPCODE 180 - 189: VNSI network functions for deleted recording access */
#define VNSI_RECORDINGS_DELETED_ACCESS_SUPPORTED 180
#define VNSI_RECORDINGS_DELETED_GETCOUNT 181
#define VNSI_RECORDINGS_DELETED_GETLIST 182
#define VNSI_RECORDINGS_DELETED_DELETE 183
#define VNSI_RECORDINGS_DELETED_UNDELETE 184
#define VNSI_RECORDINGS_DELETED_DELETE_ALL 185
/** Stream packet types (server -> client) */
#define VNSI_STREAM_CHANGE 1
#define VNSI_STREAM_STATUS 2
#define VNSI_STREAM_QUEUESTATUS 3
#define VNSI_STREAM_MUXPKT 4
#define VNSI_STREAM_SIGNALINFO 5
#define VNSI_STREAM_CONTENTINFO 6
#define VNSI_STREAM_BUFFERSTATS 7
#define VNSI_STREAM_REFTIME 8
#define VNSI_STREAM_TIMES 9
/** Scan packet types (server -> client) */
#define VNSI_SCANNER_PERCENTAGE 1
#define VNSI_SCANNER_SIGNAL 2
#define VNSI_SCANNER_DEVICE 3
#define VNSI_SCANNER_TRANSPONDER 4
#define VNSI_SCANNER_NEWCHANNEL 5
#define VNSI_SCANNER_FINISHED 6
#define VNSI_SCANNER_STATUS 7
/** OSD packet types (server -> client) */
#define VNSI_OSD_MOVEWINDOW 1
#define VNSI_OSD_CLEAR 2
#define VNSI_OSD_OPEN 3
#define VNSI_OSD_CLOSE 4
#define VNSI_OSD_SETPALETTE 5
#define VNSI_OSD_SETBLOCK 6
/** Status packet types (server -> client) */
#define VNSI_STATUS_TIMERCHANGE 1
#define VNSI_STATUS_RECORDING 2
#define VNSI_STATUS_MESSAGE 3
#define VNSI_STATUS_CHANNELCHANGE 4
#define VNSI_STATUS_RECORDINGSCHANGE 5
#define VNSI_STATUS_EPGCHANGE 6
/** Channel search signal supported flags */
#define VNSI_SCAN_SUPPORT_DVB_T 0x01
#define VNSI_SCAN_SUPPORT_DVB_C 0x02
#define VNSI_SCAN_SUPPORT_DVB_S 0x04
#define VNSI_SCAN_SUPPORT_ANALOG_TV 0x08
#define VNSI_SCAN_SUPPORT_ANALOG_RADIO 0x10
#define VNSI_SCAN_SUPPORT_ATSC 0x20
/** Timer */
#define VNSI_TIMER_TYPE_MAN 1
#define VNSI_TIMER_TYPE_MAN_REPEAT 2
#define VNSI_TIMER_TYPE_EPG 3
#define VNSI_TIMER_TYPE_VPS 4
#define VNSI_TIMER_TYPE_EPG_SEARCH 5
/** Packet return codes */
#define VNSI_RET_OK 0
#define VNSI_RET_RECRUNNING 1
#define VNSI_RET_NOTSUPPORTED 995
#define VNSI_RET_DATAUNKNOWN 996
#define VNSI_RET_DATALOCKED 997
#define VNSI_RET_DATAINVALID 998
#define VNSI_RET_ERROR 999
#endif // VNSI_COMMAND_H