[18190] | 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 | |
---|
| 8 | #ifndef HEADER_H |
---|
| 9 | #define HEADER_H |
---|
[37719] | 10 | |
---|
[39304] | 11 | |
---|
[37769] | 12 | // ca.h |
---|
| 13 | void sendSPDU(struct dvbdev* dvbnode, unsigned char tag, void *data, int len, int sessionnr, void *apdu, int alen); |
---|
[37719] | 14 | |
---|
[37769] | 15 | // cacc.a |
---|
[37719] | 16 | void hexdump(const uint8_t *data, unsigned int len); |
---|
| 17 | int parseLengthField(const unsigned char *pkt, int *len); |
---|
| 18 | int get_random(unsigned char *dest, int len); |
---|
| 19 | int add_padding(uint8_t *dest, unsigned int len, unsigned int blocklen); |
---|
| 20 | void str2bin(uint8_t *dst, char *data, int len); |
---|
| 21 | uint32_t UINT32(const uint8_t *in, unsigned int len); |
---|
| 22 | int BYTE32(uint8_t *dest, uint32_t val); |
---|
| 23 | int BYTE16(uint8_t *dest, uint16_t val); |
---|
| 24 | int dh_gen_exp(uint8_t *dest, int dest_len, uint8_t *dh_g, int dh_g_len, uint8_t *dh_p, int dh_p_len); |
---|
| 25 | int dh_mod_exp(uint8_t *dest, int dest_len, uint8_t *base, int base_len, uint8_t *mod, int mod_len, uint8_t *exp, int exp_len); |
---|
| 26 | int dh_dhph_signature(uint8_t *out, uint8_t *nonce, uint8_t *dhph, RSA *r); |
---|
| 27 | int descrambler_init(void); |
---|
| 28 | void descrambler_deinit(void); |
---|
| 29 | //bool descrambler_open(void); |
---|
| 30 | int descrambler_open(void); |
---|
| 31 | void descrambler_close(void); |
---|
| 32 | /* we don't use this for ci cam ! */ |
---|
| 33 | //int descrambler_set_pid(int index, int enable, int pid); |
---|
| 34 | int aes_xcbc_mac_init(struct aes_xcbc_mac_ctx *ctx, const uint8_t *key); |
---|
| 35 | int aes_xcbc_mac_process(struct aes_xcbc_mac_ctx *ctx, const uint8_t *in, unsigned int len); |
---|
| 36 | int aes_xcbc_mac_done(struct aes_xcbc_mac_ctx *ctx, uint8_t *out); |
---|
[37729] | 37 | int checkcerts(void); |
---|
[37740] | 38 | void ci_ccmgr_cc_open_cnf(struct dvbdev* dvbnode, int sessionnr); |
---|
| 39 | int ci_ccmgr_cc_data_initialize(struct dvbdev* dvbnode); |
---|
[37742] | 40 | int ci_ccmgr_cc_data_req(struct dvbdev* dvbnode, int sessionnr, uint8_t *data, unsigned int len); |
---|
| 41 | void ci_ccmgr_cc_sync_req(struct dvbdev* dvbnode, int sessionnr); |
---|
| 42 | int ci_ccmgr_cc_sac_data_req(struct dvbdev* dvbnode, int sessionnr, uint8_t *data, unsigned int len); |
---|
| 43 | int ci_ccmgr_cc_sac_send(struct dvbdev* dvbnode, int sessionnr, uint8_t *tag, uint8_t *data, unsigned int pos); |
---|
| 44 | void ci_ccmgr_cc_sac_sync_req(struct dvbdev* dvbnode, int sessionnr, uint8_t *data, unsigned int len); |
---|
[37785] | 45 | int descrambler_set_key(struct dvbdev* node, int index, int parity, unsigned char *data); |
---|
[37769] | 46 | int sendnullpmt(struct dvbdev* dvbnode, int sessionnr); |
---|
[37740] | 47 | |
---|
[36560] | 48 | //bcm.h |
---|
| 49 | void bcm_accel_fill(int dst_addr, int dst_width, int dst_height, int dst_stride, int x, int y, int width, int height, unsigned long color); |
---|
[36585] | 50 | void bcm_accel_blit(int src_addr, int src_width, int src_height, int src_stride, int src_format, int dst_addr, int dst_width, int dst_height, int dst_stride, int src_x, int src_y, int width, int height, int dst_x, int dst_y, int dwidth, int dheight, int pal_addr, int flags); |
---|
[18190] | 51 | |
---|
[32072] | 52 | //security.h |
---|
[32075] | 53 | void checkgthread(); |
---|
[32157] | 54 | int checkrealbox(char* box); |
---|
| 55 | int checkchipset(char* input); |
---|
[38487] | 56 | |
---|
[31759] | 57 | //encoder.h |
---|
| 58 | void encoderclose(struct dvbdev* node, int fd); |
---|
| 59 | |
---|
[30310] | 60 | // httpfunc.h |
---|
| 61 | char* webgetupdate(char* param, int fmt); |
---|
| 62 | |
---|
[30174] | 63 | //serviceinfo.h |
---|
| 64 | char* fegettypestr(struct dvbdev* dvbnode); |
---|
| 65 | |
---|
[28186] | 66 | //tunerconfig.h |
---|
| 67 | int screentunerreceptiondvbt(struct dvbdev* tuner); |
---|
| 68 | int screentunerreceptionhyprid(struct dvbdev* tuner); |
---|
[28951] | 69 | int screentunerreceptiondvbc(struct dvbdev* tuner); |
---|
[28186] | 70 | |
---|
[26472] | 71 | // mipselport.h |
---|
[26474] | 72 | int waitvsync(); |
---|
[26473] | 73 | void blit(); |
---|
[28649] | 74 | #ifdef MIPSEL |
---|
| 75 | void memcpy_word(char* dest, char* src, long anzw); |
---|
| 76 | void memcpy_byte(char* dest, char* src, long anzb); |
---|
| 77 | #endif |
---|
[26472] | 78 | |
---|
[27996] | 79 | // settings_mediabutton.h |
---|
| 80 | void screensettings_mediabutton(); |
---|
| 81 | |
---|
[25939] | 82 | // settings_pluginbutton.h |
---|
| 83 | void screensettings_pluginbutton(); |
---|
| 84 | |
---|
[25482] | 85 | // settings_overclocking.h |
---|
| 86 | void screensettings_overclocking(); |
---|
| 87 | |
---|
[25478] | 88 | // settings_autostart.h |
---|
| 89 | void screensettings_autostart_default(); |
---|
| 90 | void screensettings_autostart_audiovideo(); |
---|
| 91 | void screensettings_autostart_usb(); |
---|
| 92 | void screensettings_autostart_emu(); |
---|
| 93 | void screensettings_autostart_network(); |
---|
| 94 | void screensettings_autostart_safety(); |
---|
| 95 | |
---|
[24422] | 96 | //infobar.h |
---|
| 97 | void screeninfobar(); |
---|
| 98 | |
---|
[23307] | 99 | //copyfile.h |
---|
| 100 | int screencopy(char* title, char* from, char* to, int flag); |
---|
| 101 | |
---|
[22772] | 102 | //httpdfunc.h |
---|
| 103 | char* webrectimersend(char* param, int fmt); |
---|
[28384] | 104 | char* webgetparamvalue(char* param, char* searchparam); |
---|
[22772] | 105 | |
---|
[22484] | 106 | //hwtest.h |
---|
| 107 | void screenhwtest(); |
---|
| 108 | |
---|
[22369] | 109 | //colorpicker.h |
---|
[22387] | 110 | char* screencolorpicker(char* color, int screencalc, int filelistview, int flag); |
---|
[22369] | 111 | |
---|
[22354] | 112 | //epgscanlist.h |
---|
| 113 | struct epgscanlist* addepgscanlist(char *line, int count, struct epgscanlist* last); |
---|
| 114 | |
---|
[22302] | 115 | //channelslot.h |
---|
| 116 | int writechannelslot(char *filename); |
---|
| 117 | int delchannelslot(int serviceid, uint64_t transponderid); |
---|
| 118 | struct channelslot* addchannelslot(char *line, int count, struct channelslot* last); |
---|
[22328] | 119 | struct channelslot* getchannelslot(int serviceid, uint64_t transponderid); |
---|
[22302] | 120 | |
---|
[21302] | 121 | //fancontrol.h |
---|
[28782] | 122 | void screensettings_fancontrol(); |
---|
[30852] | 123 | #ifdef MIPSEL |
---|
| 124 | void screensettings_fancontrol2(); |
---|
| 125 | #endif |
---|
[21302] | 126 | |
---|
[21300] | 127 | //pip.h |
---|
| 128 | int pipstop(struct service *node, int flag); |
---|
| 129 | int pipstart(struct channel* chnode, char* pin, int flag); |
---|
| 130 | |
---|
[20860] | 131 | //bgdownload.h |
---|
| 132 | void screenbgdownload(); |
---|
[20952] | 133 | int startbgdownload(char* host, char* page, int port, char* filename, char* auth, int timeout, int flag); |
---|
[20860] | 134 | |
---|
[20768] | 135 | //log.h |
---|
| 136 | void screenlog(); |
---|
| 137 | |
---|
[20407] | 138 | //timeshiftsettings.h |
---|
| 139 | void screentimeshiftsettings(); |
---|
| 140 | |
---|
[19328] | 141 | //tpchoice.h |
---|
| 142 | struct transponder* tpchoicescreen(int orbitalpos, int flag); |
---|
| 143 | |
---|
[19313] | 144 | //extepg.h |
---|
[19323] | 145 | int readmhw(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
| 146 | int readmhw2(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
| 147 | int readopentv(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
[19261] | 148 | |
---|
[18947] | 149 | //mediadbedit.h |
---|
[18991] | 150 | void screenmediadbedit(char* file, int id, int flag); |
---|
[18947] | 151 | |
---|
[18838] | 152 | //shortepg.h |
---|
| 153 | void screenshortepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 154 | |
---|
| 155 | //dirsort.h |
---|
| 156 | int screendirsort(); |
---|
| 157 | |
---|
[19454] | 158 | // newsletter.h |
---|
[18767] | 159 | void screennewsletter(); |
---|
[19454] | 160 | void newsletterthreadfunc(struct stimerthread* self); |
---|
[30199] | 161 | int readnewsletter(); |
---|
| 162 | void freenewsletter(); |
---|
[18767] | 163 | |
---|
[18672] | 164 | //oldentry.h |
---|
[22573] | 165 | struct oldentry* addoldentry(void* entry, int type, time_t del, struct oldentry* last); |
---|
[18672] | 166 | void deloldentry(struct oldentry *entry, int flag); |
---|
| 167 | |
---|
[18663] | 168 | //id3.h |
---|
| 169 | struct id3tag* getid3(char* file, char* id, int flag); |
---|
[18674] | 170 | void freeid3(struct id3tag* node); |
---|
[18663] | 171 | |
---|
[18403] | 172 | //sh4port.h and other ports |
---|
| 173 | int videodiscontinuityskip(struct dvbdev* node, int flag); |
---|
| 174 | |
---|
| 175 | //system_infos.h |
---|
[18190] | 176 | void screensystem_infos(int mode); |
---|
[18403] | 177 | |
---|
| 178 | //system_infos_sysinfo.h |
---|
[18190] | 179 | void screensystem_infos_sysinfo(int mode); |
---|
| 180 | |
---|
[18403] | 181 | //textinputhist.h |
---|
| 182 | char* textinputhist(char* title, char* text, char* histname); |
---|
| 183 | |
---|
[18302] | 184 | //unicable.h |
---|
[18311] | 185 | void screenunicable(struct skin* loftype, struct skin* lofl, struct skin* lofh, struct skin* satcr, struct skin* satcrfrequ2); |
---|
[18190] | 186 | |
---|
| 187 | //rc4.h |
---|
| 188 | void rc4(char *data, size_t dlen, char *key, size_t klen); |
---|
| 189 | |
---|
| 190 | //md5.h |
---|
| 191 | char* MDString (char *string); |
---|
| 192 | char* MDFile (char *string); |
---|
| 193 | char* MDPrint (unsigned char digest[16]); |
---|
| 194 | |
---|
| 195 | //unlock.h |
---|
| 196 | void screenunlock(); |
---|
| 197 | |
---|
| 198 | //serial.h |
---|
| 199 | void screenserial(); |
---|
| 200 | |
---|
| 201 | //ocrypt.h |
---|
| 202 | unsigned char* oencrypt(char* pw, char* buf, int len); |
---|
| 203 | unsigned char* odecrypt(char* pw, char* buf, int len); |
---|
| 204 | |
---|
| 205 | //mediadbcache.h |
---|
| 206 | struct mediadb* getmediadb(char* path, char* file, int flag); |
---|
| 207 | |
---|
| 208 | //mediadbsettings.h |
---|
| 209 | void screenmediadbsettings(); |
---|
| 210 | |
---|
| 211 | //mediadb.h |
---|
[19018] | 212 | int writemediadb(const char *filename, struct mediadb* cmediadb); |
---|
[18190] | 213 | int delmediadbfilter(struct mediadbfilter* mnode, int flag); |
---|
[18941] | 214 | struct mediadb* createmediadb(struct mediadb* update, char* id, int type, char* title, char* year, char* released, char* runtime, char* genre, char* director, char* writer, char* actors, char* plot, char* poster, char* rating, char* votes, char* path, char* file, char* shortname, char* fileinfo, int flag, int postercount); |
---|
[18190] | 215 | void freemediadbcontent(struct mediadb* node); |
---|
| 216 | int findfiles(char* dirname, int type, int onlydir, int onlycount, int first); |
---|
| 217 | struct mediadbfilter* getlastmediadbfilter(struct mediadbfilter* node, int flag); |
---|
| 218 | void getmediadbcounts(int* video, int* audio, int* picture); |
---|
| 219 | int readmediadb(const char* filename, int type, int flag); |
---|
| 220 | void mediadbscan(); |
---|
| 221 | int createmediadbfilter(int type, char* search, int flag); |
---|
| 222 | struct mediadbfilter* getmediadbfilterrandom(int maxentry); |
---|
| 223 | int getmediadbfiltercount(); |
---|
| 224 | void freemediadbfilter(int flag); |
---|
| 225 | void freemediadb(int flag); |
---|
| 226 | void freemediadbcategory(int flag); |
---|
| 227 | int delmediadb(struct mediadb* mnode, int flag); |
---|
[18678] | 228 | void mediadbfindfilecb(char* path, char* file, int type, char* id, int flag); |
---|
[18967] | 229 | char* createshortname(char* file, int *isrec, int *iscam, int flag); |
---|
[18190] | 230 | |
---|
| 231 | //softcam.h |
---|
| 232 | void screensoftcam(); |
---|
| 233 | |
---|
| 234 | //system_mixed.h |
---|
| 235 | void screensystem_eraseswap(); |
---|
| 236 | void screensystem_wizard(); |
---|
| 237 | |
---|
| 238 | // info.h |
---|
| 239 | void screengetserial(); |
---|
[30174] | 240 | void screensystem_logs(int mode); |
---|
[18190] | 241 | |
---|
| 242 | //system_update.h |
---|
| 243 | void screensystem_update(int mode); |
---|
| 244 | |
---|
| 245 | //system_backup.h |
---|
| 246 | void screensystem_backup(); |
---|
| 247 | |
---|
| 248 | //system_backup_restore.h |
---|
| 249 | void screensystem_backup_restore(); |
---|
| 250 | |
---|
| 251 | //settings_bluebutton.h |
---|
| 252 | void screensettings_bluebutton(); |
---|
| 253 | |
---|
| 254 | //settings_redbutton.h |
---|
| 255 | void screensettings_redbutton(); |
---|
| 256 | |
---|
| 257 | //extensions.h |
---|
[28733] | 258 | void screenfeed(int flag); |
---|
[22606] | 259 | void screenextensions(int mode, char* path, char* defentry, int first); |
---|
[18190] | 260 | void screenextensions_check(int flag); |
---|
[30349] | 261 | char* gettpklog(char* installpath, int flag); |
---|
[18190] | 262 | |
---|
| 263 | //...port.h |
---|
| 264 | void fbsave(); |
---|
| 265 | void fbrestore(); |
---|
[24715] | 266 | int setencoding(struct channel* chnode, struct dvbdev* videonode); |
---|
[18190] | 267 | |
---|
| 268 | //mostzap.h |
---|
[18431] | 269 | struct mostzap* createmostzap(int serviceid, uint64_t transponderid); |
---|
[18190] | 270 | int writemostzap(const char *filename); |
---|
[18431] | 271 | int delmostzap(int serviceid, uint64_t transponderid, int flag); |
---|
[18190] | 272 | void mostzaptobouquet(struct mainbouquet* mbouquet); |
---|
| 273 | |
---|
| 274 | //thumb.h |
---|
| 275 | char* checkthumb(char* path, char* file); |
---|
| 276 | |
---|
| 277 | //dvdplayer.h |
---|
| 278 | int dvdstop(); |
---|
| 279 | int dvdsetfb(); |
---|
[20337] | 280 | void playerresetts(); |
---|
[24422] | 281 | void playerinit(int argc, char* argv[]); |
---|
[18190] | 282 | |
---|
| 283 | //channelhistory.h |
---|
| 284 | void delchannelhistory(struct channel* chnode); |
---|
| 285 | void addchannelhistory(struct channel* chnode, char* channellist); |
---|
| 286 | void screenchannelhistory(); |
---|
[24154] | 287 | void freechannelhistory(); |
---|
[18190] | 288 | |
---|
| 289 | //channellist.h |
---|
| 290 | int screenchannellist(struct channel** retchannel, char** retchannellist, int flag); |
---|
[34873] | 291 | int checkbouquet(struct channel* tmpchannel); |
---|
[18190] | 292 | |
---|
| 293 | //rguid.h |
---|
| 294 | void rguidthreadfunc(struct stimerthread* timernode); |
---|
| 295 | |
---|
| 296 | //inadyn.h |
---|
| 297 | void screennetwork_inadyn(); |
---|
| 298 | |
---|
| 299 | //epgsearch.h |
---|
[19490] | 300 | void screenepgsearch(char* text); |
---|
[18190] | 301 | |
---|
| 302 | //sock.h |
---|
[19884] | 303 | char* gethttp(char* host, char* page, int port, char* filename, char* auth, int timeout, struct download* dnode, int redirect); |
---|
[18190] | 304 | char *get_ip(char *host); |
---|
| 305 | int sockportopen(int *fd, char* ip, int port, int tout); |
---|
| 306 | void sockclose(int *fd); |
---|
| 307 | int socksend(int *fd, unsigned char* data, int count, int timeout); |
---|
| 308 | int sockread(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
| 309 | int sockcreate(int *fd, char* sockname, int maxconn); |
---|
| 310 | int sockaccept(int *fd, int flag); |
---|
[19839] | 311 | char* gethttpreal(char* host, char* page, int port, char* filename, char* auth, struct download* dnode, int redirect, char* header, long* clen, int timeout, int flag); |
---|
[18190] | 312 | int sockreceive(int *fd, unsigned char* data, int count, int timeout); |
---|
[19689] | 313 | void gethttpstruct(struct stimerthread* timernode, struct download* node, int flag); |
---|
[20906] | 314 | void gethttpstructmsg(struct stimerthread* timernode, struct download* node, int flag); |
---|
[18190] | 315 | |
---|
| 316 | //numinput.h |
---|
| 317 | char* numinput(char* title, char* num, char* mask, int isip); |
---|
| 318 | |
---|
| 319 | //frontenddev.h |
---|
| 320 | struct dvbdev* fegetdummy(); |
---|
[20356] | 321 | void settunerstatus(); |
---|
[30685] | 322 | struct dvb_frontend_info* fegetinfo(struct dvbdev* node, int fd); |
---|
[30882] | 323 | int feopen(struct dvbdev* node, char *fedev); |
---|
[40020] | 324 | void feclose(struct dvbdev* node, int fd); |
---|
[41160] | 325 | fe_status_t fereadstatus(struct dvbdev* node); |
---|
[18190] | 326 | |
---|
| 327 | //dvrdev.h |
---|
| 328 | void dvrclose(struct dvbdev* node, int fd); |
---|
| 329 | struct dvbdev* dvropen(struct dvbdev* fenode); |
---|
| 330 | |
---|
| 331 | //audiodev.h |
---|
| 332 | int audiopause(struct dvbdev* node); |
---|
| 333 | int audioplay(struct dvbdev* node); |
---|
| 334 | int audioclearbuffer(struct dvbdev* node); |
---|
[20767] | 335 | int audiostop(struct dvbdev* node); |
---|
[27962] | 336 | struct dvbdev* audioopen(int adapter); |
---|
[28132] | 337 | void audioclose(struct dvbdev* node, int fd); |
---|
[31202] | 338 | int audiosetmixer(struct dvbdev* node, int left, int right); |
---|
[18190] | 339 | |
---|
| 340 | //textinput.h |
---|
| 341 | char* textinput(char* title, char* text); |
---|
| 342 | |
---|
| 343 | //httpdsettings.h |
---|
| 344 | void screenhttpdsettings(); |
---|
| 345 | |
---|
| 346 | //help.h |
---|
| 347 | void screenhelp(struct skin* node); |
---|
| 348 | |
---|
| 349 | //restoredefault.h |
---|
| 350 | void screenrestoredefault(); |
---|
[21724] | 351 | void screenrestoredefaultchoice(); |
---|
[38905] | 352 | void screeneraseswap(); |
---|
| 353 | void screenrestoredefault_without_channelsettings(); |
---|
[18190] | 354 | |
---|
| 355 | //ca.h |
---|
| 356 | int getfreecasession(struct dvbdev* dvbnode, int type, int value); |
---|
| 357 | void caappmenu(struct dvbdev* dvbnode); |
---|
[37762] | 358 | void sendAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len); |
---|
[18190] | 359 | |
---|
| 360 | //cam.h |
---|
| 361 | int getcaservicebyslot(struct caslot* caslot, int flag); |
---|
| 362 | void caservicedel(struct service* snode, struct caslot* caslot); |
---|
| 363 | void sendcapmt(struct service* node, int clear, int flag); |
---|
| 364 | |
---|
| 365 | //gmultiepg.h |
---|
[20348] | 366 | int screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[20409] | 367 | int selectchannelgmepg(struct skin* listbox); |
---|
[18190] | 368 | |
---|
| 369 | //multiepg.h |
---|
[20348] | 370 | int screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[18190] | 371 | |
---|
| 372 | //harddisk.h |
---|
[22627] | 373 | int hddfsck(char* dev); |
---|
[18190] | 374 | void hddformat(char* dev, char* filesystem); |
---|
| 375 | int addhddall(); |
---|
| 376 | |
---|
| 377 | //autores.h |
---|
| 378 | void autoresthreadfunc(struct stimerthread* self, char* text, int timeout); |
---|
| 379 | void screenautores(char* text, int timeout, int flag); |
---|
| 380 | |
---|
| 381 | // timeshift.h |
---|
[20407] | 382 | void timeshiftpause(); |
---|
[18190] | 383 | void timeshiftstop(int flag); |
---|
| 384 | |
---|
| 385 | // keyaktions.h |
---|
| 386 | void keyactions(int key, int flag); |
---|
| 387 | void keyactions_setres(); |
---|
| 388 | |
---|
| 389 | //dmxdev.h |
---|
| 390 | struct dvbdev* dmxgetlast(int adapter); |
---|
| 391 | |
---|
| 392 | // harddisk.h |
---|
| 393 | char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng); |
---|
| 394 | |
---|
| 395 | // videodev.h |
---|
| 396 | int videoreadqwidth(struct dvbdev* node); |
---|
| 397 | int videofreeze(struct dvbdev* node); |
---|
| 398 | int videocontinue(struct dvbdev* node); |
---|
| 399 | int videofastforward(struct dvbdev* node, int frames); |
---|
| 400 | int videoclearbuffer(struct dvbdev* node); |
---|
| 401 | int videogetpts(struct dvbdev* node, uint64_t* pts); |
---|
[19974] | 402 | int videoslowmotion(struct dvbdev* node, int frames); |
---|
[20767] | 403 | int videostop(struct dvbdev* node, int clearscreen); |
---|
| 404 | int videoplay(struct dvbdev* node); |
---|
[24718] | 405 | int videosetencoding(struct dvbdev* node, int type); |
---|
| 406 | int videosetstreamtype(struct dvbdev* node, int type); |
---|
[18190] | 407 | |
---|
| 408 | // scan.h |
---|
[19525] | 409 | unsigned int satblindscan(struct stimerthread* timernode, int onlycalc); |
---|
| 410 | unsigned int cableblindscan(struct stimerthread* timernode, int onlycalc); |
---|
| 411 | unsigned int terrblindscan(struct stimerthread* timernode, int onlycalc); |
---|
[20633] | 412 | int findchannel(struct dvbdev* fenode, struct transponder* tpnode, unsigned char *buf, uint8_t* lastsecnr, struct skin* scan, struct skin* listbox, int ichangename, int flag); |
---|
[18190] | 413 | void screenscanconfig(int flag); |
---|
| 414 | |
---|
| 415 | // screensaver.h |
---|
| 416 | int showscreensaver(); |
---|
| 417 | int initscreensaver(); |
---|
| 418 | int deinitscreensaver(); |
---|
| 419 | |
---|
| 420 | // screensaveradjust.h |
---|
| 421 | void screenscreensaveradjust(); |
---|
| 422 | |
---|
| 423 | //dir.h |
---|
| 424 | char* screendir(char* path, char* mask, char* selection, int *dirrcret, char* ext, char* b1, int rc1, char* b2, int rc2, char* b3, int rc3, char* b4, int rc4, int width, int prozwidth, int height, int prozheight, int flag); |
---|
[24385] | 425 | char* screendirreal(char* path, char* mask, char* selection, int *dirrcret, char* ext, char* b1, int rc1, char* b2, int rc2, char* b3, int rc3, char* b4, int rc4, int width, int prozwidth, int height, int prozheight, int holdselection, int flag); |
---|
[18190] | 426 | void readlabelext(struct skin* label, char* filename, char* ext); |
---|
| 427 | |
---|
| 428 | // mainplaylist.h |
---|
| 429 | int writeallplaylist(); |
---|
| 430 | int writemainplaylist(const char *filename); |
---|
| 431 | struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode); |
---|
| 432 | struct mainplaylist* screenmainplaylist(int flag); |
---|
| 433 | |
---|
| 434 | //playlist.h |
---|
| 435 | int getplaylistmax(struct playlist* plist); |
---|
| 436 | struct playlist* getplaylistrandom(struct playlist* plist, int max); |
---|
[19974] | 437 | void getplaylistmaxold(struct skin* playlist, int* maxdirs, int* maxfiles); |
---|
| 438 | struct skin* getplaylistrandomold(struct skin* playlist, int maxdirs, int maxfiles); |
---|
[18190] | 439 | |
---|
| 440 | // screensaveradjust.h |
---|
| 441 | void screensaveradjust(); |
---|
| 442 | |
---|
| 443 | //download.h |
---|
[19884] | 444 | int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int timeout, int flag); |
---|
[18190] | 445 | |
---|
| 446 | // epgrecord.h |
---|
| 447 | void freeepgrecord(struct epgrecord** first); |
---|
| 448 | int recordstartreal(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode, int tssize); |
---|
| 449 | |
---|
| 450 | //titan.c |
---|
| 451 | void oshutdown(int exitcode, int flag); |
---|
| 452 | int createstartscreen(); |
---|
[21149] | 453 | struct channel *channel; |
---|
[18190] | 454 | |
---|
| 455 | // powerofftimer.h |
---|
| 456 | void screenpowerofftimer(void); |
---|
| 457 | |
---|
| 458 | // videosettings.h |
---|
| 459 | void screenvideosettings(); |
---|
| 460 | |
---|
| 461 | // harddisk.h |
---|
| 462 | void screenharddisk(int mode); |
---|
| 463 | void screenharddisksleep(); |
---|
| 464 | |
---|
| 465 | // network.h |
---|
| 466 | void screennetwork(int mode); |
---|
| 467 | void screennetwork_adapter(); |
---|
| 468 | void screennetwork_restart(struct inetwork* net, int flag); |
---|
| 469 | void screennetwork_test(); |
---|
| 470 | void screennetwork_wlan(); |
---|
| 471 | |
---|
| 472 | //channel.h |
---|
| 473 | int writechannel(const char *filename); |
---|
[36337] | 474 | struct channel* createchannel(char* name, uint64_t transponderid, int providerid, int serviceid, int servicetype, int flag, int videocodec, int audiocodec, int videopid, int audiopid, int protect, int pcrpid); |
---|
[18431] | 475 | void delchannelbytransponder(uint64_t transponderid); |
---|
[18190] | 476 | struct channel* gettmpchannel(); |
---|
[18431] | 477 | int delchannel(int serviceid, uint64_t transponderid, int flag); |
---|
[18190] | 478 | int movechanneldown(struct channel* node); |
---|
| 479 | int movechannelup(struct channel* node); |
---|
[22442] | 480 | struct channel* sortchannel(); |
---|
[18190] | 481 | |
---|
| 482 | //transponder.h |
---|
[36337] | 483 | struct transponder* gettransponder(uint64_t transponderid); |
---|
[18190] | 484 | int writetransponder(const char *filename); |
---|
| 485 | void deltransponderbyorbitalpos(int orbitalpos); |
---|
| 486 | void deltransponder(struct transponder* tpnode); |
---|
| 487 | |
---|
| 488 | //sat.h |
---|
| 489 | int writesat(const char *filename); |
---|
| 490 | void delsat(char *name); |
---|
| 491 | struct sat* getsatbyorbitalpos(int orbitalpos); |
---|
| 492 | int movesatdown(struct sat* node); |
---|
| 493 | int movesatup(struct sat* node); |
---|
[24228] | 494 | int sat2bouquet(int orbitalpos, int flag); |
---|
[18190] | 495 | |
---|
| 496 | //provider.h |
---|
| 497 | int writeprovider(const char *filename); |
---|
| 498 | void delprovidernotused(struct provider* node); |
---|
| 499 | int moveproviderdown(struct provider* node); |
---|
| 500 | int moveproviderup(struct provider* node); |
---|
[30524] | 501 | struct provider* sortprovider(); |
---|
[18190] | 502 | |
---|
| 503 | //httpd.h |
---|
| 504 | void httpdthreadfunc(struct stimerthread* timernode); |
---|
| 505 | void sendoktext(int* connfd, char* text, int auth); |
---|
| 506 | |
---|
| 507 | //skinconfig.h |
---|
| 508 | int getskinconfigint(char *key, char *ext); |
---|
| 509 | char* getskinconfig(char *key, char *ext); |
---|
| 510 | |
---|
| 511 | //record.h |
---|
| 512 | struct service* getrecordbyname(char* recname, int type); |
---|
| 513 | int recordskipplay(struct service* servicenode, int sekunden); |
---|
| 514 | void recordffrwts(struct service* servicenode, int speed); |
---|
| 515 | |
---|
| 516 | //dvdplayer.h |
---|
| 517 | int dvdstart(char* filename); |
---|
| 518 | int dvdisplaying(); |
---|
| 519 | void dvdgotmessage(); |
---|
| 520 | int dvdkeypress(int key); |
---|
| 521 | int dvdmenuopen(); |
---|
| 522 | void dvdchangevideo(); |
---|
| 523 | void dvdafterend(); |
---|
| 524 | |
---|
| 525 | // play.h |
---|
| 526 | void playerffts(int speed); |
---|
[19953] | 527 | int screenplay(char* startfile, char* showname, int startfolder, int flag); |
---|
[18190] | 528 | void playrcstop(int playertype, int flag); |
---|
[19953] | 529 | void playwritevfd(char* file, char* showname); |
---|
[18190] | 530 | void playstartservice(); |
---|
[19953] | 531 | void screenplayinfobar(char* file, char* showname, int mode, int playertype, int flag); |
---|
| 532 | void playrcgreen(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[20102] | 533 | int playrcred(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[19953] | 534 | void playrcinfo(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 535 | void playrcff(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 536 | void playrcfr(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 537 | void playrcpause(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 538 | void playrcplay(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 539 | void playrcjumpr(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 540 | void playrcjumpf(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[18973] | 541 | void get_mediadb_scan_info(); |
---|
[19975] | 542 | void playrcblue(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 543 | void playrcyellow(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 544 | void playrctext(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 545 | void playrcok(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[20192] | 546 | int playcheckdirrcret(char* file, int dirrcret); |
---|
[20848] | 547 | void playrcjumpto(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[32127] | 548 | #ifdef EPLAYER4 |
---|
[32126] | 549 | void playersend_ff_fr_event(gdouble rate); |
---|
[32127] | 550 | #endif |
---|
[18190] | 551 | |
---|
| 552 | //inetwork.h |
---|
| 553 | struct inetwork* getinetworkbydevice(char* device); |
---|
[20685] | 554 | struct inetwork* getinetworkfirstwlan(); |
---|
[18190] | 555 | |
---|
| 556 | //fb.h |
---|
| 557 | void blitfb(int flag); |
---|
[24090] | 558 | void blitfb1(); |
---|
[20751] | 559 | void changefbresolution(char *value, int flag); |
---|
[18190] | 560 | void setfbtransparent(int value); |
---|
[36560] | 561 | struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize, unsigned long data_phys); |
---|
[18190] | 562 | void blitfb2(struct fb* fbnode, int flag); |
---|
| 563 | void delfb(char *name); |
---|
| 564 | void fb2png_thread(); |
---|
| 565 | int fb2png(unsigned char *buf_p, int width, int height, char *outfile); |
---|
| 566 | void clearfball(); |
---|
[26475] | 567 | void closefb(); |
---|
[18190] | 568 | |
---|
| 569 | //timerthread.h |
---|
| 570 | struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last); |
---|
[19612] | 571 | void deltimer(struct stimerthread *tnode, int flag); |
---|
[18190] | 572 | struct stimerthread* gettimerbythread(pthread_t thread); |
---|
| 573 | |
---|
| 574 | //epgscanlist.h |
---|
[18431] | 575 | struct epgscanlist* getepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 576 | int writeepgscanlist(const char *filename); |
---|
[18431] | 577 | int delepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 578 | |
---|
| 579 | //rectimer.h |
---|
| 580 | int readrectimer(char *filename); |
---|
| 581 | int writerectimer(const char *filename, int flag); |
---|
| 582 | int recordcheckcrypt(struct dvbdev* fenode, int servicetype); |
---|
| 583 | int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode); |
---|
| 584 | char* recordcheckret(struct stimerthread* timernode, int ret, int flag); |
---|
| 585 | void checkrecepgret(int ret); |
---|
| 586 | int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist); |
---|
| 587 | struct rectimer* getrectimerbyservice(struct service* servicenode); |
---|
| 588 | void delrectimer(struct rectimer* rectimernode, int write, int flag); |
---|
| 589 | int rectimergetaktday(); |
---|
[20192] | 590 | int addrectimer(char *buf); |
---|
[21149] | 591 | struct rectimer* addrectimernode(char* line, struct rectimer* last); |
---|
| 592 | int checkrectimerconflict(struct rectimer* recnode); |
---|
[38317] | 593 | struct rectimer* getrectimerbytimediff(time_t timediff); |
---|
[18190] | 594 | |
---|
| 595 | //dvb.h |
---|
| 596 | unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout); |
---|
| 597 | int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
| 598 | int dvbwrite(int fd, unsigned char* buf, int count, int tout); |
---|
| 599 | int dvbgetdate(time_t* time, int timeout); |
---|
| 600 | int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize); |
---|
| 601 | int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize); |
---|
| 602 | |
---|
| 603 | //pin.h |
---|
| 604 | int screenpincheck(int type, char* pin); |
---|
| 605 | void screenpin(); |
---|
| 606 | |
---|
| 607 | //videomode.h |
---|
| 608 | void screenvideomode(int flag); |
---|
| 609 | |
---|
| 610 | //pic.h |
---|
| 611 | void delpic(char* name); |
---|
| 612 | struct pic* getpic(char* name); |
---|
| 613 | void delmarkedpic(int del); |
---|
| 614 | struct pic* addpic(char *name, unsigned char* picbuf, int memfd, unsigned long width, unsigned long height, unsigned long rowbytes, int channels, int timeout, int del, struct pic* last); |
---|
| 615 | |
---|
| 616 | //showiframe.h |
---|
| 617 | int singlepicstart(const char *filename, int flag); |
---|
[44115] | 618 | void showsinglepic(); |
---|
[18190] | 619 | |
---|
| 620 | //player.h |
---|
[19843] | 621 | void playerslowts(int speed); |
---|
[18190] | 622 | void playerff(int speed); |
---|
| 623 | void playerfr(int speed); |
---|
| 624 | void playercontinue(); |
---|
| 625 | void playerpause(); |
---|
| 626 | int playerstop(); |
---|
| 627 | void playerseek(float sec); |
---|
| 628 | int playerstart(char* file); |
---|
[18429] | 629 | unsigned long long playergetpts(); |
---|
[18190] | 630 | double playergetlength(); |
---|
| 631 | int playergetinfots(unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* aktpts, unsigned long long* bitrate, int flag); |
---|
| 632 | int playerisplaying(); |
---|
| 633 | void playerafterend(); |
---|
[19761] | 634 | int playergetbuffersize(); |
---|
| 635 | int playergetbufferstatus(); |
---|
[25480] | 636 | off64_t playergetptspos(unsigned long long fpts, off64_t pos, int dir, int praez, int type, int flag, char* dsn); |
---|
[28328] | 637 | void playerafterendts(); |
---|
| 638 | int playerisplayingts(); |
---|
| 639 | char* playergetinfo(char* tag); |
---|
| 640 | int playerstartts(char* file, int flag); |
---|
[30713] | 641 | #ifdef EPLAYER4 |
---|
[30700] | 642 | static void analyze_streams(CustomData *data); |
---|
[30713] | 643 | #endif |
---|
[18190] | 644 | |
---|
| 645 | //filelist.h |
---|
| 646 | void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection); |
---|
| 647 | int createfilelist(struct skin* screen, struct skin* node, int view); |
---|
[19974] | 648 | void getfilelistmax(struct skin* filelist, int* maxdirs, int* maxfiles); |
---|
| 649 | struct skin* getfilelistrandom(struct skin* filelist, int maxdirs, int maxfiles); |
---|
[23005] | 650 | int filelistflt(char* filter, char* name); |
---|
[18190] | 651 | |
---|
| 652 | //plugin.h |
---|
| 653 | struct skin* getplugin(char* pluginname); |
---|
| 654 | int loadplugin(); |
---|
| 655 | |
---|
| 656 | //listbox.h |
---|
| 657 | int setlistboxselection(struct skin* listbox, char* childname); |
---|
| 658 | |
---|
| 659 | //list.h |
---|
| 660 | struct clist* addlist(struct clist **clist, char *key1, char *value1); |
---|
| 661 | void freelist(struct clist** clist); |
---|
| 662 | struct clist* addlisttmp(struct clist **clist, char *key1, char *value1); |
---|
[28331] | 663 | char* getlist(struct clist **clist, char *key, char *ext); |
---|
[28333] | 664 | int writelist(struct clist **clist, const char *filename); |
---|
[18190] | 665 | |
---|
| 666 | //choicebox.h |
---|
| 667 | int setchoiceboxselection(struct skin* choicebox, char* value); |
---|
| 668 | int addchoicebox(struct skin* choicebox, char* value, char* text); |
---|
| 669 | |
---|
| 670 | //ownconfig.h |
---|
| 671 | char* getownconfig(char *key); |
---|
| 672 | char* getownconfigq(char *key); |
---|
| 673 | struct clist* addownconfigscreentmp(char *key, struct skin *node); |
---|
| 674 | struct clist* addownconfigscreenqtmp(char *key, struct skin *node); |
---|
| 675 | struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check); |
---|
| 676 | int writeownconfigtmp(); |
---|
| 677 | void delownconfigtmpall(); |
---|
| 678 | struct clist* addownconfig(char *key, char *value); |
---|
| 679 | |
---|
| 680 | //infobar.h |
---|
| 681 | void fillinfobar(); |
---|
| 682 | |
---|
| 683 | //menulist.h |
---|
| 684 | void freemenulist(struct menulist* mlist, int delparam); |
---|
| 685 | void addmenulistall(struct menulist** mlist, char* allname, char* pic, int deaktiv, char* defaultentry); |
---|
| 686 | struct menulist* addmenulist(struct menulist** mlist, char* name, char* text, char* pic, int deaktiv, int defaultentry); |
---|
[27740] | 687 | struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* skindetails, char* paramskinpath, char* defaultpic, int showpng, int flag); |
---|
| 688 | struct menulist* menulistboxext(struct menulist* mlist, char* paramskinname, char* skintitle, char* skindetails, char* paramskinpath, char* defaultpic, int showpng, int* rcreturn, int flag); |
---|
[18190] | 689 | void setmenulistdefault(struct menulist* mlist, char* defaultentry); |
---|
[23288] | 690 | void changemenulistparam(struct menulist* mlist, char* param, char* param1, char* param2, char* param3); |
---|
[18190] | 691 | |
---|
| 692 | //skinfunc.h |
---|
| 693 | char* gettime(struct skin* node, char* format); |
---|
| 694 | char* getepgakttitle(struct skin* node); |
---|
| 695 | |
---|
| 696 | //skin.h |
---|
[20245] | 697 | void* convertfunc(char *value, uint8_t *rettype); |
---|
[18190] | 698 | void restorescreennofree(char* buf, struct skin* node); |
---|
| 699 | unsigned char *loadjpg(char *filename, unsigned long *width, unsigned long *height, unsigned long *rowbytes, int *channels, int denom); |
---|
| 700 | int changeselectpic(struct skin* node, char* text); |
---|
| 701 | void calcautoscale(int width, int height, int mwidth, int mheight, int* scalewidth, int* scaleheight); |
---|
| 702 | void blitscale(int posx, int posy, int width, int height, int scalewidth, int scaleheight, int flag); |
---|
| 703 | unsigned char* scale(unsigned char* buf, int width, int height, int channels, int newwidth, int newheight, int free1); |
---|
| 704 | void blitrect(int posx, int posy, int width, int height, long color, int transparent, int mode); |
---|
| 705 | void fillrect(int posx, int posy, int width, int height, long color, int transparent); |
---|
| 706 | int setnodeattr(struct skin* node, struct skin* parent, int screencalc); |
---|
| 707 | void clearscreennolock(struct skin* node); |
---|
| 708 | void clearshadow(struct skin* node); |
---|
| 709 | char* savescreen(struct skin* node); |
---|
| 710 | void restorescreen(char* buf, struct skin* node); |
---|
| 711 | char* changepicpath(char* picname); |
---|
| 712 | long convertcol(char *value); |
---|
| 713 | void delmarkedscreen(int del); |
---|
| 714 | void delscreen(struct skin *node); |
---|
| 715 | void delscreennode(struct skin *node, char* nodename); |
---|
| 716 | int readscreen(char *filename, int del, int flag); |
---|
| 717 | int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd); |
---|
| 718 | unsigned char* readpng(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, int posx, int posy, int mwidth, int mheight, int halign, int valign); |
---|
| 719 | void delmarkedscreennodes(struct skin* node, int mark); |
---|
| 720 | void clearscreen(struct skin* node); |
---|
| 721 | struct skin* getscreennode(struct skin *node, char* nodename); |
---|
[23090] | 722 | struct skin* checkscreennode(struct skin *node, char* nodename); |
---|
[18190] | 723 | struct skin* getscreen(char* screenname); |
---|
| 724 | int calcrheight(struct skin* node, struct skin* parent); |
---|
| 725 | int drawscreen(struct skin* node, int screencalc, int flag); |
---|
| 726 | struct skin* addscreennode(struct skin* node, char* line, struct skin* last); |
---|
| 727 | int changetext(struct skin* node, char* text); |
---|
| 728 | int changetext2(struct skin* node, char* text); |
---|
| 729 | int changeinput(struct skin* node, char* text); |
---|
| 730 | int changename(struct skin* node, char* text); |
---|
| 731 | int changeret(struct skin* node, char* text); |
---|
| 732 | int changepic(struct skin* node, char* text); |
---|
| 733 | int changetitle(struct skin* node, char* text); |
---|
| 734 | int changefont(struct skin* node, char* text); |
---|
| 735 | int changemask(struct skin* node, char* text); |
---|
| 736 | int changepicmem(struct skin* node, char* text, int timeout, int del); |
---|
| 737 | int convertxmlentry(char *value, uint8_t *proz); |
---|
| 738 | unsigned char* savejpg(char* filename, int width, int height, int channels, int newwidth, int newheight, int quality, unsigned char *buf); |
---|
[39306] | 739 | static inline void drawpixelfastfb(struct fb* node, int posx, int posy, unsigned long color); |
---|
| 740 | static inline void drawpixelfb(struct fb* node, int posx, int posy, unsigned long color); |
---|
[29159] | 741 | unsigned char * resize(unsigned char *origin, int ox, int oy, int dx, int dy, int type, unsigned char * dst, int flag); |
---|
[42990] | 742 | static inline void drawpixelfast(int posx, int posy, unsigned long color); |
---|
| 743 | static inline void drawpixel(int posx, int posy, unsigned long color); |
---|
| 744 | static inline unsigned long getpixelbuf(char* buf, int posx, int posy, int bufwidth); |
---|
[18190] | 745 | |
---|
| 746 | //volume.h |
---|
| 747 | void screenvolumeup(); |
---|
| 748 | void screenvolumedown(); |
---|
| 749 | |
---|
[18430] | 750 | //mute.h |
---|
| 751 | void screenmute(struct skin* screen, struct skin* node, int flag); |
---|
| 752 | |
---|
[18190] | 753 | //menu.h |
---|
| 754 | int menucall(struct skin* menunode, struct skin* menuentry, int check); |
---|
| 755 | |
---|
| 756 | //textbox.h |
---|
| 757 | int textbox(char* title, char* text, char* b1, int rc1, char* b2, int rc2, char* b3, int rc3, char* b4, int rc4, int width, int height, int timeout, int flag); |
---|
| 758 | |
---|
| 759 | //config.h |
---|
| 760 | struct clist* addconfig(char *key, char *value); |
---|
| 761 | void delconfigtmpall(); |
---|
| 762 | struct clist* addconfigscreencheck(char *key, struct skin *node, char* check); |
---|
[19974] | 763 | struct clist* addconfigscreen(char *key, struct skin *node); |
---|
[18190] | 764 | struct clist* addconfigdef(char *key, char *value); |
---|
| 765 | struct clist* addconfigtmp(char *key, char *value); |
---|
| 766 | char* getconfig(char *key, char *ext); |
---|
| 767 | char* getconfignotmp(char *key, char *ext); |
---|
| 768 | int getconfigint(char *key, char* ext); |
---|
| 769 | void delconfig(char *key); |
---|
| 770 | void delconfigtmp(char *key); |
---|
| 771 | struct clist* addconfiginttmp(char *key, int value); |
---|
| 772 | int writeconfigtmp(); |
---|
| 773 | int readconfig(const char *filename, struct clist** tmpconfig); |
---|
| 774 | struct clist* addconfigint(char *key, int value); |
---|
[28435] | 775 | void menucheckentry(struct skin* child); |
---|
[18190] | 776 | |
---|
| 777 | //rc.h |
---|
| 778 | int waitrcext(struct skin* owner, unsigned int timeout, int screencalc, int filelistview); |
---|
| 779 | int waitrc(struct skin* owner, unsigned int timeout, int flag); |
---|
| 780 | void delownerrc(struct skin* owner); |
---|
[18431] | 781 | struct rc* addrc(int key, void *func, struct skin* screen, struct skin *screennode); |
---|
[18190] | 782 | void delrc(int key, struct skin* owner, struct skin* screennode); |
---|
| 783 | int flushrc(unsigned int timeout); |
---|
[19974] | 784 | int writerc(int keycode); |
---|
[18190] | 785 | |
---|
| 786 | //rcfunc.h |
---|
| 787 | void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int screencalc, int filelistview, int flag); |
---|
[42909] | 788 | void inputboxchar2(struct skin* screen, struct skin* inputbox, char* zeichen, int screencalc, int filelistview, int flag); |
---|
[18190] | 789 | void inputboxff(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 790 | void inputboxfr(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 791 | void inputboxright(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 792 | void inputboxleft(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 793 | int addscreenrc(struct skin* screen, struct skin* node); |
---|
| 794 | void checkinputboxnumright(struct skin* inputbox); |
---|
| 795 | int delscreenrc(struct skin* screen, struct skin* node); |
---|
| 796 | |
---|
| 797 | //spinner.h |
---|
| 798 | void screenspinner(); |
---|
| 799 | |
---|
| 800 | //global.h |
---|
[41635] | 801 | int getwaswakuptimer(); |
---|
[24422] | 802 | char* getmacfromcmdline(); |
---|
[24036] | 803 | char* createpluginpath(char* text, int flag); |
---|
[23305] | 804 | void delspezchar(char* text, int flag); |
---|
[21758] | 805 | int osystem(char* cmd, int timeout); |
---|
[19543] | 806 | char* mask(char* input, int count, char* maskchar); |
---|
[19478] | 807 | char* getboxtype(); |
---|
[18934] | 808 | char* getfilenameext(char* filename); |
---|
[18216] | 809 | void startnet(); |
---|
[18190] | 810 | int checkdirext(char* dir, char* ext); |
---|
| 811 | char* string_replace_all(char *search, char *replace, char *string, int free1); |
---|
| 812 | struct tm* olocaltime(time_t *value); |
---|
| 813 | void setskinnodeslocked(int flag); |
---|
| 814 | char* stringreplacecharonce(char *str, char c1, char c2); |
---|
[40382] | 815 | int getrandomnum(int max); |
---|
[18190] | 816 | int clearbit(int value, int bitpos); |
---|
| 817 | int checkbit(int value, int bitpos); |
---|
| 818 | char* addmountpart(char* filename, int free1); |
---|
| 819 | char* string_removechar(char *str); |
---|
| 820 | unsigned int gethash(char* str); |
---|
| 821 | char* oregex(char* regex, char* str); |
---|
| 822 | int resettvpic(); |
---|
| 823 | unsigned long readsysul(const char *filename, int line); |
---|
[24781] | 824 | unsigned long long readsysull(const char *filename, int line); |
---|
[18190] | 825 | char* oitoax(int value); |
---|
| 826 | void closeonexec(int fd); |
---|
| 827 | char* ostrstrcase(char* str, char* sub); |
---|
| 828 | char* getdevcontent(char* devconfig); |
---|
| 829 | char* getxmlentry(char *line, char *searchstr); |
---|
[20730] | 830 | void debugstack(int sig, void* address, void* address1); |
---|
[18190] | 831 | char* string_strip_whitechars(char *text); |
---|
| 832 | int ounzip(char* inbuf, int inlen, char** outbuf, int* outlen, int maxbuf, int flag); |
---|
| 833 | int ozip(char* inbuf, int inlen, char** outbuf, int* outlen, int level); |
---|
| 834 | int delallfiles(char* dir, char* ext); |
---|
| 835 | unsigned long getfilecount(char* dir); |
---|
| 836 | char* readfiletomem(const char* filename, int flag); |
---|
[19831] | 837 | char* readbintomem(const char* filename, size_t size); |
---|
[18190] | 838 | int setbit(int value, int bitpos); |
---|
| 839 | char* changefilenameext(char* filename, char* ext); |
---|
| 840 | void destroy(); |
---|
| 841 | void htmldecode(char* to, char* from); |
---|
[35507] | 842 | void htmldecode2(char* to, char* from); |
---|
[18190] | 843 | void setosdtransparent(int value); |
---|
| 844 | char* string_shortname(char *tmpfilename, int mode); |
---|
| 845 | off64_t getfilesize(char* name); |
---|
| 846 | struct splitstr* strsplit(char *str, char *tok, int* count); |
---|
| 847 | char* strstrip(char *text); |
---|
| 848 | char* fixip(char* ipinput, int flag); |
---|
| 849 | void m_lock(pthread_mutex_t *mutex, int flag); |
---|
| 850 | void m_unlock(pthread_mutex_t *mutex, int flag); |
---|
[23979] | 851 | int setcolorformat(char* value, int flag); |
---|
[18190] | 852 | int setvideomode(char* value, int flag); |
---|
| 853 | char* convert_timesec(int sec); |
---|
| 854 | int writesys(const char *filename, char *value, int flag); |
---|
| 855 | int setsystime(time_t* newtime); |
---|
| 856 | int checkbox(char* box); |
---|
| 857 | int setpolicy(char* value); |
---|
| 858 | char* getpolicy(); |
---|
| 859 | char* string_newline(char* str); |
---|
| 860 | char* get_label(char* device); |
---|
| 861 | char* string_quote(char* str); |
---|
| 862 | int file_exist(char* filename); |
---|
| 863 | char* ostrstr(char* str, char* search); |
---|
| 864 | char* createpath(char* dir, char* file); |
---|
| 865 | char* get_ipk_install(char* ipk); |
---|
| 866 | char* get_ipk_tmpinstall(char* path, char* ipk); |
---|
| 867 | char* get_ipk_listinstall(); |
---|
| 868 | char* get_ipk_tmplistinstall(); |
---|
| 869 | char* string_toupper(char *str); |
---|
| 870 | char* get_ipk_remove(char* ipk); |
---|
| 871 | char* get_ipk_section(); |
---|
| 872 | char* get_ipk_list(char* section); |
---|
| 873 | char* string_tolower(char *str); |
---|
| 874 | int isfile(char* name); |
---|
| 875 | char* command(char* input); |
---|
| 876 | char* oitoa(int value); |
---|
| 877 | char* olutoa(unsigned long value); |
---|
[18431] | 878 | char* ollutoa(uint64_t value); |
---|
[18190] | 879 | int ostrcmp(char* value1, char* value2); |
---|
| 880 | int ostrcasecmp(char* value1, char* value2); |
---|
[19467] | 881 | char* ostrshrink(char* value); |
---|
[18190] | 882 | char* ostrcat(char* value1, char* value2, int free1, int free2); |
---|
[24441] | 883 | void ostrcatbig(char** value1, char* value2, int* maxlen, int* pos); |
---|
[18190] | 884 | int ostrncmp(char* value1, char* value2, int count); |
---|
| 885 | char* readsys(const char *filename, int line); |
---|
| 886 | char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1); |
---|
| 887 | char* string_replace(char *search, char *replace, char *string, int free1); |
---|
| 888 | int writesysint(const char *filename, int value, int flag); |
---|
| 889 | char* string_remove_whitechars(char *text); |
---|
| 890 | void setfanspeed(int speed, int aktion); |
---|
| 891 | int writeallconfig(int flag); |
---|
| 892 | int checkemu(); |
---|
| 893 | int setvol(int value); |
---|
| 894 | int getvol(); |
---|
| 895 | char* stringreplacechar(char *str, char c1, char c2); |
---|
| 896 | char* getcpuid(); |
---|
| 897 | void get_ipk_update(); |
---|
| 898 | char* string_decode(char* input, int flag); |
---|
| 899 | char* string_striptags(char* filename); |
---|
| 900 | char* string_resub(char* str, char* str2, char* input, int dir); |
---|
| 901 | int cmpfilenameext(char* filename, char* ext); |
---|
| 902 | void killnet(); |
---|
| 903 | void checkserial(char* input); |
---|
| 904 | int checkprozess(char* input); |
---|
| 905 | struct regex* regexstruct(char* regex, char* str); |
---|
| 906 | void freeregexstruct(struct regex* node); |
---|
| 907 | char fromhex(char c); |
---|
[18936] | 908 | char* unhexlify(char *hexstr); |
---|
[18190] | 909 | int isdir(char* name); |
---|
[43926] | 910 | int islink(char* name); |
---|
[18190] | 911 | void htmldecode3(char* to, char* from); |
---|
| 912 | char* string_deltags(char* str); |
---|
| 913 | char* readfromlinetoline(char* str, int start, int end, int flag); |
---|
[18209] | 914 | int checkdev(char* dev); |
---|
[18987] | 915 | char* getvideomode(); |
---|
[19304] | 916 | int checkinternet(); |
---|
[19535] | 917 | struct splitstr* oregexsplit(char* regex, char *str, char *tok, int* count); |
---|
| 918 | void freeoregexsplit(struct splitstr* tmparray, int len); |
---|
[19935] | 919 | char* fixport(char* input, int flag); |
---|
[20190] | 920 | char* getispip(); |
---|
[21618] | 921 | int getlfiletype(char* filename); |
---|
[21680] | 922 | unsigned long long getfreespace(char* dir); |
---|
[23003] | 923 | char* getfilenamepng(char* filename); |
---|
[24253] | 924 | char* htmlencode(char* from); |
---|
[24423] | 925 | void waitmsgbar(int sec, int exit, char* text, int flag); |
---|
[25133] | 926 | char* getcolorformat(int line); |
---|
[25392] | 927 | void set_player_sound(int flag); |
---|
[25830] | 928 | void screenshoot(int flag); |
---|
[25843] | 929 | void guestthread(); |
---|
[28641] | 930 | int vbulletin_userauth(char* link, char* user, char* pass); |
---|
| 931 | int phpkit_userauth(char* link, char* user, char* pass); |
---|
[29186] | 932 | int converte2settings(int flag); |
---|
[31660] | 933 | char* getmoviedev(); |
---|
| 934 | void wakeup_record_device(); |
---|
[32362] | 935 | char* getaspect(); |
---|
[35337] | 936 | char* randomstring(int n); |
---|
[18190] | 937 | |
---|
| 938 | //rcconfig.h |
---|
| 939 | int getrcconfigint(char *key, char* ext); |
---|
| 940 | char* getrcconfig(char *key, char *ext); |
---|
| 941 | int reloadconfig(char *filename); |
---|
| 942 | |
---|
| 943 | //service.h |
---|
[20510] | 944 | struct service* getservicebyrecname(char* recname, int type, int flag); |
---|
[18190] | 945 | struct service* getservicebyservice(struct service* node, int flag); |
---|
| 946 | struct service* getservicebychannel(struct channel* chnode); |
---|
| 947 | struct service* checkservice(struct service* node); |
---|
| 948 | struct service* addservice(struct service* last); |
---|
| 949 | void delservice(struct service* snode, int flag); |
---|
| 950 | int servicestop(struct service *node, int clear, int flag); |
---|
| 951 | int servicestart(struct channel* chnode, char* channellist, char* pin, int flag); |
---|
| 952 | void serviceresetchannelinfo(struct channel* chnode); |
---|
| 953 | struct service* getservice(int type, int flag); |
---|
| 954 | char* servicecheckret(int ret, int flag); |
---|
| 955 | |
---|
| 956 | //mainbouquets.h |
---|
| 957 | int writemainbouquet(const char *filename); |
---|
| 958 | int writeallbouquet(); |
---|
| 959 | struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode); |
---|
| 960 | int movemainbouquetdown(struct mainbouquet* node); |
---|
| 961 | int movemainbouquetup(struct mainbouquet* node); |
---|
| 962 | struct mainbouquet* addmainbouquet(char *line, int count, struct mainbouquet* last); |
---|
[22342] | 963 | struct mainbouquet* screenmainbouquet(); |
---|
[22343] | 964 | int mainbouquet2epgscanlist(struct mainbouquet* mnode); |
---|
| 965 | int mainbouquet2channelslot(struct mainbouquet* mnode, int slot); |
---|
[24228] | 966 | void delmainbouquet(char *name, int flag); |
---|
[18190] | 967 | |
---|
| 968 | //listbox.h |
---|
| 969 | struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del); |
---|
| 970 | |
---|
| 971 | //bouquets.h |
---|
[18431] | 972 | void delbouquetbychannel(int serviceid, uint64_t transponderid); |
---|
| 973 | struct bouquet* getbouquetbychannelmain(int serviceid, uint64_t transponderid); |
---|
[18190] | 974 | void recalcbouquetnr(); |
---|
[18431] | 975 | void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid); |
---|
| 976 | void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode); |
---|
[18190] | 977 | int movebouquetdown(struct bouquet* node); |
---|
| 978 | int movebouquetup(struct bouquet* node); |
---|
| 979 | struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last); |
---|
[22458] | 980 | struct bouquet* sortbouquet(struct bouquet **nodeaddr); |
---|
[18190] | 981 | |
---|
| 982 | //audiotrack.h |
---|
| 983 | void screenaudiotrack(); |
---|
| 984 | struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last); |
---|
| 985 | void freeaudiotrack(struct channel* chnode); |
---|
| 986 | |
---|
| 987 | //subtitle.h |
---|
| 988 | void screensubtitle(); |
---|
| 989 | struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last); |
---|
| 990 | void freesubtitle(struct channel* chnode); |
---|
| 991 | int subtitlestop(int flag); |
---|
| 992 | int subtitlepause(int flag); |
---|
[24620] | 993 | void changelastsubtitle(struct lastsubtitle* lsnode, int pid, int id1, int id2); |
---|
[20233] | 994 | void dellastsubtitle(struct lastsubtitle* lsnode); |
---|
| 995 | struct lastsubtitle* addlastsubtitle(char* line, int count, struct lastsubtitle* last); |
---|
| 996 | struct lastsubtitle* getlastsubtitle(uint64_t transponderid, int serviceid); |
---|
[20280] | 997 | int subtitlestartlast(); |
---|
| 998 | int writelastsubtitle(const char *filename); |
---|
[18190] | 999 | |
---|
| 1000 | //linkedchannel.h |
---|
[21072] | 1001 | struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, time_t starttime, time_t endtime, struct linkedchannel* last); |
---|
[18190] | 1002 | void freelinkedchannel(struct channel* chnode); |
---|
| 1003 | void screenlinkedchannel(); |
---|
[21072] | 1004 | struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, time_t starttime, time_t endtime); |
---|
| 1005 | void dellinkedchannel(struct channel* chnode, struct linkedchannel* lnode, int flag); |
---|
| 1006 | void deloldlinkedchannel(); |
---|
[18190] | 1007 | |
---|
| 1008 | //zap.h |
---|
| 1009 | void zapup(); |
---|
| 1010 | void zapdown(); |
---|
| 1011 | |
---|
| 1012 | //epg.h |
---|
[20348] | 1013 | int screensingleepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 1014 | int screenepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[19251] | 1015 | |
---|
| 1016 | //eit.h |
---|
[19253] | 1017 | void epgthreadfunc(struct stimerthread* self); |
---|
[19251] | 1018 | struct epg* getepgnext(struct channel* chnode); |
---|
[18190] | 1019 | int writeepg(const char* filename); |
---|
| 1020 | void freeepg(struct channel* chnode); |
---|
| 1021 | struct epg* getepgakt(struct channel* chnode); |
---|
| 1022 | struct epg* getepgbytime(struct channel* chnode, time_t akttime); |
---|
| 1023 | char* epgdescunzip(struct epg* epgnode); |
---|
[18571] | 1024 | struct epg* addoldentryepg(struct channel* chnode, struct epg* newnode, int flag); |
---|
| 1025 | void deloldentryepg(struct epg* node); |
---|
[18673] | 1026 | void clearepgentry(struct epg* node); |
---|
[18190] | 1027 | |
---|
| 1028 | //standby.h |
---|
| 1029 | void screenstandby(); |
---|
| 1030 | |
---|
| 1031 | //channelcache.h |
---|
[18431] | 1032 | void delchannelcache(int serviceid, uint64_t transponderid); |
---|
| 1033 | struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel*); |
---|
| 1034 | struct channel* getchannel(int serviceid, uint64_t transponderid); |
---|
[18190] | 1035 | |
---|
| 1036 | // vfd.h |
---|
| 1037 | int setvfdicon(vfdicons id, int onoff); |
---|
| 1038 | int writevfd(char *value); |
---|
[21191] | 1039 | int writevfdmenu(char *value); |
---|
[39489] | 1040 | void setled(int typ); |
---|
[18190] | 1041 | |
---|
| 1042 | //skinfunc.h |
---|
| 1043 | char* getaktchannelname(); |
---|
| 1044 | char* getrec(); |
---|
| 1045 | |
---|
[19651] | 1046 | //marker.h |
---|
| 1047 | struct marker* addmarkernode(off64_t pos); |
---|
[19652] | 1048 | int delmarkernode(off64_t pos); |
---|
[19681] | 1049 | int delmarker(char* timetext); |
---|
[19662] | 1050 | int getmarker(char* dateiname); |
---|
| 1051 | int putmarker(char* dateiname); |
---|
[19663] | 1052 | int setmarker(); |
---|
[19680] | 1053 | int jumpmarker(char* timetext); |
---|
[25495] | 1054 | void screenmarker(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[25492] | 1055 | off64_t getcurrentpos(struct service* snode); |
---|
[25644] | 1056 | void markerautoseek_thread(); |
---|
[19651] | 1057 | |
---|
[28941] | 1058 | //oled.h |
---|
[28943] | 1059 | void write2oled(unsigned char *buf, int xres, int yres); |
---|
[29235] | 1060 | struct fb* oledaddfb(int width, int height); |
---|
[29094] | 1061 | int oledtext(char *value); |
---|
[36636] | 1062 | void initOLEDdream1(); |
---|
[28941] | 1063 | |
---|
[30771] | 1064 | #ifdef MIPSEL |
---|
| 1065 | //cec.h |
---|
| 1066 | void cecinit(); |
---|
| 1067 | void cecstandby(); |
---|
| 1068 | void cecwakeup(); |
---|
| 1069 | void screencec(); |
---|
| 1070 | void getAddressInfo(); |
---|
| 1071 | int getPhysicalAddress(); |
---|
| 1072 | void hdmiEvent(); |
---|
| 1073 | void reportPhysicalAddress(); |
---|
| 1074 | void sendMessage(unsigned char address, unsigned char cmd, char *data, int length); |
---|
| 1075 | void sendMessageReal(struct cec_message message); |
---|
| 1076 | void setFixedPhysicalAddress(int address); |
---|
[40417] | 1077 | void forwardKey(int key); |
---|
[31367] | 1078 | //encoder.h |
---|
[31391] | 1079 | struct dvbdev* encoderopen(int flag); |
---|
[18190] | 1080 | #endif |
---|
[30771] | 1081 | |
---|
[43239] | 1082 | #ifdef OEBUILD |
---|
| 1083 | //ipkg.h |
---|
| 1084 | void freeipkg(); |
---|
| 1085 | int ipkg_update(void); |
---|
| 1086 | int ipkg_upgrade(void); |
---|
| 1087 | int ipkg_list(void); |
---|
| 1088 | int ipkg_install(const char* package); |
---|
| 1089 | int ipkg_remove(const char* package, int purge); |
---|
| 1090 | struct menulist* ipkmenulist(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* section, int showpng, int flag); |
---|
| 1091 | int ipkg_list_installed(void); |
---|
[30771] | 1092 | #endif |
---|
[43239] | 1093 | |
---|
| 1094 | #endif |
---|