[15367] | 1 | /*****************************************************/ |
---|
| 2 | /* this file is part of the tiTan / tiTanNIT Project */ |
---|
| 3 | /* and allowed only for use with this. */ |
---|
| 4 | /* */ |
---|
| 5 | /* copyright by NIT */ |
---|
| 6 | /*****************************************************/ |
---|
| 7 | |
---|
[7497] | 8 | #ifndef STRUCT_H |
---|
| 9 | #define STRUCT_H |
---|
| 10 | |
---|
[7934] | 11 | #define _GNU_SOURCE |
---|
| 12 | |
---|
| 13 | #ifdef SIMULATE |
---|
| 14 | #include <mcheck.h> |
---|
| 15 | #endif |
---|
| 16 | |
---|
| 17 | #include <stdio.h> |
---|
| 18 | #include <stdlib.h> |
---|
| 19 | #include <stdint.h> |
---|
| 20 | #include <string.h> |
---|
[8411] | 21 | #include <libgen.h> |
---|
[7934] | 22 | #include <fcntl.h> |
---|
| 23 | #include <ctype.h> |
---|
| 24 | #include <linux/fb.h> |
---|
| 25 | #include <sys/ioctl.h> |
---|
| 26 | #include <sys/mman.h> |
---|
[42986] | 27 | #include <sys/sysmacros.h> |
---|
[7934] | 28 | #include <png.h> |
---|
[8463] | 29 | #include <jpeglib.h> |
---|
[7934] | 30 | #include <libintl.h> |
---|
| 31 | #include <locale.h> |
---|
| 32 | #include <math.h> |
---|
| 33 | #include <linux/input.h> |
---|
| 34 | #include <sys/wait.h> |
---|
| 35 | #include <time.h> |
---|
| 36 | #include <dirent.h> |
---|
| 37 | #include <fnmatch.h> |
---|
| 38 | #include <dlfcn.h> |
---|
| 39 | #include <pthread.h> |
---|
| 40 | #include <linux/dvb/frontend.h> |
---|
| 41 | #include <linux/dvb/dmx.h> |
---|
| 42 | #include <linux/dvb/audio.h> |
---|
| 43 | #include <linux/dvb/video.h> |
---|
| 44 | #include <sys/vfs.h> |
---|
| 45 | #include <inttypes.h> |
---|
| 46 | #include <sys/socket.h> |
---|
| 47 | #include <sys/un.h> |
---|
| 48 | #include <unistd.h> |
---|
| 49 | #include <zlib.h> |
---|
[8259] | 50 | #include <net/if.h> |
---|
| 51 | #include <netinet/in.h> |
---|
| 52 | #include <arpa/inet.h> |
---|
[8401] | 53 | #include <netdb.h> |
---|
[8506] | 54 | #include <errno.h> |
---|
[8513] | 55 | #include <linux/dvb/version.h> |
---|
[8645] | 56 | #include <setjmp.h> |
---|
[8690] | 57 | #include <sys/mount.h> |
---|
[8749] | 58 | #include <execinfo.h> |
---|
[9918] | 59 | #include <ifaddrs.h> |
---|
[10366] | 60 | #include <linux/dvb/ca.h> |
---|
[10496] | 61 | #include <poll.h> |
---|
[12697] | 62 | #include <sys/utsname.h> |
---|
[16311] | 63 | #include <regex.h> |
---|
[16769] | 64 | #include <mntent.h> |
---|
[22751] | 65 | #include <termios.h> |
---|
[36419] | 66 | //#ifndef SH4 |
---|
[31051] | 67 | #include <sys/stat.h> |
---|
[36419] | 68 | //#endif |
---|
[37719] | 69 | #include <openssl/aes.h> |
---|
| 70 | #include <openssl/dh.h> |
---|
| 71 | #include <openssl/rsa.h> |
---|
| 72 | #include <openssl/sha.h> |
---|
| 73 | #include <stdio.h> |
---|
| 74 | #include <unistd.h> |
---|
| 75 | #include <fcntl.h> |
---|
| 76 | #include <sys/ioctl.h> |
---|
| 77 | #include <stdint.h> |
---|
| 78 | #include <inttypes.h> |
---|
| 79 | #include <arpa/inet.h> |
---|
| 80 | #include <time.h> |
---|
| 81 | #include <linux/dvb/ca.h> |
---|
| 82 | #include <sys/types.h> |
---|
[7934] | 83 | |
---|
[37719] | 84 | #include <fcntl.h> |
---|
| 85 | #include <stdint.h> |
---|
| 86 | #include <stdio.h> |
---|
| 87 | #include <stdlib.h> |
---|
| 88 | #include <string.h> |
---|
| 89 | #include <sys/types.h> |
---|
| 90 | #include <sys/stat.h> |
---|
| 91 | #include <unistd.h> |
---|
| 92 | #include <time.h> |
---|
| 93 | |
---|
| 94 | #include <openssl/pem.h> |
---|
| 95 | #include <openssl/x509.h> |
---|
| 96 | #include <openssl/x509v3.h> |
---|
| 97 | #include <openssl/sha.h> |
---|
| 98 | #include <openssl/aes.h> |
---|
| 99 | |
---|
[7934] | 100 | //for freetype |
---|
| 101 | #include <ft2build.h> |
---|
| 102 | #include FT_FREETYPE_H |
---|
| 103 | #include FT_CACHE_H |
---|
| 104 | |
---|
| 105 | //for eplayer |
---|
[10626] | 106 | #ifdef EPLAYER3 |
---|
[7934] | 107 | #include <common.h> |
---|
[39776] | 108 | //#ifndef BETA |
---|
[39847] | 109 | //#include <subtitle.h> |
---|
[39776] | 110 | //#endif |
---|
[7934] | 111 | #endif |
---|
| 112 | |
---|
[10626] | 113 | #ifdef EPLAYER4 |
---|
| 114 | #include <gst/gst.h> |
---|
| 115 | #include <gst/pbutils/missing-plugins.h> |
---|
| 116 | #endif |
---|
| 117 | |
---|
[14721] | 118 | #ifdef DVDPLAYER |
---|
| 119 | #include <ddvdlib.h> |
---|
| 120 | #endif |
---|
| 121 | |
---|
[41066] | 122 | #define DRIVER " - - " |
---|
[42473] | 123 | #define OVERSION "1.90" |
---|
[12368] | 124 | #define PROGNAME "titan" |
---|
[7497] | 125 | #define COPYRIGHT "NIT" |
---|
[31165] | 126 | #define CRONTRIBUT "obi, gost" |
---|
[41066] | 127 | #define PLUGINVERSION 1 |
---|
[7497] | 128 | |
---|
| 129 | #define _(x) gettext(x) |
---|
[7571] | 130 | #define MINMALLOC 4096 |
---|
[7497] | 131 | #define SCROLLBARWIDTH 15 |
---|
| 132 | #define SCROLLBARBORDERSIZE 1 |
---|
| 133 | #define FONTPOSYOFFSET -3 |
---|
[7694] | 134 | #define FB "fb0" |
---|
| 135 | #define FB1 "fb1" |
---|
[7497] | 136 | #define SKINFB "skinfb" |
---|
| 137 | #define ACCELFB "accelfb" |
---|
| 138 | #define CONFIGFILE PROGNAME".cfg" |
---|
[7652] | 139 | #define KILLPROG "killall -9 "PROGNAME |
---|
| 140 | #define REBOOT "init 6" |
---|
[7791] | 141 | #define FILELISTDELMARK 255 |
---|
[8017] | 142 | #define PLUGINDELMARK 254 |
---|
[21429] | 143 | #define MAXDVBADAPTER 1 |
---|
[41032] | 144 | #ifndef MIPSEL |
---|
[27237] | 145 | #define MAXFRONTENDDEV 4 |
---|
[41032] | 146 | #else |
---|
| 147 | #define MAXFRONTENDDEV 8 |
---|
| 148 | #endif |
---|
[7906] | 149 | #define MAXDEMUXDEVOPEN 10 |
---|
[31357] | 150 | #define MAXAUDIODEV 4 |
---|
| 151 | #define MAXVIDEODEV 4 |
---|
[10473] | 152 | #define MAXCIDEV 4 |
---|
[41067] | 153 | #define MAXCADEV 8 |
---|
[26968] | 154 | #ifndef MIPSEL |
---|
[9713] | 155 | #define MAXDVRDEV 4 |
---|
[26968] | 156 | #define MAXDEMUXDEV 4 |
---|
| 157 | #else |
---|
[41067] | 158 | #define MAXDVRDEV 9 |
---|
| 159 | #define MAXDEMUXDEV 9 |
---|
[31357] | 160 | #define MAXENCODERDEV 2 |
---|
[41132] | 161 | //#define DVB_API_VERSION 5 |
---|
[26968] | 162 | #endif |
---|
[22527] | 163 | #define MAXSCDEV 2 |
---|
[7612] | 164 | #define RCTIMEOUT 999999 |
---|
[7763] | 165 | #define RCTHREADSTANDBY 999998 |
---|
[7670] | 166 | #define MAXSERVICETYPE 10 |
---|
[10287] | 167 | #define CHANNELCACHEMAX 1000 |
---|
[16358] | 168 | #define MEDIADBCACHEMAX 1000 |
---|
[14869] | 169 | #define TRANSPONDERCACHEMAX 500 |
---|
[9220] | 170 | #define MAXHTTPDCONN 20 |
---|
[9295] | 171 | #define MAXHTMLLINE 300 |
---|
[14640] | 172 | #define MAXRGUIDCONN 1 |
---|
[9501] | 173 | #define LISTHASHSIZE 27 |
---|
[10473] | 174 | #define MAXCASESSION 16 |
---|
[11054] | 175 | #define MAXCASERVICE 20 |
---|
[12226] | 176 | #define MAXLONGKEY 10 |
---|
[12521] | 177 | #define MAXSAT 64 |
---|
[32001] | 178 | #define MAXBGDOWNLOAD 10 |
---|
[32027] | 179 | #ifdef MIPSEL |
---|
[32029] | 180 | #define EPGSCANLOG "/mnt/logs/epgscan.log" |
---|
[32027] | 181 | #else |
---|
[14759] | 182 | #define EPGSCANLOG "/tmp/epgscan.log" |
---|
[32027] | 183 | #endif |
---|
[14953] | 184 | #define MAXCHANNELHISTORY 6 |
---|
[15365] | 185 | #define HILO(x) (x##_hi << 8 | x##_lo) |
---|
[19265] | 186 | #define HILO32(x) (x##_hi << 24 | x##_mh << 16 | x##_ml << 8 | x##_lo) |
---|
[22520] | 187 | #define SERIALDEV "/dev/ttyAS0" |
---|
[23184] | 188 | #define MAXTOKENS 256 |
---|
[23195] | 189 | #define MAXSTACKTRACE 30 |
---|
| 190 | #define MAXSTACKTRACEFUNC 20 |
---|
[7497] | 191 | |
---|
[17007] | 192 | #define USBDEVICE_SUPER_MAGIC 0x9fa2 |
---|
| 193 | #define EXT2_SUPER_MAGIC 0xEF53 |
---|
| 194 | #define EXT3_SUPER_MAGIC 0xEF53 |
---|
| 195 | #define SMB_SUPER_MAGIC 0x517B |
---|
| 196 | #define NFS_SUPER_MAGIC 0x6969 |
---|
| 197 | #define MSDOS_SUPER_MAGIC 0x4d44 |
---|
| 198 | |
---|
[30944] | 199 | #ifndef VIDEO_SOURCE_HDMI |
---|
| 200 | #define VIDEO_SOURCE_HDMI 2 |
---|
| 201 | #endif |
---|
| 202 | #ifndef AUDIO_SOURCE_HDMI |
---|
| 203 | #define AUDIO_SOURCE_HDMI 2 |
---|
| 204 | #endif |
---|
| 205 | |
---|
[37766] | 206 | //cacc cert check |
---|
[38008] | 207 | #define ROOT_CERT "/mnt/swapextensions/etc/pem/root.pem" |
---|
| 208 | #define CUSTOMER_CERT "/mnt/swapextensions/etc/pem/customer.pem" |
---|
| 209 | #define DEVICE_CERT "/mnt/swapextensions/etc/pem/device.pem" |
---|
[37769] | 210 | #define MAX_ELEMENTS 33 |
---|
[39294] | 211 | #ifdef MIPSEL |
---|
[40595] | 212 | #define CA_SET_DESCR_DATA_DREAM _IOW('o', 137, struct ca_descr_data) |
---|
| 213 | #define CA_SET_DESCR_DATA _IOW('o', 10, struct ca_descr_data) |
---|
[37769] | 214 | #endif |
---|
[39294] | 215 | #ifdef SH4NEW |
---|
| 216 | #define CA_SET_DESCR_DATA _IOW('o', 137, struct ca_descr_data) |
---|
| 217 | #endif |
---|
[42625] | 218 | #ifdef SIMULATE |
---|
| 219 | #define CA_SET_DESCR_DATA _IOW('o', 137, struct ca_descr_data) |
---|
| 220 | #endif |
---|
[37726] | 221 | |
---|
[23093] | 222 | //Start Function Entry Point |
---|
| 223 | #define STARTFUNC |
---|
| 224 | |
---|
[10473] | 225 | //CA Defines |
---|
| 226 | #define T_SB 0x80 //sb (h<--m) |
---|
| 227 | #define T_RCV 0x81 //receive (h-->m) |
---|
| 228 | #define T_CREATE_T_C 0x82 //create transport connection (h-->m) |
---|
| 229 | #define T_C_T_C_REPLY 0x83 //ctc reply (h<--m) |
---|
| 230 | #define T_DELETE_T_C 0x84 //delete tc (h<->m) |
---|
| 231 | #define T_D_T_C_REPLY 0x85 //dtc reply (h<->m) |
---|
| 232 | #define T_REQUEST_T_C 0x86 //request transport connection (h<--m) |
---|
| 233 | #define T_NEW_T_C 0x87 //new tc - reply to t_request (h-->m) |
---|
| 234 | #define T_T_C_ERROR 0x77 //error creating tc (h-->m) |
---|
| 235 | #define T_DATA_LAST 0xA0 //convey data from higher (h<->m) |
---|
| 236 | #define T_DATA_MORE 0xA1 //convey data from higher (h<->m) |
---|
| 237 | |
---|
[21758] | 238 | //Alarm Signal used as timeout |
---|
| 239 | #define ALARMTIMEOUT 1 |
---|
| 240 | #define ALARMSTARTTIME(x) if(ALARMTIMEOUT == 1) {alarm(x);} |
---|
| 241 | #define ALARMSTOPTIME if(ALARMTIMEOUT == 1) {alarm(0);} |
---|
| 242 | |
---|
[7971] | 243 | // VFD icons supported (more or less) on all boxes: |
---|
| 244 | typedef enum { VFD_USB = 0x10, VFD_HD, VFD_HDD, VFD_LOCK, VFD_BT, VFD_MP3, VFD_MUSIC, VFD_DD, VFD_MAIL, VFD_MUTE, VFD_PLAY, VFD_PAUSE, VFD_FF, VFD_FR, VFD_REC, VFD_CLOCK } vfdicons; |
---|
| 245 | |
---|
[13591] | 246 | #define OMIN(a,b) (a < b ? a : b) |
---|
| 247 | #define OMAX(a,b) (a > b ? a : b) |
---|
[8964] | 248 | |
---|
[7728] | 249 | #define bcdtoint(i) ((((i & 0xf0) >> 4) * 10) + (i & 0x0f)) |
---|
| 250 | |
---|
[23816] | 251 | #define alpha_composite(composite, fg, alpha, ralpha, bg) { (composite) = ((fg)*(alpha) + (bg)*(ralpha)) >> 8; } |
---|
[8520] | 252 | |
---|
[13930] | 253 | enum {LEFT=20000, CENTER, RIGHT, TEXTCENTER, TEXTRIGHT}; |
---|
| 254 | enum {TOP=20000, MIDDLE, BOTTOM, TEXTMIDDLE, TEXTBOTTOM}; |
---|
[7497] | 255 | enum {BOTTOMLEFT, BOTTOMRIGHT, TOPLEFT, TOPRIGHT}; |
---|
[8985] | 256 | enum {LEFTRIGHT=1, TOPBOTTOM, LEFTMIDDLE, TOPMIDDLE}; |
---|
[7497] | 257 | enum {NO, YES, AUTONO, AUTOYES}; |
---|
[22781] | 258 | enum {UNDEF=0, LISTBOX=1, TEXTBOX=2, CHOICEBOX=4, INPUTBOX=8, INPUTBOXNUM=16, FILELIST=32, PROGRESSBAR=64, MENU=128, MULTIPROGRESSBAR=256, GRID=512, GRIDBR=1024, PASSWORD=2048}; |
---|
[31357] | 259 | enum {FRONTENDDEV, DEMUXDEV, VIDEODEV, AUDIODEV, CADEV, CIDEV, FRONTENDDEVDUMMY, DVRDEV, SCDEV, ENCODERDEV}; |
---|
[7571] | 260 | enum {TV, RADIO}; |
---|
[31367] | 261 | enum {RECDIRECT, RECTIMER, RECTIMESHIFT, RECSTREAM, RECPLAY, RECSTREAMENC}; |
---|
[39757] | 262 | #ifdef DREAMBOX |
---|
| 263 | enum {MPEGV = 0, MPEG4V = 4, H264 = 1, VC1 = 10, H265 = 22}; |
---|
[39899] | 264 | enum {AC3 = 0, MPEGA = 1, DTS = 2, LPCM = 6, AAC = 8, AACHE = 9, DTSHD = 16, DDP = 7}; |
---|
[39757] | 265 | #else |
---|
[39899] | 266 | enum {AC3 = 0, MPEGA = 1, DTS = 2, LPCM = 6, AAC = 8, AACHE = 9, DTSHD = 16, DDP = 34}; |
---|
[39757] | 267 | enum {MPEGV = 0, MPEG4V = 4, H264 = 1, VC1 = 10, H265 = 7}; |
---|
| 268 | #endif |
---|
[7659] | 269 | enum {ALLCHANNEL, SATCHANNEL, PROVIDERCHANNEL, AZCHANNEL, BOUQUETCHANNEL, SATLIST, PROVIDERLIST, AZLIST, MAINBOUQUETLIST}; |
---|
[12281] | 270 | enum {NOMODE, MVMODE, RMMODE, CPMODE, PROTECTMODE, EDITMODE}; |
---|
[30944] | 271 | enum {NOTHING, CHANNEL, STILLPIC, RECORDDIRECT, RECORDTIMER, RECORDTIMESHIFT, RECORDSTREAM, TMPOTHER, RECORDPLAY, HDMIIN}; |
---|
[7728] | 272 | enum {START, PAUSE, STOP}; |
---|
[8997] | 273 | enum {DEACTIVE, ACTIVE, INPAUSE, ERROR}; |
---|
[35659] | 274 | enum {FUNCTEXT, FUNCPIC, FUNCPROGRESS,FUNCPICOLED}; |
---|
[10473] | 275 | enum {CASESSIONCREATE, CASESSIONBUSY, CASESSIONDEL, CASESSIONSTART, CASESSIONFINAL, CARESFIRSTENQUIRY, CARESCHANGE, CARESENQUIRY, CADATETIMESEND, CAMMIIDLE, CAMMIDISPLAYREPLAY, CAMMIFAKEOK}; |
---|
[40705] | 276 | enum {feSatellite, feCable, feTerrestrial, feATSC}; |
---|
[7497] | 277 | |
---|
[23224] | 278 | #ifdef BETA |
---|
[23187] | 279 | struct stacktrace |
---|
| 280 | { |
---|
| 281 | int pos; |
---|
| 282 | pthread_t thread; |
---|
[23195] | 283 | void* func[MAXSTACKTRACEFUNC]; |
---|
[23187] | 284 | }; |
---|
| 285 | struct stacktrace stacktrace[MAXSTACKTRACE]; |
---|
[23224] | 286 | #endif |
---|
[23187] | 287 | |
---|
[20233] | 288 | struct lastsubtitle |
---|
| 289 | { |
---|
| 290 | uint64_t transponderid; |
---|
| 291 | int serviceid; |
---|
| 292 | int16_t subtitlepid; |
---|
[24612] | 293 | int16_t subtitleid1; |
---|
[24138] | 294 | int16_t subtitleid2; |
---|
[20233] | 295 | struct lastsubtitle* next; |
---|
| 296 | }; |
---|
| 297 | |
---|
[18738] | 298 | struct newsletter |
---|
| 299 | { |
---|
| 300 | unsigned long nr; |
---|
| 301 | char* date; |
---|
| 302 | char* title; |
---|
| 303 | char* text; |
---|
| 304 | struct newsletter* next; |
---|
| 305 | }; |
---|
| 306 | |
---|
[18571] | 307 | struct oldentry |
---|
| 308 | { |
---|
| 309 | void* entry; |
---|
| 310 | //0 = epg |
---|
| 311 | int type; |
---|
| 312 | time_t del; |
---|
| 313 | struct oldentry* next; |
---|
| 314 | }; |
---|
| 315 | |
---|
[18302] | 316 | struct unicable |
---|
| 317 | { |
---|
| 318 | char* manufacturer; |
---|
| 319 | char* product; |
---|
| 320 | int scr1; |
---|
| 321 | int scr2; |
---|
| 322 | int scr3; |
---|
| 323 | int scr4; |
---|
| 324 | int scr5; |
---|
| 325 | int scr6; |
---|
| 326 | int scr7; |
---|
| 327 | int scr8; |
---|
| 328 | int lofl; |
---|
| 329 | int lofh; |
---|
| 330 | struct unicable* next; |
---|
| 331 | struct unicable* prev; |
---|
| 332 | }; |
---|
| 333 | |
---|
[16879] | 334 | struct id3tag |
---|
| 335 | { |
---|
| 336 | int version; |
---|
| 337 | char* title; |
---|
| 338 | char* artist; |
---|
| 339 | char* album; |
---|
| 340 | char* year; |
---|
| 341 | char* comment; |
---|
| 342 | char* genrecode; |
---|
| 343 | char* genretext; |
---|
| 344 | char* poster; |
---|
| 345 | int track; |
---|
| 346 | int len; |
---|
| 347 | int picturetype; |
---|
| 348 | unsigned int picturepos; |
---|
| 349 | unsigned int picturelen; |
---|
| 350 | }; |
---|
| 351 | |
---|
| 352 | struct id3genre |
---|
| 353 | { |
---|
| 354 | int code; |
---|
| 355 | char text[30]; |
---|
| 356 | }; |
---|
| 357 | |
---|
[16314] | 358 | struct regex |
---|
| 359 | { |
---|
| 360 | char* match1; |
---|
| 361 | char* match2; |
---|
| 362 | char* match3; |
---|
| 363 | char* match4; |
---|
| 364 | char* match5; |
---|
| 365 | char* match6; |
---|
| 366 | char* match7; |
---|
| 367 | char* match8; |
---|
| 368 | char* match9; |
---|
| 369 | char* match10; |
---|
| 370 | }; |
---|
| 371 | |
---|
[16237] | 372 | struct imdb |
---|
| 373 | { |
---|
| 374 | char* title; |
---|
| 375 | char* year; |
---|
| 376 | char* rated; |
---|
| 377 | char* released; |
---|
| 378 | char* genre; |
---|
| 379 | char* director; |
---|
| 380 | char* writer; |
---|
| 381 | char* actors; |
---|
| 382 | char* plot; |
---|
| 383 | char* poster; |
---|
| 384 | char* runtime; |
---|
| 385 | char* rating; |
---|
| 386 | char* votes; |
---|
| 387 | char* id; |
---|
[16413] | 388 | char* thumb; |
---|
[16237] | 389 | }; |
---|
| 390 | |
---|
[16410] | 391 | struct imdbapi |
---|
| 392 | { |
---|
| 393 | char* title; |
---|
| 394 | char* year; |
---|
| 395 | char* rated; |
---|
| 396 | char* released; |
---|
| 397 | char* genre; |
---|
| 398 | char* director; |
---|
| 399 | char* writer; |
---|
| 400 | char* actors; |
---|
| 401 | char* plot; |
---|
| 402 | char* poster; |
---|
| 403 | char* runtime; |
---|
| 404 | char* rating; |
---|
| 405 | char* votes; |
---|
| 406 | char* id; |
---|
| 407 | }; |
---|
| 408 | |
---|
[16237] | 409 | struct tmdb |
---|
| 410 | { |
---|
| 411 | char* title; |
---|
| 412 | char* year; |
---|
| 413 | char* rated; |
---|
| 414 | char* released; |
---|
| 415 | char* genre; |
---|
| 416 | char* runtime; |
---|
| 417 | char* plot; |
---|
[16326] | 418 | char* postermid; |
---|
[16237] | 419 | char* rating; |
---|
| 420 | char* votes; |
---|
| 421 | char* id; |
---|
| 422 | char* backdrop; |
---|
| 423 | char* imdbid; |
---|
| 424 | char* orgname; |
---|
| 425 | char* language; |
---|
| 426 | char* type; |
---|
| 427 | char* score; |
---|
| 428 | char* cover; |
---|
| 429 | char* thumb; |
---|
[16326] | 430 | char* mvi; |
---|
[16492] | 431 | struct tmdb* prev; |
---|
| 432 | struct tmdb* next; |
---|
[16237] | 433 | }; |
---|
| 434 | |
---|
[16221] | 435 | struct mediadbfilter |
---|
| 436 | { |
---|
| 437 | struct mediadb* node; |
---|
[16603] | 438 | int count; |
---|
[16221] | 439 | struct mediadbfilter* prev; |
---|
| 440 | struct mediadbfilter* next; |
---|
| 441 | }; |
---|
| 442 | |
---|
| 443 | struct mediadbcategory |
---|
| 444 | { |
---|
| 445 | int type; |
---|
| 446 | char* name; |
---|
| 447 | struct mediadbcategory* prev; |
---|
| 448 | struct mediadbcategory* next; |
---|
| 449 | }; |
---|
| 450 | |
---|
| 451 | struct mediadb |
---|
| 452 | { |
---|
| 453 | char* id; |
---|
| 454 | int type; |
---|
| 455 | char* title; |
---|
[16289] | 456 | int year; |
---|
[16221] | 457 | char* released; |
---|
| 458 | char* runtime; |
---|
| 459 | char* genre; |
---|
| 460 | char* director; |
---|
| 461 | char* writer; |
---|
| 462 | char* actors; |
---|
| 463 | char* plot; |
---|
| 464 | char* poster; |
---|
[16289] | 465 | int rating; |
---|
| 466 | int votes; |
---|
[16769] | 467 | char* path; |
---|
[16221] | 468 | char* file; |
---|
[18850] | 469 | char* shortname; |
---|
| 470 | char* fileinfo; |
---|
[16231] | 471 | time_t timestamp; |
---|
[16797] | 472 | //bit 31: manual change |
---|
[16375] | 473 | int flag; |
---|
[18947] | 474 | int backdropcount; |
---|
[16221] | 475 | struct mediadb* prev; |
---|
| 476 | struct mediadb* next; |
---|
| 477 | }; |
---|
| 478 | |
---|
[16358] | 479 | struct mediadbcache |
---|
| 480 | { |
---|
[16769] | 481 | char* path; |
---|
[16358] | 482 | char* file; |
---|
| 483 | struct mediadb* mediadbnode; |
---|
| 484 | struct mediadbcache* next; |
---|
| 485 | }; |
---|
| 486 | |
---|
[15781] | 487 | struct mostzap |
---|
| 488 | { |
---|
| 489 | int serviceid; |
---|
[18431] | 490 | uint64_t transponderid; |
---|
[15781] | 491 | int count; |
---|
| 492 | struct mostzap* prev; |
---|
| 493 | struct mostzap* next; |
---|
| 494 | }; |
---|
| 495 | |
---|
[15155] | 496 | struct menulist |
---|
| 497 | { |
---|
| 498 | char* name; |
---|
[15159] | 499 | char* text; |
---|
[15155] | 500 | char* pic; |
---|
[15182] | 501 | char* param; |
---|
[15261] | 502 | char* param1; |
---|
[23288] | 503 | char* param2; |
---|
[23289] | 504 | char* param3; |
---|
[15155] | 505 | int deaktiv; |
---|
| 506 | int defaultentry; |
---|
| 507 | struct menulist* next; |
---|
| 508 | }; |
---|
| 509 | |
---|
[14910] | 510 | struct channelhistory |
---|
| 511 | { |
---|
| 512 | struct channel* chnode; |
---|
| 513 | char* channellist; |
---|
| 514 | }; |
---|
| 515 | |
---|
[10502] | 516 | struct queue |
---|
| 517 | { |
---|
| 518 | //0-99 for ca module |
---|
[15281] | 519 | //101 for thumb thread |
---|
[10502] | 520 | int type; |
---|
[10718] | 521 | int flag; |
---|
[10502] | 522 | int len; |
---|
| 523 | void* data; |
---|
[15282] | 524 | void* data1; |
---|
[10502] | 525 | struct queue* prev; |
---|
| 526 | struct queue* next; |
---|
| 527 | }; |
---|
| 528 | |
---|
[10473] | 529 | struct casession |
---|
| 530 | { |
---|
| 531 | int inuse; |
---|
| 532 | int sessionnr; |
---|
| 533 | int action; |
---|
| 534 | int state; |
---|
[11163] | 535 | int mmimanager; |
---|
| 536 | int camanager; |
---|
| 537 | int datetimemanager; |
---|
| 538 | int appmanager; |
---|
| 539 | int resmanager; |
---|
[37740] | 540 | int ccmanager; |
---|
[40678] | 541 | #ifdef MIPSEL |
---|
| 542 | int hostmanager; |
---|
[40682] | 543 | int mmiappmanager; |
---|
[40678] | 544 | int hostlacmanager; |
---|
[40679] | 545 | int upgrademanager; |
---|
[40678] | 546 | #endif |
---|
[11108] | 547 | char* mmititle; |
---|
| 548 | char* mmisubtitle; |
---|
| 549 | char* mmitext; |
---|
| 550 | char* mmibottom; |
---|
[10473] | 551 | }; |
---|
| 552 | |
---|
[10366] | 553 | struct caslot |
---|
| 554 | { |
---|
[10473] | 555 | struct casession casession[MAXCASESSION]; |
---|
| 556 | int connid; |
---|
[10810] | 557 | int poll; |
---|
[10366] | 558 | int status; |
---|
| 559 | int rlen; |
---|
[10473] | 560 | unsigned char* rbuf; |
---|
| 561 | char* name; |
---|
[10635] | 562 | int fastrun; |
---|
[10865] | 563 | char* caids; |
---|
[37766] | 564 | // cacc |
---|
[37719] | 565 | unsigned char lastKey[32]; |
---|
| 566 | uint8_t lastParity; |
---|
[37846] | 567 | // unsigned char scrambled; |
---|
| 568 | int scrambled; |
---|
[37740] | 569 | void *private_data; |
---|
[37742] | 570 | int ccmgr_ready; |
---|
[37787] | 571 | // not in used currently |
---|
[37757] | 572 | int inuse; |
---|
| 573 | int sidblacklisted; |
---|
[10366] | 574 | }; |
---|
| 575 | |
---|
[10347] | 576 | struct hdd |
---|
| 577 | { |
---|
| 578 | char* device; |
---|
| 579 | int partition; |
---|
[24773] | 580 | unsigned long long size; |
---|
[10347] | 581 | char* filesystem; |
---|
| 582 | char* label; |
---|
[10701] | 583 | char* uuid; |
---|
[10347] | 584 | char* vendor; |
---|
| 585 | char* model; |
---|
| 586 | int removable; |
---|
[11127] | 587 | int read; |
---|
| 588 | int write; |
---|
| 589 | int sleeptime; |
---|
| 590 | int notchanged; |
---|
[10347] | 591 | struct hdd* prev; |
---|
| 592 | struct hdd* next; |
---|
| 593 | }; |
---|
| 594 | |
---|
[10129] | 595 | struct scaninfo |
---|
| 596 | { |
---|
| 597 | struct dvbdev* fenode; |
---|
| 598 | struct transponder* tpnode; |
---|
| 599 | struct skin* scanscreen; |
---|
| 600 | struct skin* listbox; |
---|
[10165] | 601 | int threadend; |
---|
[10129] | 602 | int scantype; |
---|
[10338] | 603 | int fetype; |
---|
[10129] | 604 | int orbitalpos; |
---|
| 605 | int timeout; |
---|
[10165] | 606 | int onlyfree; |
---|
[14050] | 607 | int networkscan; |
---|
[10326] | 608 | int clear; |
---|
[14543] | 609 | int blindscan; |
---|
[10338] | 610 | char* satname; |
---|
[10129] | 611 | int tpcount; |
---|
[14218] | 612 | int tpmax; |
---|
[18239] | 613 | int tpnew; |
---|
[36358] | 614 | int tpdel; |
---|
[10129] | 615 | int tvcount; |
---|
| 616 | int newtvcount; |
---|
| 617 | int radiocount; |
---|
| 618 | int newradiocount; |
---|
| 619 | int datacount; |
---|
| 620 | int newdatacount; |
---|
[14586] | 621 | int blindcount; |
---|
| 622 | int newblindcount; |
---|
[20631] | 623 | int changename; |
---|
[36369] | 624 | int cleartransponder; |
---|
[19506] | 625 | unsigned int blindmax; |
---|
[10129] | 626 | } scaninfo; |
---|
| 627 | |
---|
[9448] | 628 | struct screensaver |
---|
| 629 | { |
---|
| 630 | int type; |
---|
| 631 | int speed; |
---|
| 632 | int newposx; |
---|
| 633 | int newposy; |
---|
[13879] | 634 | int flag; |
---|
[9448] | 635 | struct skin* screen; |
---|
[9449] | 636 | struct skin* screennode; |
---|
[9448] | 637 | struct skin* filelist; |
---|
| 638 | struct skin* aktnode; |
---|
| 639 | struct pic* pic; |
---|
| 640 | char* value; |
---|
[13861] | 641 | char* path; |
---|
[9448] | 642 | }; |
---|
| 643 | |
---|
[9389] | 644 | struct playlist |
---|
| 645 | { |
---|
| 646 | char* file; |
---|
| 647 | struct playlist* prev; |
---|
| 648 | struct playlist* next; |
---|
| 649 | }; |
---|
| 650 | |
---|
| 651 | struct mainplaylist |
---|
| 652 | { |
---|
| 653 | char* name; |
---|
| 654 | char* filename; |
---|
| 655 | struct playlist* playlist; |
---|
| 656 | struct mainplaylist* prev; |
---|
| 657 | struct mainplaylist* next; |
---|
| 658 | }; |
---|
| 659 | |
---|
[9347] | 660 | struct epgrecord |
---|
| 661 | { |
---|
| 662 | time_t begin; |
---|
| 663 | time_t end; |
---|
| 664 | int posx; |
---|
| 665 | int size; |
---|
| 666 | struct epgrecord* prev; |
---|
| 667 | struct epgrecord* next; |
---|
| 668 | }; |
---|
| 669 | |
---|
[9230] | 670 | struct download |
---|
| 671 | { |
---|
[42651] | 672 | char* cmd; |
---|
[9230] | 673 | char* host; |
---|
| 674 | char* page; |
---|
| 675 | int port; |
---|
| 676 | char* filename; |
---|
[12866] | 677 | char* auth; |
---|
[9230] | 678 | int connfd; |
---|
| 679 | int proz; |
---|
| 680 | unsigned int maxkb; |
---|
| 681 | unsigned int aktkb; |
---|
| 682 | int ret; |
---|
[19884] | 683 | int timeout; |
---|
[20855] | 684 | int flag; |
---|
[9230] | 685 | }; |
---|
| 686 | |
---|
[22565] | 687 | struct copyfile |
---|
| 688 | { |
---|
| 689 | char* from; |
---|
| 690 | char* to; |
---|
| 691 | int proz; |
---|
[22708] | 692 | int filecount; |
---|
[22710] | 693 | int maxfilecount; |
---|
[22565] | 694 | off64_t maxkb; |
---|
| 695 | off64_t aktkb; |
---|
[22566] | 696 | int stop; |
---|
[22565] | 697 | int ret; |
---|
| 698 | int flag; |
---|
| 699 | }; |
---|
| 700 | |
---|
[8976] | 701 | struct epgscanlist |
---|
| 702 | { |
---|
| 703 | int serviceid; |
---|
[18431] | 704 | uint64_t transponderid; |
---|
[8981] | 705 | time_t scantime; |
---|
[8976] | 706 | struct epgscanlist* prev; |
---|
| 707 | struct epgscanlist* next; |
---|
[20981] | 708 | char* name; |
---|
[8976] | 709 | }; |
---|
| 710 | |
---|
[8964] | 711 | struct rgba |
---|
| 712 | { |
---|
| 713 | char r; |
---|
| 714 | char g; |
---|
| 715 | char b; |
---|
| 716 | char a; |
---|
| 717 | }; |
---|
| 718 | |
---|
| 719 | struct subclutentry |
---|
| 720 | { |
---|
| 721 | unsigned char Y, Cr, Cb, T; |
---|
| 722 | unsigned char valid; |
---|
| 723 | }; |
---|
| 724 | |
---|
| 725 | struct subclut |
---|
| 726 | { |
---|
| 727 | unsigned char clutid; |
---|
| 728 | unsigned char clutversionnumber; |
---|
| 729 | struct subclutentry entries2bit[4]; |
---|
| 730 | struct subclutentry entries4bit[16]; |
---|
| 731 | struct subclutentry entries8bit[256]; |
---|
| 732 | struct subclut *next; |
---|
| 733 | }; |
---|
| 734 | |
---|
| 735 | struct subpagereg |
---|
| 736 | { |
---|
| 737 | int regid; |
---|
| 738 | int reghorizontaladdress; |
---|
| 739 | int regverticaladdress; |
---|
| 740 | int scaleposx, scaleposy; |
---|
| 741 | struct subpagereg *next; |
---|
| 742 | }; |
---|
| 743 | |
---|
| 744 | struct subregobj |
---|
| 745 | { |
---|
| 746 | int objid; |
---|
| 747 | int objtype; |
---|
| 748 | int objproviderflag; |
---|
| 749 | int objhorizontalpos; |
---|
| 750 | int objverticalpos; |
---|
| 751 | // not supported right now... |
---|
| 752 | int foregroundpixel; |
---|
| 753 | int backgroundpixel; |
---|
| 754 | struct subregobj *next; |
---|
| 755 | }; |
---|
| 756 | |
---|
| 757 | struct subreg |
---|
| 758 | { |
---|
| 759 | int regid; |
---|
| 760 | int versionnumber; |
---|
| 761 | int height, width; |
---|
| 762 | int scaleheight, scalewidth; |
---|
| 763 | int depth; |
---|
| 764 | unsigned char *buf; |
---|
| 765 | struct rgba *palette; |
---|
| 766 | int clutid; |
---|
| 767 | int committed; |
---|
| 768 | struct subregobj *objects; |
---|
| 769 | struct subreg *next; |
---|
| 770 | }; |
---|
| 771 | |
---|
| 772 | struct subpage |
---|
| 773 | { |
---|
| 774 | int pageid; |
---|
| 775 | time_t pagetimeout; |
---|
| 776 | int pageversionnumber; |
---|
| 777 | int state; |
---|
| 778 | int pcssize; |
---|
| 779 | struct subpagereg *pageregions; |
---|
| 780 | struct subreg *regions; |
---|
| 781 | struct subclut *cluts; |
---|
| 782 | struct subpage *next; |
---|
| 783 | }; |
---|
| 784 | |
---|
| 785 | struct bitstream |
---|
| 786 | { |
---|
| 787 | unsigned char *data; |
---|
| 788 | int size; |
---|
| 789 | int avail; |
---|
| 790 | int consumed; |
---|
| 791 | }; |
---|
| 792 | |
---|
[10165] | 793 | //there are a copyrectimer function |
---|
| 794 | //if you change the struct you must change this funktion |
---|
[8536] | 795 | struct rectimer |
---|
| 796 | { |
---|
| 797 | char* name; |
---|
[11985] | 798 | char* timestamp; |
---|
[8536] | 799 | time_t begin; |
---|
| 800 | time_t end; |
---|
| 801 | int repeate; |
---|
| 802 | int afterevent; |
---|
[10645] | 803 | char* pincode; |
---|
[8536] | 804 | int disabled; |
---|
| 805 | int justplay; |
---|
[8609] | 806 | char* recpath; |
---|
| 807 | int servicetype; |
---|
| 808 | char* channellist; |
---|
| 809 | int serviceid; |
---|
[8663] | 810 | //0 = nothing |
---|
| 811 | //1 = running |
---|
| 812 | //2 = end |
---|
[9107] | 813 | //3 = error |
---|
[20107] | 814 | //4 = epgscan timer activ |
---|
| 815 | //5 = epgscan timer not activ |
---|
[8663] | 816 | int status; |
---|
[9107] | 817 | char* errstr; |
---|
[8663] | 818 | struct service* servicenode; |
---|
[18431] | 819 | uint64_t transponderid; |
---|
[8536] | 820 | struct rectimer *prev; |
---|
| 821 | struct rectimer *next; |
---|
| 822 | }; |
---|
| 823 | |
---|
[8228] | 824 | struct inetwork |
---|
| 825 | { |
---|
[8259] | 826 | char* device; |
---|
[8228] | 827 | char* ip; |
---|
| 828 | char* netmask; |
---|
| 829 | char* mac; |
---|
| 830 | char* broadcast; |
---|
[17210] | 831 | //0 = static |
---|
| 832 | //1 = dhcp |
---|
| 833 | //2 = off |
---|
| 834 | int type; |
---|
[14368] | 835 | int found; |
---|
[14499] | 836 | //flag 1 = used in titan |
---|
| 837 | int flag; |
---|
[8259] | 838 | struct inetwork *prev; |
---|
| 839 | struct inetwork *next; |
---|
| 840 | }; |
---|
[8228] | 841 | |
---|
[8028] | 842 | struct rcmap |
---|
| 843 | { |
---|
| 844 | char* name; |
---|
| 845 | int key; |
---|
[8228] | 846 | int newkey; |
---|
[8028] | 847 | struct rcmap* next; |
---|
| 848 | }; |
---|
| 849 | |
---|
[7763] | 850 | struct splitstr |
---|
| 851 | { |
---|
| 852 | char* part; |
---|
| 853 | }; |
---|
| 854 | |
---|
| 855 | struct channelcache |
---|
| 856 | { |
---|
| 857 | int serviceid; |
---|
[18431] | 858 | uint64_t transponderid; |
---|
[7763] | 859 | struct channel* chnode; |
---|
[10287] | 860 | struct channelcache* next; |
---|
[7763] | 861 | }; |
---|
| 862 | |
---|
[14869] | 863 | struct transpondercache |
---|
| 864 | { |
---|
[18431] | 865 | uint64_t transponderid; |
---|
[14869] | 866 | struct transponder* tpnode; |
---|
| 867 | struct transpondercache* next; |
---|
| 868 | }; |
---|
| 869 | |
---|
[7751] | 870 | struct filelist |
---|
| 871 | { |
---|
| 872 | int type; |
---|
[16542] | 873 | int view; |
---|
[7751] | 874 | off64_t size; |
---|
| 875 | time_t date; |
---|
| 876 | }; |
---|
| 877 | |
---|
[7497] | 878 | struct skin |
---|
| 879 | { |
---|
| 880 | char* name; |
---|
[14209] | 881 | unsigned int type; |
---|
[7791] | 882 | uint8_t wrap; |
---|
| 883 | uint8_t bordersize; |
---|
| 884 | uint8_t scrollbar; |
---|
| 885 | uint16_t halign; |
---|
| 886 | uint16_t valign; |
---|
[7816] | 887 | int16_t posx; |
---|
| 888 | int16_t posy; |
---|
[7791] | 889 | int16_t width; |
---|
| 890 | int16_t height; |
---|
[7546] | 891 | long bordercol; |
---|
| 892 | long deaktivcol; |
---|
| 893 | long shadowcol; |
---|
[7791] | 894 | uint8_t shadowsize; |
---|
| 895 | uint8_t shadowpos; |
---|
| 896 | uint8_t fontsize; |
---|
[7955] | 897 | uint8_t fontsize2; |
---|
[7546] | 898 | long fontcol; |
---|
[7778] | 899 | long fontcol2; |
---|
[7497] | 900 | char* font; |
---|
[7816] | 901 | int16_t zorder; |
---|
| 902 | int16_t titlealign; |
---|
[7497] | 903 | char* title; |
---|
| 904 | char* text; |
---|
[7778] | 905 | char* text2; |
---|
[7546] | 906 | long bgcol; |
---|
[8985] | 907 | long bgcol2; |
---|
| 908 | long titlebgcol; |
---|
| 909 | long titlebgcol2; |
---|
[7546] | 910 | long progresscol; |
---|
[15152] | 911 | char* selectpic; |
---|
[7497] | 912 | char* pic; |
---|
[7816] | 913 | int16_t picwidth; |
---|
| 914 | int16_t picheight; |
---|
[7982] | 915 | uint16_t hspace; |
---|
| 916 | uint16_t vspace; |
---|
[13802] | 917 | char* (*skinfunc)(struct skin*, void*, void*); |
---|
[7497] | 918 | char* param1; |
---|
| 919 | char* param2; |
---|
| 920 | char* parent; |
---|
| 921 | char* input; |
---|
| 922 | char* mask; |
---|
[7791] | 923 | uint16_t textposx; |
---|
[7956] | 924 | uint16_t textposx2; |
---|
[8985] | 925 | int16_t gradient; |
---|
| 926 | int16_t titlegradient; |
---|
[7957] | 927 | uint8_t transparent; |
---|
[7982] | 928 | uint8_t hidden; |
---|
| 929 | uint8_t funcrettype; |
---|
[9437] | 930 | int8_t charspace; |
---|
[9487] | 931 | int8_t bordertype; |
---|
[9465] | 932 | int16_t borderradius; |
---|
[10668] | 933 | uint16_t bgspace; |
---|
[18242] | 934 | uint8_t picquality; |
---|
[7497] | 935 | |
---|
[7957] | 936 | uint8_t titlesize; |
---|
[7751] | 937 | struct filelist* filelist; |
---|
[7497] | 938 | struct skin* parentpointer; |
---|
| 939 | char* ret; |
---|
| 940 | char* choiceboxvalue; |
---|
| 941 | unsigned int linecount; |
---|
| 942 | unsigned int pagecount; |
---|
| 943 | unsigned int poscount; |
---|
[9823] | 944 | unsigned int gridcol; |
---|
[7497] | 945 | int aktpage; |
---|
| 946 | int aktline; |
---|
[7791] | 947 | uint8_t scrollbarbordersize; |
---|
| 948 | uint8_t prozposx; |
---|
| 949 | uint8_t prozposy; |
---|
| 950 | uint8_t prozwidth; |
---|
| 951 | uint8_t prozheight; |
---|
| 952 | uint8_t picprozwidth; |
---|
| 953 | uint8_t del; |
---|
| 954 | uint8_t picprozheight; |
---|
[7957] | 955 | int16_t scrollbarheight; |
---|
| 956 | int16_t progresssize; |
---|
| 957 | int16_t scrollbarwidth; |
---|
| 958 | int16_t scrollbarpos; |
---|
[7816] | 959 | int16_t rposx; |
---|
| 960 | int16_t rposy; |
---|
| 961 | int16_t rwidth; |
---|
| 962 | int16_t rheight; |
---|
| 963 | int16_t rpicwidth; |
---|
| 964 | int16_t rpicheight; |
---|
| 965 | int16_t iposx; |
---|
| 966 | int16_t iposy; |
---|
| 967 | int16_t iwidth; |
---|
| 968 | int16_t iheight; |
---|
[7497] | 969 | char* handle; |
---|
[7659] | 970 | char* handle1; |
---|
[9350] | 971 | struct epgrecord* epgrecord; |
---|
[7497] | 972 | char* pluginhandle; |
---|
[13140] | 973 | uint8_t locked; |
---|
[20891] | 974 | uint8_t picmem; |
---|
[13802] | 975 | //bit 0: 1 = node is drawed |
---|
[26453] | 976 | //bit 1: 1 = node is changed |
---|
[13802] | 977 | uint8_t flag; |
---|
[26453] | 978 | int hash; |
---|
[7497] | 979 | struct skin *select; |
---|
| 980 | struct skin *child; |
---|
[8282] | 981 | struct skin *prev; |
---|
[7497] | 982 | struct skin *next; |
---|
[26453] | 983 | struct skin *drawnext; |
---|
[28437] | 984 | // usesavebg=0 disable |
---|
| 985 | // usesavebg=1 save always |
---|
| 986 | // usesavebg=2 save one times then free |
---|
| 987 | // usesavebg=3 dummy for filelist |
---|
[28436] | 988 | int usesavebg; |
---|
[28437] | 989 | // savebg is saved date |
---|
[28436] | 990 | char* savebg; |
---|
[35094] | 991 | // fuer blinken |
---|
| 992 | int nodestyle; |
---|
[7497] | 993 | }; |
---|
| 994 | |
---|
[20245] | 995 | struct style |
---|
| 996 | { |
---|
| 997 | char* name; |
---|
| 998 | int16_t posx; |
---|
| 999 | int16_t posy; |
---|
| 1000 | int16_t width; |
---|
| 1001 | int16_t height; |
---|
| 1002 | int16_t picwidth; |
---|
| 1003 | int16_t picheight; |
---|
| 1004 | uint16_t textposx; |
---|
| 1005 | uint16_t textposx2; |
---|
| 1006 | uint16_t halign; |
---|
| 1007 | uint16_t valign; |
---|
| 1008 | uint16_t hspace; |
---|
| 1009 | uint16_t vspace; |
---|
| 1010 | uint16_t bgspace; |
---|
| 1011 | int16_t borderradius; |
---|
| 1012 | int16_t titlealign; |
---|
| 1013 | int16_t zorder; |
---|
| 1014 | int16_t gradient; |
---|
| 1015 | int16_t titlegradient; |
---|
| 1016 | uint8_t picquality; |
---|
| 1017 | uint8_t hidden; |
---|
| 1018 | uint8_t wrap; |
---|
| 1019 | uint8_t scrollbar; |
---|
| 1020 | uint8_t bordersize; |
---|
| 1021 | int8_t bordertype; |
---|
| 1022 | uint8_t shadowsize; |
---|
| 1023 | uint8_t shadowpos; |
---|
| 1024 | uint8_t fontsize; |
---|
| 1025 | uint8_t fontsize2; |
---|
| 1026 | int8_t charspace; |
---|
| 1027 | uint8_t transparent; |
---|
| 1028 | uint8_t prozposx; |
---|
| 1029 | uint8_t prozposy; |
---|
| 1030 | uint8_t prozwidth; |
---|
| 1031 | uint8_t prozheight; |
---|
| 1032 | uint8_t picprozwidth; |
---|
| 1033 | uint8_t picprozheight; |
---|
| 1034 | uint8_t funcrettype; |
---|
[20903] | 1035 | uint8_t picmem; |
---|
[20245] | 1036 | long bordercol; |
---|
| 1037 | long deaktivcol; |
---|
| 1038 | long progresscol; |
---|
| 1039 | long shadowcol; |
---|
| 1040 | long fontcol; |
---|
| 1041 | long fontcol2; |
---|
| 1042 | long titlebgcol; |
---|
| 1043 | long titlebgcol2; |
---|
| 1044 | long bgcol; |
---|
| 1045 | long bgcol2; |
---|
| 1046 | char* font; |
---|
| 1047 | char* pic; |
---|
| 1048 | char* param1; |
---|
| 1049 | char* param2; |
---|
| 1050 | char* input; |
---|
| 1051 | char* mask; |
---|
| 1052 | char* (*skinfunc)(struct skin*, void*, void*); |
---|
| 1053 | struct style* next; |
---|
| 1054 | }; |
---|
| 1055 | |
---|
[7728] | 1056 | struct epg |
---|
| 1057 | { |
---|
| 1058 | int eventid; |
---|
[7750] | 1059 | int version; |
---|
[7728] | 1060 | time_t starttime; |
---|
| 1061 | time_t endtime; |
---|
| 1062 | char* title; |
---|
| 1063 | char* subtitle; |
---|
| 1064 | char* desc; |
---|
[7734] | 1065 | int desclen; |
---|
[7750] | 1066 | int desccomplen; |
---|
[10314] | 1067 | int parentalrating; |
---|
[9339] | 1068 | struct epg* prev; |
---|
[7728] | 1069 | struct epg* next; |
---|
| 1070 | }; |
---|
| 1071 | |
---|
[7746] | 1072 | struct shutdowntimer |
---|
| 1073 | { |
---|
| 1074 | int active,type; //type: 0=DeepStandby, 1=Standby |
---|
| 1075 | long long shutdown_time; |
---|
| 1076 | }; |
---|
| 1077 | |
---|
[7497] | 1078 | struct dvbdev |
---|
| 1079 | { |
---|
| 1080 | char* dev; |
---|
| 1081 | int fd; |
---|
[7791] | 1082 | uint8_t type; |
---|
| 1083 | uint8_t adapter; |
---|
| 1084 | uint8_t devnr; |
---|
| 1085 | uint8_t felock; |
---|
[20360] | 1086 | uint8_t deactive; |
---|
[31357] | 1087 | uint8_t decoder; |
---|
[8952] | 1088 | struct transponder* felasttransponder; |
---|
| 1089 | struct transponder* feakttransponder; |
---|
[11083] | 1090 | int feunicable; |
---|
[14784] | 1091 | unsigned int feloffrequency; |
---|
[42191] | 1092 | unsigned int feloffrequency_uni; |
---|
[7506] | 1093 | int feaktband; |
---|
[9111] | 1094 | int feaktpolarization; |
---|
[12693] | 1095 | fe_sec_voltage_t feaktvolt; |
---|
| 1096 | fe_sec_tone_mode_t feakttone; |
---|
[7728] | 1097 | int fedmxsource; |
---|
[11394] | 1098 | char* feaktnr; |
---|
[7497] | 1099 | char* feshortname; |
---|
[28127] | 1100 | char* fehyprid; |
---|
[7497] | 1101 | struct dvb_frontend_info* feinfo; |
---|
[10366] | 1102 | struct caslot* caslot; |
---|
[7497] | 1103 | struct dvbdev *next; |
---|
| 1104 | }; |
---|
| 1105 | |
---|
[10165] | 1106 | //there are a copytransponder and createtransponder function |
---|
| 1107 | //if you change this struct you must change the function |
---|
[7497] | 1108 | struct transponder |
---|
| 1109 | { |
---|
[18431] | 1110 | uint64_t id; |
---|
[7791] | 1111 | uint8_t fetype; |
---|
| 1112 | uint8_t polarization; |
---|
| 1113 | uint8_t modulation; |
---|
| 1114 | uint8_t fec; |
---|
| 1115 | uint8_t pilot; |
---|
| 1116 | uint8_t rolloff; |
---|
| 1117 | uint8_t inversion; |
---|
| 1118 | uint8_t system; |
---|
| 1119 | uint8_t flag; |
---|
[8262] | 1120 | // 0 = unknown |
---|
| 1121 | // 1 = tunable |
---|
| 1122 | // 2 = not tunable |
---|
| 1123 | uint8_t tunablestatus; |
---|
[7791] | 1124 | int orbitalpos; |
---|
[7728] | 1125 | unsigned int frequency; |
---|
[14784] | 1126 | unsigned int symbolrate; |
---|
[14824] | 1127 | int encoding; |
---|
[18348] | 1128 | time_t lastepg; |
---|
[7497] | 1129 | struct transponder *next; |
---|
| 1130 | }; |
---|
| 1131 | |
---|
[7612] | 1132 | struct provider |
---|
| 1133 | { |
---|
| 1134 | int providerid; |
---|
| 1135 | char* name; |
---|
| 1136 | int flag; |
---|
[7652] | 1137 | struct provider *prev; |
---|
[7612] | 1138 | struct provider *next; |
---|
| 1139 | }; |
---|
| 1140 | |
---|
[7667] | 1141 | struct subtitle |
---|
[7623] | 1142 | { |
---|
[7667] | 1143 | char* name; |
---|
[24138] | 1144 | int16_t subtype; |
---|
[7791] | 1145 | int16_t pid; |
---|
| 1146 | int16_t type; |
---|
| 1147 | int16_t id1; |
---|
| 1148 | int16_t id2; |
---|
[7667] | 1149 | struct subtitle* next; |
---|
[7623] | 1150 | }; |
---|
| 1151 | |
---|
[8878] | 1152 | struct esinfo |
---|
| 1153 | { |
---|
| 1154 | int streamtype; |
---|
| 1155 | int pid; |
---|
| 1156 | struct esinfo* next; |
---|
| 1157 | }; |
---|
| 1158 | |
---|
| 1159 | struct cadesc |
---|
| 1160 | { |
---|
[17880] | 1161 | int pid; |
---|
[8878] | 1162 | int len; |
---|
| 1163 | int systemid; |
---|
| 1164 | int reserved; |
---|
[17880] | 1165 | int capid; |
---|
[8878] | 1166 | char* privat; |
---|
| 1167 | struct cadesc* next; |
---|
| 1168 | }; |
---|
| 1169 | |
---|
| 1170 | struct pmt |
---|
| 1171 | { |
---|
| 1172 | int programnumber; |
---|
| 1173 | int versionnumber; |
---|
| 1174 | int currentnextindicator; |
---|
| 1175 | }; |
---|
| 1176 | |
---|
[7667] | 1177 | struct audiotrack |
---|
| 1178 | { |
---|
| 1179 | char* name; |
---|
[7791] | 1180 | uint8_t audiocodec; |
---|
| 1181 | int16_t audiopid; |
---|
[20944] | 1182 | int16_t rdspid; |
---|
[7667] | 1183 | struct audiotrack* next; |
---|
| 1184 | }; |
---|
| 1185 | |
---|
[11675] | 1186 | struct linkedchannel |
---|
| 1187 | { |
---|
[18431] | 1188 | uint64_t transponderid; |
---|
[11675] | 1189 | int serviceid; |
---|
[21072] | 1190 | time_t starttime; |
---|
| 1191 | time_t endtime; |
---|
[11675] | 1192 | struct linkedchannel* next; |
---|
[11682] | 1193 | }; |
---|
[11675] | 1194 | |
---|
[10165] | 1195 | //there are a createchannel function |
---|
| 1196 | //if you change this struct you must change the function |
---|
[7524] | 1197 | struct channel |
---|
| 1198 | { |
---|
| 1199 | char* name; |
---|
[18431] | 1200 | uint64_t transponderid; |
---|
[7612] | 1201 | int providerid; |
---|
| 1202 | int serviceid; |
---|
| 1203 | int servicetype; |
---|
[7791] | 1204 | uint8_t flag; |
---|
| 1205 | uint8_t crypt; |
---|
| 1206 | int8_t videocodec; |
---|
| 1207 | int8_t audiocodec; |
---|
| 1208 | int16_t videopid; |
---|
| 1209 | int16_t audiopid; |
---|
| 1210 | int16_t ac3audiopid; |
---|
| 1211 | int16_t txtpid; |
---|
| 1212 | int16_t pcrpid; |
---|
[9033] | 1213 | int16_t pmtpid; |
---|
[15911] | 1214 | int16_t aitpid; |
---|
[8076] | 1215 | uint8_t protect; |
---|
[18329] | 1216 | char* hbbtvurl; |
---|
[7612] | 1217 | struct transponder *transponder; |
---|
| 1218 | struct provider *provider; |
---|
[7667] | 1219 | struct audiotrack *audiotrack; |
---|
| 1220 | struct subtitle *subtitle; |
---|
[11675] | 1221 | struct linkedchannel *linkedchannel; |
---|
[8878] | 1222 | struct pmt *pmt; |
---|
| 1223 | struct cadesc *cadesc; |
---|
| 1224 | struct esinfo *esinfo; |
---|
[7728] | 1225 | struct epg *epg; |
---|
[7652] | 1226 | struct channel *prev; |
---|
[7524] | 1227 | struct channel *next; |
---|
| 1228 | }; |
---|
| 1229 | |
---|
[7906] | 1230 | struct sat |
---|
[7497] | 1231 | { |
---|
| 1232 | char* name; |
---|
| 1233 | int orbitalpos; |
---|
| 1234 | int flag; |
---|
[8954] | 1235 | int fetype; |
---|
[10338] | 1236 | int scan; |
---|
[7652] | 1237 | struct sat *prev; |
---|
[7497] | 1238 | struct sat *next; |
---|
| 1239 | }; |
---|
| 1240 | |
---|
[7557] | 1241 | struct service |
---|
| 1242 | { |
---|
[7667] | 1243 | int type; |
---|
[10849] | 1244 | char* channellist; |
---|
[7557] | 1245 | struct dvbdev *fedev; |
---|
| 1246 | struct dvbdev *dmxaudiodev; |
---|
| 1247 | struct dvbdev *dmxvideodev; |
---|
[7728] | 1248 | struct dvbdev *dmxpcrdev; |
---|
| 1249 | struct dvbdev *dmxsubtitledev; |
---|
[7557] | 1250 | struct dvbdev *audiodev; |
---|
| 1251 | struct dvbdev *videodev; |
---|
[31367] | 1252 | struct dvbdev *encoderdev; |
---|
[7571] | 1253 | struct transponder *transponder; |
---|
[7583] | 1254 | struct channel *channel; |
---|
[9498] | 1255 | unsigned char *pmtbuf; |
---|
| 1256 | int pmtlen; |
---|
[9134] | 1257 | int recdmxstart; |
---|
[9107] | 1258 | int recdstfd; |
---|
| 1259 | int recsrcfd; |
---|
[8316] | 1260 | time_t recendtime; |
---|
[17345] | 1261 | char* rectimestamp; |
---|
[8570] | 1262 | size_t reclastsync; |
---|
| 1263 | off64_t rectotal; |
---|
| 1264 | int reccount; |
---|
[14354] | 1265 | int tssize; |
---|
[8227] | 1266 | char* recname; |
---|
[20276] | 1267 | unsigned long long lenpts; |
---|
| 1268 | unsigned long long startpts; |
---|
| 1269 | unsigned long long endpts; |
---|
| 1270 | unsigned long long bitrate; |
---|
| 1271 | off64_t endoffile; |
---|
[7557] | 1272 | struct service *next; |
---|
| 1273 | }; |
---|
| 1274 | |
---|
[11054] | 1275 | struct caservice |
---|
| 1276 | { |
---|
| 1277 | struct service* service; |
---|
| 1278 | struct channel* channel; |
---|
| 1279 | int count; |
---|
| 1280 | int camsockfd; |
---|
[11163] | 1281 | struct caslot* caslot; |
---|
| 1282 | int camanager; |
---|
[17925] | 1283 | char* capmt; |
---|
| 1284 | int capmtlen; |
---|
[17928] | 1285 | int cmdpos; |
---|
[11054] | 1286 | }; |
---|
| 1287 | |
---|
[8285] | 1288 | struct stimerthread |
---|
| 1289 | { |
---|
| 1290 | int delay; |
---|
[8648] | 1291 | int count; |
---|
[8976] | 1292 | int notfirst; |
---|
[8285] | 1293 | pthread_attr_t attr; |
---|
| 1294 | pthread_t thread; |
---|
| 1295 | int status; |
---|
| 1296 | int aktion; |
---|
[14036] | 1297 | //bit 0: 1 = stop allwas on titan end |
---|
| 1298 | int flag; |
---|
[8648] | 1299 | void* param1; |
---|
| 1300 | void* param2; |
---|
[8944] | 1301 | void* (*func)(struct stimerthread*, void*, void*); |
---|
[8285] | 1302 | struct stimerthread* next; |
---|
| 1303 | }; |
---|
| 1304 | |
---|
[9683] | 1305 | struct hddparm |
---|
| 1306 | { |
---|
| 1307 | char* device; |
---|
| 1308 | int read; |
---|
| 1309 | int write; |
---|
| 1310 | int sleeptime; |
---|
| 1311 | int notchanged; |
---|
| 1312 | }; |
---|
| 1313 | |
---|
[19651] | 1314 | struct marker |
---|
| 1315 | { |
---|
| 1316 | off64_t pos; |
---|
[19657] | 1317 | off64_t time; |
---|
| 1318 | char* timetext; |
---|
[19651] | 1319 | struct marker* prev; |
---|
| 1320 | struct marker* next; |
---|
| 1321 | }; |
---|
| 1322 | |
---|
[7497] | 1323 | struct status |
---|
| 1324 | { |
---|
[12226] | 1325 | int longkeycode[MAXLONGKEY]; |
---|
[11352] | 1326 | //aktivate extra featers |
---|
| 1327 | int expertmodus; |
---|
[11186] | 1328 | //http user:passwd |
---|
| 1329 | char* httpauth; |
---|
[10840] | 1330 | //set to 1 if channellist or channelnr open |
---|
| 1331 | int channelswitch; |
---|
[10578] | 1332 | //deaktivates child protect if greater then akttime |
---|
| 1333 | time_t protecttime; |
---|
[10315] | 1334 | char* boxtype; |
---|
[32316] | 1335 | char* realboxtype; |
---|
[9630] | 1336 | pthread_t mainthread; |
---|
[9490] | 1337 | //videosize from stream |
---|
| 1338 | video_size_t videosize; |
---|
[9632] | 1339 | time_t videosizevalid; |
---|
[9464] | 1340 | //radius for rounded border |
---|
| 1341 | int borderradius; |
---|
[9554] | 1342 | int picbordersize; |
---|
| 1343 | int titlelinesize; |
---|
[8983] | 1344 | //0 border |
---|
| 1345 | //1 fullbar |
---|
| 1346 | int listboxselecttype; |
---|
[8892] | 1347 | //0 camd.socket |
---|
| 1348 | //1 pmt.tmp |
---|
| 1349 | int pmtmode; |
---|
[8748] | 1350 | //timer for del old epg entrys |
---|
| 1351 | time_t deloldepg; |
---|
[18435] | 1352 | //write epg periodic to medium |
---|
| 1353 | time_t writeperiodicepg; |
---|
[8976] | 1354 | //0 dektiv |
---|
| 1355 | //1 only scan |
---|
| 1356 | //2 only whitlist |
---|
| 1357 | //3 scan and whitelist |
---|
| 1358 | int epglistmode; |
---|
[8667] | 1359 | // 1 manual |
---|
| 1360 | // 2 from standby |
---|
| 1361 | int startmode; |
---|
[8645] | 1362 | jmp_buf longjumpbuf; |
---|
[8626] | 1363 | pthread_mutex_t drawingmutex; |
---|
[8750] | 1364 | pthread_mutex_t rectimermutex; |
---|
| 1365 | pthread_mutex_t servicemutex; |
---|
| 1366 | pthread_mutex_t epgmutex; |
---|
[8954] | 1367 | pthread_mutex_t channelmutex; |
---|
[8964] | 1368 | pthread_mutex_t timerthreadmutex; |
---|
[9012] | 1369 | pthread_mutex_t audiotrackmutex; |
---|
| 1370 | pthread_mutex_t subtitlemutex; |
---|
[11676] | 1371 | pthread_mutex_t linkedchannelmutex; |
---|
[9659] | 1372 | pthread_mutex_t dmxdevmutex; |
---|
[10180] | 1373 | pthread_mutex_t rcmutex; |
---|
[10502] | 1374 | pthread_mutex_t queuemutex; |
---|
| 1375 | pthread_mutex_t clistmutex; |
---|
[10519] | 1376 | pthread_mutex_t hddmutex; |
---|
[12308] | 1377 | pthread_mutex_t tsseekmutex; |
---|
[14700] | 1378 | pthread_mutex_t accelfbmutex; |
---|
[16221] | 1379 | pthread_mutex_t mediadbmutex; |
---|
[18571] | 1380 | pthread_mutex_t oldentrymutex; |
---|
[18738] | 1381 | pthread_mutex_t newslettermutex; |
---|
[19839] | 1382 | pthread_mutex_t tithekmutex; |
---|
[20366] | 1383 | pthread_mutex_t inetworkmutex; |
---|
[20654] | 1384 | pthread_mutex_t textboxmutex; |
---|
[20708] | 1385 | pthread_mutex_t setaktresmutex; |
---|
[21386] | 1386 | pthread_mutex_t waitrcmutex; |
---|
[10473] | 1387 | // mutex for VFD handling |
---|
[8750] | 1388 | pthread_mutex_t vfdmutex; |
---|
[32063] | 1389 | // mutex for OLED handling |
---|
| 1390 | pthread_mutex_t oledmutex; |
---|
[40399] | 1391 | // mutex for cec handling |
---|
| 1392 | pthread_mutex_t cecmutex; |
---|
[8570] | 1393 | off64_t recsplitsize; |
---|
[8546] | 1394 | char* gateway; |
---|
| 1395 | char* dnsserver1; |
---|
| 1396 | char* dnsserver2; |
---|
[8520] | 1397 | int fasttextrender; |
---|
[8466] | 1398 | // 1 release all menus |
---|
| 1399 | int menurelease; |
---|
[8375] | 1400 | int play; |
---|
| 1401 | int pause; |
---|
[9389] | 1402 | int playspeed; |
---|
[19762] | 1403 | int slowspeed; |
---|
[30623] | 1404 | int prefillbuffer; |
---|
[30921] | 1405 | int playpic; |
---|
[30665] | 1406 | #ifdef EPLAYER4 |
---|
[38153] | 1407 | int prefillbuffercount; |
---|
[30593] | 1408 | int bufferpercent; |
---|
[31903] | 1409 | int cleaninfobar; |
---|
[30933] | 1410 | // gint avgInRate; |
---|
| 1411 | // gint avgOutRate; |
---|
| 1412 | // gint64 bufferingLeft; |
---|
| 1413 | gint64 pts; |
---|
[30604] | 1414 | #endif |
---|
[9384] | 1415 | int random; |
---|
[9478] | 1416 | int repeat; |
---|
[8318] | 1417 | int epgdays; |
---|
| 1418 | int spinnertime; |
---|
| 1419 | int spinnerspeed; |
---|
| 1420 | int hangtime; |
---|
[8285] | 1421 | int timeupdatecount; |
---|
[7659] | 1422 | int markmodus; |
---|
[7765] | 1423 | // 1 from main prog |
---|
| 1424 | // 2 from a thread |
---|
[7652] | 1425 | int standby; |
---|
[7639] | 1426 | char* tmp; |
---|
[8646] | 1427 | // rc filedescriptor |
---|
[7532] | 1428 | int fdrc; |
---|
[15746] | 1429 | // rc filedescriptor for tuxtxt |
---|
| 1430 | int fdrctxt; |
---|
[7497] | 1431 | int writeconfig; |
---|
| 1432 | int writeownconfig; |
---|
| 1433 | int writercconfig; |
---|
[9046] | 1434 | int writeskinconfig; |
---|
[7497] | 1435 | int writechannel; |
---|
| 1436 | int writetransponder; |
---|
[7612] | 1437 | int writeprovider; |
---|
[7571] | 1438 | int writemainbouquet; |
---|
| 1439 | int writebouquet; |
---|
[9389] | 1440 | int writemainplaylist; |
---|
| 1441 | int writeplaylist; |
---|
[7659] | 1442 | int writesat; |
---|
[8536] | 1443 | int writerectimer; |
---|
[8976] | 1444 | int writeepgscanlist; |
---|
[15781] | 1445 | int writemostzap; |
---|
[16539] | 1446 | int writemediadb; |
---|
[20233] | 1447 | int writelastsubtitle; |
---|
[22297] | 1448 | int writechannelslot; |
---|
[7765] | 1449 | // 1 mute is aktiv |
---|
[7497] | 1450 | int mute; |
---|
[7765] | 1451 | // 1 spinner is aktiv |
---|
[7497] | 1452 | int spinner; |
---|
[7765] | 1453 | // 1 infobar is aktiv |
---|
[9313] | 1454 | // 2 infobar is aktiv (with wait befor show) |
---|
| 1455 | // 3 infobar is aktiv (no autohide) |
---|
[7497] | 1456 | int infobar; |
---|
[9339] | 1457 | // with infobar to display |
---|
| 1458 | int infobarnr; |
---|
[7497] | 1459 | // 0 is for mute screen |
---|
[8748] | 1460 | struct skin *drawallways[1]; |
---|
| 1461 | char* drawallwaysbg[1]; |
---|
[7497] | 1462 | int usedirectfb; |
---|
[7765] | 1463 | // count how long last rcwait (shows spinner if to long) |
---|
[7497] | 1464 | time_t sec; |
---|
[7765] | 1465 | // if set to a value != 0, rcwait returns this number |
---|
[7639] | 1466 | int rckey; |
---|
[7497] | 1467 | struct skin* skinerr; |
---|
[8285] | 1468 | pthread_attr_t timerthreadattr; |
---|
| 1469 | pthread_t timerthread; |
---|
| 1470 | int timerthreadstatus; |
---|
| 1471 | int timerthreadaktion; |
---|
[7670] | 1472 | pthread_attr_t subthreadattr; |
---|
| 1473 | pthread_t subthread; |
---|
[7694] | 1474 | int subthreadstatus; |
---|
[7728] | 1475 | int subthreadaktion; |
---|
[7694] | 1476 | int subthreadpid; |
---|
[24612] | 1477 | int subthreadid1; |
---|
[24138] | 1478 | int subthreadid2; |
---|
[8976] | 1479 | // epg thread pointer |
---|
| 1480 | struct stimerthread* epgthread; |
---|
[9754] | 1481 | // epgscanlist thread pointer |
---|
| 1482 | struct stimerthread* epgscanlistthread; |
---|
[9174] | 1483 | // httpd thread pointer |
---|
| 1484 | struct stimerthread* httpthread; |
---|
[14636] | 1485 | // rguid thread pointer |
---|
[14642] | 1486 | struct stimerthread* rguithread; |
---|
[16221] | 1487 | // mediadb thread pointer |
---|
[16223] | 1488 | struct stimerthread* mediadbthread; |
---|
[19446] | 1489 | // newsletter thread pointer |
---|
| 1490 | struct stimerthread* newsletterthread; |
---|
[16998] | 1491 | // thumb thread pointer |
---|
[16683] | 1492 | struct stimerthread* thumbthread; |
---|
[16998] | 1493 | // rectimer thread |
---|
| 1494 | struct stimerthread* rectimerthread; |
---|
[14636] | 1495 | // rguid sock filedescriptor for rguid |
---|
| 1496 | int rguidfd; |
---|
[7557] | 1497 | struct service* aktservice; |
---|
[7606] | 1498 | struct service* lastservice; |
---|
[20871] | 1499 | struct service* pipservice; |
---|
[7734] | 1500 | struct channel* markedchannel; |
---|
[13284] | 1501 | //if we are in a epg screen, this is the showen channel |
---|
| 1502 | struct channel* epgchannel; |
---|
[7583] | 1503 | char* configfile; |
---|
[7765] | 1504 | // for bouquet channel numbering |
---|
[7670] | 1505 | int bouquetnr[MAXSERVICETYPE]; |
---|
| 1506 | int servicetype; |
---|
[7746] | 1507 | struct shutdowntimer *sd_timer; |
---|
[7765] | 1508 | // akt pos in channel cache |
---|
[7763] | 1509 | int channelcachepos; |
---|
[7791] | 1510 | // aktivate/deaktivate auto updatevfd |
---|
| 1511 | int updatevfd; |
---|
[8226] | 1512 | // count for recording |
---|
| 1513 | int recording; |
---|
[8964] | 1514 | // count for streaming |
---|
| 1515 | int streaming; |
---|
[34811] | 1516 | // pvr allowed = 1, disable = 0 |
---|
| 1517 | int pvr; |
---|
[20414] | 1518 | // timeshift running = 1, ending = 2 |
---|
[9630] | 1519 | int timeshift; |
---|
[20407] | 1520 | // 0 = normal, 1 = permanent timeshift |
---|
| 1521 | int timeshifttype; |
---|
[20477] | 1522 | // position in timeshiftfile to seek |
---|
| 1523 | off64_t timeshiftpos; |
---|
[20505] | 1524 | // ask if timeshift is running and switch channel |
---|
| 1525 | int asktimeshift; |
---|
[9713] | 1526 | // ts playing running = 1 |
---|
| 1527 | int playing; |
---|
[8247] | 1528 | // if set to a skin (screenpointer) only this screen has rc |
---|
| 1529 | struct skin* rcowner; |
---|
[22985] | 1530 | struct skin* rcstandby; |
---|
[9557] | 1531 | // timerstuktur fuer autores |
---|
| 1532 | struct stimerthread* restimer; |
---|
[13536] | 1533 | // spindown USB/HDD |
---|
[9732] | 1534 | struct hddparm hdd[3]; |
---|
[11127] | 1535 | struct stimerthread* addhddall; |
---|
[13536] | 1536 | // save old rotor position |
---|
[12591] | 1537 | int rotoroldorbitalpos; |
---|
[13035] | 1538 | // security check |
---|
| 1539 | int security; |
---|
[13536] | 1540 | // set to 1 if tvpic size is changed |
---|
| 1541 | int tvpic; |
---|
[13635] | 1542 | // timestamp for rc action |
---|
| 1543 | time_t lastrcaction; |
---|
[13802] | 1544 | // show timeline in channellist for each channel |
---|
| 1545 | int showchanneltimeline; |
---|
[13961] | 1546 | // see player.h for details |
---|
| 1547 | int playercan; |
---|
[13963] | 1548 | //Code von infobar.h aktiv = 1 |
---|
| 1549 | int infobaraktiv; |
---|
| 1550 | //Name der Datei die abgespielt wird |
---|
| 1551 | char* playfile; |
---|
[13983] | 1552 | //Code MC aktiv = 1 |
---|
| 1553 | int mcaktiv; |
---|
[14083] | 1554 | //greater 0 aktivate screen animation |
---|
| 1555 | int screenanim; |
---|
[14225] | 1556 | int screenanimspeed; |
---|
[14186] | 1557 | //for auto increase audio vol |
---|
| 1558 | int volautochange; |
---|
| 1559 | int volautochangevalue; |
---|
[14263] | 1560 | //for powerofftimer |
---|
| 1561 | time_t fixpowerofftime; |
---|
[14705] | 1562 | //for write FB in File |
---|
| 1563 | int write_png; |
---|
| 1564 | int write_jpg; |
---|
[15006] | 1565 | //holds oversize value for blitter |
---|
| 1566 | int leftoffset; |
---|
| 1567 | int rightoffset; |
---|
| 1568 | int topoffset; |
---|
| 1569 | int bottomoffset; |
---|
[15271] | 1570 | //background picture for all screens |
---|
| 1571 | char* bgpic; |
---|
[15580] | 1572 | //time for next picmem timeout check |
---|
| 1573 | time_t picmemtimeout; |
---|
[20873] | 1574 | time_t defpicmemtimeout; |
---|
[15580] | 1575 | //show not tunable channel hidden (0)) or deaktive (1) in channellist |
---|
| 1576 | int channellistview; |
---|
[15724] | 1577 | //for blockmove in channellist |
---|
| 1578 | int moveblockcount; |
---|
[16069] | 1579 | //name ob file who played from webig |
---|
| 1580 | char* webplayfile; |
---|
[16273] | 1581 | //status of mediadbthread |
---|
| 1582 | int mediadbthreadstatus; |
---|
[19017] | 1583 | //for save mediadb in scan |
---|
[16796] | 1584 | time_t mediadbsavetime; |
---|
[17221] | 1585 | //colors / pic for selection |
---|
| 1586 | long markcol; |
---|
| 1587 | long filelistselectcol; |
---|
| 1588 | long listboxselectcol; |
---|
| 1589 | char* selectpic; |
---|
[17902] | 1590 | //check if cam can decrypt channel |
---|
| 1591 | int checkcamdecrypt; |
---|
[18509] | 1592 | //don't send privat part of cadescriptor in capmt |
---|
| 1593 | int caskipprivat; |
---|
[18666] | 1594 | //send all caids or only caids cam can |
---|
| 1595 | int casendallcaids; |
---|
[18789] | 1596 | //show hidden files in filelist |
---|
| 1597 | int showhiddenfiles; |
---|
[18973] | 1598 | //mediadb |
---|
| 1599 | int mediadbfiles; |
---|
[19425] | 1600 | //show infobar on program change |
---|
| 1601 | int infobarprogram; |
---|
[19482] | 1602 | //for auto increase audio vol (mute) |
---|
| 1603 | int volmute; |
---|
[19640] | 1604 | int secondzap; |
---|
[19651] | 1605 | //pointer to marker for recordings |
---|
| 1606 | struct marker* playmarker; |
---|
[20233] | 1607 | int autosubtitle; |
---|
[20303] | 1608 | //save timeshift start time |
---|
| 1609 | time_t timeshiftstart; |
---|
[20669] | 1610 | int crosscontrol; |
---|
[20708] | 1611 | int autochangechannelname; |
---|
[20784] | 1612 | //tuxtext is running |
---|
| 1613 | int tuxtxt; |
---|
[20822] | 1614 | //on some fat32 hdd it takes very long to get free size |
---|
| 1615 | int showrecfreesize; |
---|
[22885] | 1616 | int firstunicablewait; |
---|
[23779] | 1617 | //path for imdbfolder |
---|
| 1618 | char* imdbfolderpath; |
---|
[23781] | 1619 | int virtualzap; |
---|
[23983] | 1620 | int fontsizeadjust; |
---|
[24696] | 1621 | //count for drawing screen |
---|
[24697] | 1622 | unsigned int drawscreencount; |
---|
[25645] | 1623 | int autoseek; |
---|
[28462] | 1624 | //skip all rc input events older than this value in millisec |
---|
| 1625 | int rcskipms; |
---|
[30557] | 1626 | //Workaround da ansonsten DVR4 nicht funktioniert (Treiberproblem) |
---|
| 1627 | int setdvr0; |
---|
[30771] | 1628 | #ifdef MIPSEL |
---|
| 1629 | //cec mipsel |
---|
| 1630 | int cec_fixedAddress; |
---|
| 1631 | int hdmiFd; |
---|
[31857] | 1632 | int webencode; |
---|
[31023] | 1633 | #endif |
---|
[31021] | 1634 | //pip Einstellungen |
---|
| 1635 | int pipzap; |
---|
[32072] | 1636 | // guest |
---|
| 1637 | int whilecount; |
---|
| 1638 | int sleepcount; |
---|
[32348] | 1639 | int stats; |
---|
[32072] | 1640 | char* url; |
---|
[34462] | 1641 | //externer plugin Aufruf |
---|
| 1642 | char* extplugin; |
---|
[35085] | 1643 | //node oled blinken |
---|
| 1644 | int skinblink; |
---|
[36554] | 1645 | //BCM accel interface |
---|
| 1646 | int bcm; |
---|
[36614] | 1647 | //Volume |
---|
| 1648 | int volume; |
---|
[37440] | 1649 | int screenshot; |
---|
[37766] | 1650 | // cacc |
---|
[37733] | 1651 | int certchecked; |
---|
| 1652 | int certok; |
---|
[37766] | 1653 | int liveslot; |
---|
[38592] | 1654 | // dynamic default skin infobar |
---|
| 1655 | int getepgaktstart; |
---|
| 1656 | int getepgaktend; |
---|
| 1657 | int getepgakttitle; |
---|
| 1658 | int getepgakttimeremaining; |
---|
| 1659 | int getepgnextstart; |
---|
| 1660 | int getepgnextend; |
---|
| 1661 | int getepgnexttitle; |
---|
| 1662 | int getepgnexttimeremaining; |
---|
[39278] | 1663 | // downmix switch in audio menu (audiotrack.h) |
---|
| 1664 | int downmix; |
---|
[39797] | 1665 | // channels for recording |
---|
| 1666 | struct channel* recchnode[9]; |
---|
[39988] | 1667 | // frontdev filedescriptor |
---|
| 1668 | int fdrc1; |
---|
[40739] | 1669 | // Anzah VideoDevs |
---|
| 1670 | int videodevs; |
---|
[7497] | 1671 | } status; |
---|
| 1672 | |
---|
| 1673 | struct fb |
---|
| 1674 | { |
---|
[7694] | 1675 | int dev; |
---|
[7497] | 1676 | char *name; |
---|
| 1677 | int fd; |
---|
| 1678 | unsigned char *fb; |
---|
[9527] | 1679 | unsigned long *fblong; |
---|
[7497] | 1680 | int width; |
---|
| 1681 | int height; |
---|
[8590] | 1682 | int pitch; |
---|
[7497] | 1683 | unsigned long fixfbsize; |
---|
| 1684 | unsigned long varfbsize; |
---|
| 1685 | int colbytes; |
---|
[36560] | 1686 | unsigned long data_phys; |
---|
[7497] | 1687 | struct fb *next; |
---|
| 1688 | }; |
---|
| 1689 | |
---|
[7906] | 1690 | struct rc |
---|
[7497] | 1691 | { |
---|
| 1692 | int key; |
---|
[16574] | 1693 | void (*rcfunc)(struct skin*, struct skin*, int screencalc, int filelistview, int flag); |
---|
[7497] | 1694 | struct skin *screen; |
---|
| 1695 | struct skin *screennode; |
---|
| 1696 | struct skin *owner; |
---|
| 1697 | struct rc *next; |
---|
| 1698 | }; |
---|
| 1699 | |
---|
[9044] | 1700 | struct clist |
---|
[7497] | 1701 | { |
---|
| 1702 | char *key; |
---|
| 1703 | char *value; |
---|
| 1704 | char *def; |
---|
| 1705 | char *tmp; |
---|
[9044] | 1706 | struct clist *next; |
---|
[7497] | 1707 | }; |
---|
| 1708 | |
---|
[7571] | 1709 | struct bouquet |
---|
| 1710 | { |
---|
[7639] | 1711 | int nr; |
---|
[7571] | 1712 | int serviceid; |
---|
[18431] | 1713 | uint64_t transponderid; |
---|
[7571] | 1714 | struct channel *channel; |
---|
[7652] | 1715 | struct bouquet *prev; |
---|
[7571] | 1716 | struct bouquet *next; |
---|
| 1717 | }; |
---|
| 1718 | |
---|
[22292] | 1719 | struct channelslot |
---|
| 1720 | { |
---|
| 1721 | int slot; |
---|
| 1722 | int serviceid; |
---|
| 1723 | uint64_t transponderid; |
---|
| 1724 | struct channelslot *next; |
---|
| 1725 | }; |
---|
| 1726 | |
---|
[7571] | 1727 | struct mainbouquet |
---|
| 1728 | { |
---|
| 1729 | char *name; |
---|
| 1730 | int type; |
---|
| 1731 | char *filename; |
---|
| 1732 | struct bouquet *bouquet; |
---|
[7652] | 1733 | struct mainbouquet *prev; |
---|
[7571] | 1734 | struct mainbouquet *next; |
---|
| 1735 | }; |
---|
| 1736 | |
---|
[7664] | 1737 | struct pic |
---|
| 1738 | { |
---|
| 1739 | char* name; |
---|
| 1740 | unsigned char* picbuf; |
---|
[9905] | 1741 | // < 0 when picbuf is normal mem (hw jpg) |
---|
| 1742 | int memfd; |
---|
[7664] | 1743 | unsigned long width; |
---|
| 1744 | unsigned long height; |
---|
| 1745 | unsigned long rowbytes; |
---|
| 1746 | int channels; |
---|
[15463] | 1747 | int timeout; |
---|
[15464] | 1748 | time_t lastaccess; |
---|
[7664] | 1749 | int del; |
---|
| 1750 | struct pic* next; |
---|
| 1751 | }; |
---|
| 1752 | |
---|
[7497] | 1753 | struct font |
---|
| 1754 | { |
---|
| 1755 | char *name; |
---|
| 1756 | FT_Error error; |
---|
| 1757 | FTC_Manager manager; |
---|
| 1758 | FTC_SBitCache cache; |
---|
| 1759 | FTC_ImageTypeRec desc; |
---|
| 1760 | FT_Face face; |
---|
| 1761 | FT_UInt prev_glyphindex; |
---|
| 1762 | FT_Bool use_kerning; |
---|
| 1763 | struct font *next; |
---|
| 1764 | }; |
---|
| 1765 | |
---|
[14732] | 1766 | //structure for write fb to File |
---|
| 1767 | struct writeFBfile |
---|
| 1768 | { |
---|
| 1769 | unsigned char* ActBuf; |
---|
| 1770 | unsigned char* buf1; |
---|
| 1771 | unsigned char* buf2; |
---|
| 1772 | } writeFBfile; |
---|
[7734] | 1773 | |
---|
[7728] | 1774 | struct eit |
---|
| 1775 | { |
---|
| 1776 | u_char table_id /*:8*/; |
---|
| 1777 | u_char section_length_hi :4; |
---|
| 1778 | u_char :3; |
---|
| 1779 | u_char section_syntax_indicator :1; |
---|
| 1780 | u_char section_length_lo /*:8*/; |
---|
| 1781 | u_char service_id_hi /*:8*/; |
---|
| 1782 | u_char service_id_lo /*:8*/; |
---|
| 1783 | u_char current_next_indicator :1; |
---|
| 1784 | u_char version_number :5; |
---|
| 1785 | u_char :2; |
---|
| 1786 | u_char section_number /*:8*/; |
---|
| 1787 | u_char last_section_number /*:8*/; |
---|
| 1788 | u_char transport_stream_id_hi /*:8*/; |
---|
| 1789 | u_char transport_stream_id_lo /*:8*/; |
---|
| 1790 | u_char original_network_id_hi /*:8*/; |
---|
| 1791 | u_char original_network_id_lo /*:8*/; |
---|
| 1792 | u_char segment_last_section_number /*:8*/; |
---|
| 1793 | u_char segment_last_table_id /*:8*/; |
---|
| 1794 | u_char data[]; /* struct eitevent */ |
---|
| 1795 | }; |
---|
| 1796 | #define EITLEN sizeof(struct eit) |
---|
[7734] | 1797 | #define GETEITSECLEN(x) HILO(((struct eit*)(x))->section_length) |
---|
[7728] | 1798 | |
---|
| 1799 | struct eitevent |
---|
| 1800 | { |
---|
| 1801 | u_char event_id_hi /*:8*/; |
---|
| 1802 | u_char event_id_lo /*:8*/; |
---|
| 1803 | u_char mjd_hi /*:8*/; |
---|
| 1804 | u_char mjd_lo /*:8*/; |
---|
| 1805 | u_char start_time_h /*:8*/; |
---|
| 1806 | u_char start_time_m /*:8*/; |
---|
| 1807 | u_char start_time_s /*:8*/; |
---|
| 1808 | u_char duration_h /*:8*/; |
---|
| 1809 | u_char duration_m /*:8*/; |
---|
| 1810 | u_char duration_s /*:8*/; |
---|
| 1811 | u_char descriptors_loop_length_hi :4; |
---|
| 1812 | u_char free_ca_mode :1; |
---|
| 1813 | u_char running_status :3; |
---|
| 1814 | u_char descriptors_loop_length_lo /*:8*/; |
---|
| 1815 | u_char data[]; |
---|
| 1816 | }; |
---|
| 1817 | #define EITEVENTLEN sizeof(struct eitevent) |
---|
[7734] | 1818 | #define GETEITDESCLEN(x) HILO(((struct eitevent *)x)->descriptors_loop_length) |
---|
[7728] | 1819 | |
---|
| 1820 | struct eitshortevent |
---|
| 1821 | { |
---|
| 1822 | u_char descriptor_tag /*:8*/; |
---|
| 1823 | u_char descriptor_length /*:8*/; |
---|
| 1824 | u_char lang_code1 /*:8*/; |
---|
| 1825 | u_char lang_code2 /*:8*/; |
---|
| 1826 | u_char lang_code3 /*:8*/; |
---|
| 1827 | u_char event_name_length /*:8*/; |
---|
| 1828 | u_char data[]; |
---|
| 1829 | }; |
---|
| 1830 | #define EITSHORTEVENTLEN sizeof(struct eitshortevent) |
---|
| 1831 | |
---|
| 1832 | struct eitlongevent |
---|
| 1833 | { |
---|
| 1834 | u_char descriptor_tag /*:8*/; |
---|
| 1835 | u_char descriptor_length /*:8*/; |
---|
| 1836 | u_char last_descriptor_number :4; |
---|
| 1837 | u_char descriptor_number :4; |
---|
| 1838 | u_char lang_code1 /*:8*/; |
---|
| 1839 | u_char lang_code2 /*:8*/; |
---|
| 1840 | u_char lang_code3 /*:8*/; |
---|
| 1841 | u_char length_of_items /*:8*/; |
---|
| 1842 | u_char data[]; /* struct eitlongeventitem */ |
---|
| 1843 | }; |
---|
| 1844 | #define EITLONGEVENTLEN sizeof(struct eitlongevent) |
---|
| 1845 | |
---|
| 1846 | struct eitlongeventitem |
---|
| 1847 | { |
---|
| 1848 | u_char item_description_length /*:8*/; |
---|
| 1849 | u_char data[]; |
---|
| 1850 | }; |
---|
| 1851 | #define EITLONGEVENTITEMLEN sizeof(struct eitlongeventitem) |
---|
| 1852 | |
---|
[9572] | 1853 | struct eitlinkage |
---|
| 1854 | { |
---|
[19065] | 1855 | u_char descriptor_tag /*:8*/; |
---|
| 1856 | u_char descriptor_length /*:8*/; |
---|
| 1857 | u_char transport_stream_id_hi /*:8*/; |
---|
| 1858 | u_char transport_stream_id_lo /*:8*/; |
---|
| 1859 | u_char original_network_id_hi /*:8*/; |
---|
| 1860 | u_char original_network_id_lo /*:8*/; |
---|
| 1861 | u_char service_id_hi /*:8*/; |
---|
| 1862 | u_char service_id_lo /*:8*/; |
---|
| 1863 | u_char linkage_type /*:8*/; |
---|
[9572] | 1864 | }; |
---|
| 1865 | #define EITLLINKAGELEN sizeof(struct eitlinkage) |
---|
| 1866 | |
---|
[10314] | 1867 | struct parentalrating |
---|
| 1868 | { |
---|
| 1869 | u_char descriptor_tag /*:8*/; |
---|
| 1870 | u_char descriptor_length /*:8*/; |
---|
| 1871 | u_char data[]; //struct parental_rating_item |
---|
| 1872 | }; |
---|
| 1873 | #define PARENTALRATINGLEN sizeof(struct parentalrating) |
---|
| 1874 | |
---|
| 1875 | struct parentalratingitem |
---|
| 1876 | { |
---|
[13332] | 1877 | u_char lang_code1 /*:8*/; |
---|
| 1878 | u_char lang_code2 /*:8*/; |
---|
| 1879 | u_char lang_code3 /*:8*/; |
---|
| 1880 | u_char rating /*:8*/; |
---|
[10314] | 1881 | }; |
---|
| 1882 | #define PARENTALRATINGITEMLEN sizeof(struct parentalratingitem) |
---|
| 1883 | |
---|
[13332] | 1884 | struct rst //table id 0x71 |
---|
| 1885 | { |
---|
| 1886 | u_char table_id /*:8*/; |
---|
| 1887 | u_char section_syntax_indicator :1; |
---|
| 1888 | u_char reserved_1 :1; |
---|
| 1889 | u_char reserved_2 :2; |
---|
| 1890 | u_int section_length :12; |
---|
| 1891 | }; |
---|
| 1892 | #define RSTLEN sizeof(struct rst) |
---|
| 1893 | |
---|
| 1894 | struct rstitem |
---|
| 1895 | { |
---|
| 1896 | u_char transponder_stream_id_hi /*:8*/; |
---|
| 1897 | u_char transponder_stream_id_lo /*:8*/; |
---|
| 1898 | u_char original_network_id_hi /*:8*/; |
---|
| 1899 | u_char original_network_id_lo /*:8*/; |
---|
| 1900 | u_char service_id_hi /*:8*/; |
---|
| 1901 | u_char service_id_lo /*:8*/; |
---|
| 1902 | u_char event_id_hi /*:8*/; |
---|
| 1903 | u_char event_id_lo /*:8*/; |
---|
| 1904 | u_char reserved_1 :5; |
---|
| 1905 | u_char running_status :3; |
---|
| 1906 | }; |
---|
| 1907 | #define RSTITEMLEN sizeof(struct rstitem) |
---|
| 1908 | |
---|
[19065] | 1909 | struct mhwchannel |
---|
| 1910 | { |
---|
| 1911 | u_char network_id_hi; |
---|
| 1912 | u_char network_id_lo; |
---|
| 1913 | u_char transponder_id_hi; |
---|
| 1914 | u_char transponder_id_lo; |
---|
| 1915 | u_char channel_id_hi; |
---|
| 1916 | u_char channel_id_lo; |
---|
| 1917 | u_char name[16]; |
---|
| 1918 | }; |
---|
| 1919 | #define MHWCHANNELLEN sizeof(struct mhwchannel) |
---|
[16556] | 1920 | |
---|
[19065] | 1921 | struct mhwtitle |
---|
| 1922 | { |
---|
| 1923 | u_char table_id :8; |
---|
| 1924 | u_char section_length_hi :4; |
---|
| 1925 | u_char :2; |
---|
| 1926 | u_char dummy :1; |
---|
| 1927 | u_char section_syntax_indicator :1; |
---|
| 1928 | u_char section_length_lo :8; |
---|
| 1929 | u_char channel_id :8; |
---|
| 1930 | u_char theme_id :8; |
---|
| 1931 | u_char hours :5; |
---|
| 1932 | u_char day :3; |
---|
| 1933 | u_char summary_available :1; |
---|
| 1934 | u_char :1; |
---|
| 1935 | u_char minutes :6; |
---|
| 1936 | u_char :8; |
---|
| 1937 | u_char :8; |
---|
| 1938 | u_char duration_hi :8; |
---|
| 1939 | u_char duration_lo :8; |
---|
| 1940 | u_char title [23]; |
---|
| 1941 | u_char ppv_id_hi :8; |
---|
| 1942 | u_char ppv_id_mh :8; |
---|
| 1943 | u_char ppv_id_ml :8; |
---|
| 1944 | u_char ppv_id_lo :8; |
---|
| 1945 | u_char program_id_hi :8; |
---|
| 1946 | u_char program_id_mh :8; |
---|
| 1947 | u_char program_id_ml :8; |
---|
| 1948 | u_char program_id_lo :8; |
---|
| 1949 | u_char :8; |
---|
| 1950 | u_char :8; |
---|
| 1951 | u_char :8; |
---|
| 1952 | u_char :8; |
---|
| 1953 | }; |
---|
| 1954 | #define MHWTITLELEN sizeof(struct mhwtitle) |
---|
| 1955 | |
---|
| 1956 | struct mhwsummary |
---|
| 1957 | { |
---|
| 1958 | u_char table_id :8; |
---|
| 1959 | u_char section_length_hi :4; |
---|
| 1960 | u_char :2; |
---|
| 1961 | u_char dummy :1; |
---|
| 1962 | u_char section_syntax_indicator :1; |
---|
| 1963 | u_char section_length_lo :8; |
---|
| 1964 | u_char program_id_hi :8; |
---|
| 1965 | u_char program_id_mh :8; |
---|
| 1966 | u_char program_id_ml :8; |
---|
| 1967 | u_char program_id_lo :8; |
---|
| 1968 | u_char :8; |
---|
| 1969 | u_char :8; |
---|
| 1970 | u_char :8; |
---|
| 1971 | u_char nb_replays :8; |
---|
| 1972 | }; |
---|
| 1973 | #define MHWSUMMARYLEN sizeof(struct mhwsummary) |
---|
| 1974 | |
---|
[19249] | 1975 | struct mhw2channel |
---|
| 1976 | { |
---|
| 1977 | u_char network_id_hi; |
---|
| 1978 | u_char network_id_lo; |
---|
| 1979 | u_char transponder_id_hi; |
---|
| 1980 | u_char transponder_id_lo; |
---|
| 1981 | u_char channel_id_hi; |
---|
| 1982 | u_char channel_id_lo; |
---|
[19275] | 1983 | u_char :8; |
---|
| 1984 | u_char :8; |
---|
[19249] | 1985 | }; |
---|
| 1986 | |
---|
[19309] | 1987 | struct extepgcache |
---|
[19269] | 1988 | { |
---|
| 1989 | long id; |
---|
| 1990 | struct epg* epgnode; |
---|
[19309] | 1991 | struct extepgcache* next; |
---|
[19269] | 1992 | }; |
---|
| 1993 | |
---|
[19309] | 1994 | struct extepgchannel |
---|
| 1995 | { |
---|
| 1996 | long id; |
---|
| 1997 | int serviceid; |
---|
| 1998 | uint64_t transponderid; |
---|
| 1999 | struct extepgchannel* next; |
---|
| 2000 | }; |
---|
| 2001 | |
---|
| 2002 | struct extepgconfig |
---|
| 2003 | { |
---|
| 2004 | uint64_t transponderid; |
---|
| 2005 | int type; |
---|
| 2006 | char* file; |
---|
| 2007 | int channelpid; |
---|
[19339] | 2008 | int titlepid[8]; |
---|
| 2009 | int summarypid[8]; |
---|
[19309] | 2010 | struct extepgconfig* next; |
---|
| 2011 | }; |
---|
| 2012 | |
---|
[16504] | 2013 | struct blacklist |
---|
| 2014 | { |
---|
| 2015 | char* file; |
---|
| 2016 | struct splitstr* splitstr; |
---|
| 2017 | int count; |
---|
| 2018 | }; |
---|
[16556] | 2019 | |
---|
[22527] | 2020 | typedef struct sci_modes |
---|
| 2021 | { |
---|
| 2022 | int emv2000; |
---|
| 2023 | int dma; |
---|
| 2024 | int man_act; |
---|
| 2025 | int rw_mode; |
---|
| 2026 | } scimodes; |
---|
| 2027 | |
---|
| 2028 | typedef struct sci_parameters |
---|
| 2029 | { |
---|
| 2030 | u_char T; |
---|
| 2031 | unsigned long fs; |
---|
| 2032 | unsigned long ETU; |
---|
| 2033 | unsigned long WWT; |
---|
| 2034 | unsigned long CWT; |
---|
| 2035 | unsigned long BWT; |
---|
| 2036 | unsigned long EGT; |
---|
| 2037 | unsigned long clock_stop_polarity; |
---|
| 2038 | u_char check; |
---|
| 2039 | u_char P; |
---|
| 2040 | u_char I; |
---|
| 2041 | u_char U; |
---|
| 2042 | } sciparameters; |
---|
| 2043 | |
---|
[30310] | 2044 | struct update |
---|
| 2045 | { |
---|
| 2046 | char* auth; |
---|
| 2047 | char* type; |
---|
| 2048 | char* skinname; |
---|
| 2049 | char* filemask; |
---|
| 2050 | char* filepath; |
---|
| 2051 | int imgtype; |
---|
| 2052 | }; |
---|
| 2053 | |
---|
[41669] | 2054 | struct musicdat |
---|
| 2055 | { |
---|
[41794] | 2056 | char* dummy; |
---|
[41669] | 2057 | char* thumb; |
---|
| 2058 | char* title; |
---|
| 2059 | char* album; |
---|
| 2060 | char* realname; |
---|
| 2061 | char* actors; |
---|
| 2062 | char* genre; |
---|
| 2063 | char* year; |
---|
[41685] | 2064 | int act; |
---|
[41669] | 2065 | } musicdat; |
---|
| 2066 | |
---|
[30678] | 2067 | #ifdef EPLAYER4 |
---|
| 2068 | typedef enum { stUnknown, stPlainText, stSSA, stASS, stSRT, stVOB, stPGS } subtype_t; |
---|
| 2069 | typedef enum {atUnknown, atMPEG, atMP3, atAC3, atDTS, atAAC, atPCM, atOGG, atFLAC, atWMA} audiotype_t; |
---|
[30714] | 2070 | typedef struct _CustomData { |
---|
| 2071 | //typedef struct CustomData { |
---|
[30716] | 2072 | GstElement *playbin2; /* Our one and only element */ |
---|
[30698] | 2073 | |
---|
| 2074 | gint n_video; /* Number of embedded video streams */ |
---|
| 2075 | gint n_audio; /* Number of embedded audio streams */ |
---|
| 2076 | gint n_text; /* Number of embedded subtitle streams */ |
---|
| 2077 | |
---|
| 2078 | gint current_video; /* Currently playing video stream */ |
---|
| 2079 | gint current_audio; /* Currently playing audio stream */ |
---|
| 2080 | gint current_text; /* Currently playing subtitle stream */ |
---|
| 2081 | |
---|
[30678] | 2082 | gboolean is_live; |
---|
| 2083 | GstElement *pipeline; |
---|
| 2084 | GMainLoop *loop; |
---|
| 2085 | } CustomData; |
---|
[30698] | 2086 | |
---|
| 2087 | typedef enum { |
---|
| 2088 | GST_PLAY_FLAG_VIDEO = (1 << 0), |
---|
| 2089 | GST_PLAY_FLAG_AUDIO = (1 << 1), |
---|
| 2090 | GST_PLAY_FLAG_TEXT = (1 << 2), |
---|
| 2091 | GST_PLAY_FLAG_NATIVE_VIDEO = (1 << 3) |
---|
| 2092 | } GstPlayFlags; |
---|
[7497] | 2093 | #endif |
---|
[30678] | 2094 | |
---|
[30771] | 2095 | #ifdef MIPSEL |
---|
| 2096 | //fuer cec Mipsel |
---|
[39259] | 2097 | |
---|
| 2098 | #ifdef DREAMBOX |
---|
[30771] | 2099 | struct cec_message |
---|
| 2100 | { |
---|
[39259] | 2101 | unsigned char address; |
---|
| 2102 | unsigned char data[16]; |
---|
| 2103 | unsigned char length; |
---|
| 2104 | unsigned char flag; |
---|
| 2105 | }__attribute__((packed)); |
---|
| 2106 | struct cec_rx_message |
---|
| 2107 | { |
---|
| 2108 | unsigned char address; |
---|
| 2109 | unsigned char destination; |
---|
| 2110 | unsigned char data[16]; |
---|
| 2111 | unsigned char length; |
---|
| 2112 | }__attribute__((packed)); |
---|
| 2113 | |
---|
| 2114 | |
---|
| 2115 | #else |
---|
| 2116 | struct cec_message |
---|
| 2117 | { |
---|
[30771] | 2118 | unsigned char address; |
---|
| 2119 | unsigned char length; |
---|
| 2120 | unsigned char data[256]; |
---|
| 2121 | }__attribute__((packed)); |
---|
[40418] | 2122 | struct cec_rx_message |
---|
| 2123 | { |
---|
| 2124 | unsigned char address; |
---|
| 2125 | unsigned char destination; |
---|
| 2126 | unsigned char data[16]; |
---|
| 2127 | unsigned char length; |
---|
| 2128 | }__attribute__((packed)); |
---|
[39259] | 2129 | #endif |
---|
[30771] | 2130 | |
---|
| 2131 | unsigned char cec_physicalAddress[2]; |
---|
| 2132 | unsigned char cec_logicalAddress; |
---|
| 2133 | unsigned char cec_deviceType; |
---|
[31357] | 2134 | |
---|
[30678] | 2135 | #endif |
---|
[30771] | 2136 | |
---|
[37766] | 2137 | // cacc |
---|
[37786] | 2138 | /* CI+ certificates */ |
---|
| 2139 | |
---|
| 2140 | struct cert_ctx { |
---|
| 2141 | X509_STORE *store; |
---|
| 2142 | |
---|
| 2143 | /* Host */ |
---|
| 2144 | X509 *cust_cert; |
---|
| 2145 | X509 *device_cert; |
---|
| 2146 | |
---|
| 2147 | /* Module */ |
---|
| 2148 | X509 *ci_cust_cert; |
---|
| 2149 | X509 *ci_device_cert; |
---|
| 2150 | }; |
---|
| 2151 | |
---|
[39294] | 2152 | #ifdef MIPSEL |
---|
[37769] | 2153 | enum ca_descr_data_type { |
---|
| 2154 | CA_DATA_IV, |
---|
| 2155 | CA_DATA_KEY, |
---|
| 2156 | }; |
---|
| 2157 | |
---|
| 2158 | enum ca_descr_parity { |
---|
| 2159 | CA_PARITY_EVEN, |
---|
| 2160 | CA_PARITY_ODD, |
---|
| 2161 | }; |
---|
| 2162 | |
---|
| 2163 | struct ca_descr_data { |
---|
| 2164 | unsigned int index; |
---|
| 2165 | enum ca_descr_parity parity; |
---|
| 2166 | enum ca_descr_data_type data_type; |
---|
| 2167 | unsigned int length; |
---|
| 2168 | unsigned char *data; |
---|
| 2169 | }; |
---|
| 2170 | |
---|
| 2171 | #endif |
---|
| 2172 | |
---|
[39294] | 2173 | #ifdef SH4NEW |
---|
| 2174 | enum ca_descr_data_type { |
---|
| 2175 | CA_DATA_IV, |
---|
| 2176 | CA_DATA_KEY, |
---|
| 2177 | }; |
---|
| 2178 | |
---|
| 2179 | enum ca_descr_parity { |
---|
| 2180 | CA_PARITY_EVEN, |
---|
| 2181 | CA_PARITY_ODD, |
---|
| 2182 | }; |
---|
| 2183 | |
---|
| 2184 | struct ca_descr_data { |
---|
| 2185 | unsigned int index; |
---|
| 2186 | enum ca_descr_parity parity; |
---|
| 2187 | enum ca_descr_data_type data_type; |
---|
| 2188 | unsigned int length; |
---|
| 2189 | unsigned char *data; |
---|
| 2190 | }; |
---|
| 2191 | |
---|
| 2192 | #endif |
---|
| 2193 | |
---|
[42624] | 2194 | #ifdef SIMULATE |
---|
| 2195 | enum ca_descr_data_type { |
---|
| 2196 | CA_DATA_IV, |
---|
| 2197 | CA_DATA_KEY, |
---|
| 2198 | }; |
---|
| 2199 | |
---|
| 2200 | enum ca_descr_parity { |
---|
| 2201 | CA_PARITY_EVEN, |
---|
| 2202 | CA_PARITY_ODD, |
---|
| 2203 | }; |
---|
| 2204 | |
---|
| 2205 | struct ca_descr_data { |
---|
| 2206 | unsigned int index; |
---|
| 2207 | enum ca_descr_parity parity; |
---|
| 2208 | enum ca_descr_data_type data_type; |
---|
| 2209 | unsigned int length; |
---|
| 2210 | unsigned char *data; |
---|
| 2211 | }; |
---|
| 2212 | |
---|
| 2213 | #endif |
---|
| 2214 | |
---|
[37719] | 2215 | struct aes_xcbc_mac_ctx { |
---|
| 2216 | uint8_t K[3][16]; |
---|
| 2217 | uint8_t IV[16]; |
---|
| 2218 | AES_KEY key; |
---|
| 2219 | int buflen; |
---|
| 2220 | }; |
---|
| 2221 | |
---|
[37769] | 2222 | uint32_t datatype_sizes[MAX_ELEMENTS] = { |
---|
| 2223 | 0, 50, 0, 0, 0, 8, 8, 0, |
---|
| 2224 | 0, 0, 0, 0, 32, 256, 256, 0, |
---|
| 2225 | 0, 256, 256, 32, 8, 8, 32, 32, |
---|
| 2226 | 0, 8, 2, 32, 1, 32, 1, 0, |
---|
| 2227 | 32 |
---|
| 2228 | }; |
---|
| 2229 | |
---|
| 2230 | struct element { |
---|
| 2231 | uint8_t *data; |
---|
| 2232 | uint32_t size; |
---|
| 2233 | /* buffer valid */ |
---|
| 2234 | int valid; |
---|
| 2235 | }; |
---|
| 2236 | |
---|
| 2237 | struct cc_ctrl_data { |
---|
| 2238 | /* parent */ |
---|
| 2239 | struct caslot* slot; |
---|
| 2240 | |
---|
| 2241 | /* ci+ credentials */ |
---|
| 2242 | struct element elements[MAX_ELEMENTS]; |
---|
| 2243 | |
---|
| 2244 | /* DHSK */ |
---|
| 2245 | uint8_t dhsk[256]; |
---|
| 2246 | |
---|
| 2247 | /* KS_host */ |
---|
| 2248 | uint8_t ks_host[32]; |
---|
| 2249 | |
---|
| 2250 | /* derived keys */ |
---|
| 2251 | uint8_t sek[16]; |
---|
| 2252 | uint8_t sak[16]; |
---|
| 2253 | |
---|
| 2254 | /* AKH checks - module performs 5 tries to get correct AKH */ |
---|
| 2255 | unsigned int akh_index; |
---|
| 2256 | |
---|
| 2257 | /* authentication data */ |
---|
| 2258 | uint8_t dh_exp[256]; |
---|
| 2259 | |
---|
| 2260 | /* certificates */ |
---|
| 2261 | struct cert_ctx *cert_ctx; |
---|
| 2262 | |
---|
| 2263 | /* private key of device-cert */ |
---|
| 2264 | RSA *rsa_device_key; |
---|
| 2265 | }; |
---|
| 2266 | |
---|
[30771] | 2267 | #endif |
---|