[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); |
---|
[44294] | 315 | char* gethttps(char* url, char* localfile, char* data, char* user, char* pass, char* referer, int flag); |
---|
[18190] | 316 | |
---|
| 317 | //numinput.h |
---|
| 318 | char* numinput(char* title, char* num, char* mask, int isip); |
---|
| 319 | |
---|
| 320 | //frontenddev.h |
---|
| 321 | struct dvbdev* fegetdummy(); |
---|
[20356] | 322 | void settunerstatus(); |
---|
[30685] | 323 | struct dvb_frontend_info* fegetinfo(struct dvbdev* node, int fd); |
---|
[30882] | 324 | int feopen(struct dvbdev* node, char *fedev); |
---|
[40020] | 325 | void feclose(struct dvbdev* node, int fd); |
---|
[41160] | 326 | fe_status_t fereadstatus(struct dvbdev* node); |
---|
[18190] | 327 | |
---|
| 328 | //dvrdev.h |
---|
| 329 | void dvrclose(struct dvbdev* node, int fd); |
---|
| 330 | struct dvbdev* dvropen(struct dvbdev* fenode); |
---|
| 331 | |
---|
| 332 | //audiodev.h |
---|
| 333 | int audiopause(struct dvbdev* node); |
---|
| 334 | int audioplay(struct dvbdev* node); |
---|
| 335 | int audioclearbuffer(struct dvbdev* node); |
---|
[20767] | 336 | int audiostop(struct dvbdev* node); |
---|
[27962] | 337 | struct dvbdev* audioopen(int adapter); |
---|
[28132] | 338 | void audioclose(struct dvbdev* node, int fd); |
---|
[31202] | 339 | int audiosetmixer(struct dvbdev* node, int left, int right); |
---|
[18190] | 340 | |
---|
| 341 | //textinput.h |
---|
| 342 | char* textinput(char* title, char* text); |
---|
| 343 | |
---|
| 344 | //httpdsettings.h |
---|
| 345 | void screenhttpdsettings(); |
---|
| 346 | |
---|
| 347 | //help.h |
---|
| 348 | void screenhelp(struct skin* node); |
---|
| 349 | |
---|
| 350 | //restoredefault.h |
---|
| 351 | void screenrestoredefault(); |
---|
[21724] | 352 | void screenrestoredefaultchoice(); |
---|
[38905] | 353 | void screeneraseswap(); |
---|
| 354 | void screenrestoredefault_without_channelsettings(); |
---|
[18190] | 355 | |
---|
| 356 | //ca.h |
---|
| 357 | int getfreecasession(struct dvbdev* dvbnode, int type, int value); |
---|
| 358 | void caappmenu(struct dvbdev* dvbnode); |
---|
[37762] | 359 | void sendAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len); |
---|
[18190] | 360 | |
---|
| 361 | //cam.h |
---|
| 362 | int getcaservicebyslot(struct caslot* caslot, int flag); |
---|
| 363 | void caservicedel(struct service* snode, struct caslot* caslot); |
---|
| 364 | void sendcapmt(struct service* node, int clear, int flag); |
---|
| 365 | |
---|
| 366 | //gmultiepg.h |
---|
[20348] | 367 | int screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[20409] | 368 | int selectchannelgmepg(struct skin* listbox); |
---|
[18190] | 369 | |
---|
| 370 | //multiepg.h |
---|
[20348] | 371 | int screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[18190] | 372 | |
---|
| 373 | //harddisk.h |
---|
[22627] | 374 | int hddfsck(char* dev); |
---|
[18190] | 375 | void hddformat(char* dev, char* filesystem); |
---|
| 376 | int addhddall(); |
---|
| 377 | |
---|
| 378 | //autores.h |
---|
| 379 | void autoresthreadfunc(struct stimerthread* self, char* text, int timeout); |
---|
| 380 | void screenautores(char* text, int timeout, int flag); |
---|
| 381 | |
---|
| 382 | // timeshift.h |
---|
[20407] | 383 | void timeshiftpause(); |
---|
[18190] | 384 | void timeshiftstop(int flag); |
---|
| 385 | |
---|
| 386 | // keyaktions.h |
---|
| 387 | void keyactions(int key, int flag); |
---|
| 388 | void keyactions_setres(); |
---|
| 389 | |
---|
| 390 | //dmxdev.h |
---|
| 391 | struct dvbdev* dmxgetlast(int adapter); |
---|
| 392 | |
---|
| 393 | // harddisk.h |
---|
| 394 | char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng); |
---|
| 395 | |
---|
| 396 | // videodev.h |
---|
| 397 | int videoreadqwidth(struct dvbdev* node); |
---|
| 398 | int videofreeze(struct dvbdev* node); |
---|
| 399 | int videocontinue(struct dvbdev* node); |
---|
| 400 | int videofastforward(struct dvbdev* node, int frames); |
---|
| 401 | int videoclearbuffer(struct dvbdev* node); |
---|
| 402 | int videogetpts(struct dvbdev* node, uint64_t* pts); |
---|
[19974] | 403 | int videoslowmotion(struct dvbdev* node, int frames); |
---|
[20767] | 404 | int videostop(struct dvbdev* node, int clearscreen); |
---|
| 405 | int videoplay(struct dvbdev* node); |
---|
[24718] | 406 | int videosetencoding(struct dvbdev* node, int type); |
---|
| 407 | int videosetstreamtype(struct dvbdev* node, int type); |
---|
[18190] | 408 | |
---|
| 409 | // scan.h |
---|
[19525] | 410 | unsigned int satblindscan(struct stimerthread* timernode, int onlycalc); |
---|
| 411 | unsigned int cableblindscan(struct stimerthread* timernode, int onlycalc); |
---|
| 412 | unsigned int terrblindscan(struct stimerthread* timernode, int onlycalc); |
---|
[20633] | 413 | 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] | 414 | void screenscanconfig(int flag); |
---|
| 415 | |
---|
| 416 | // screensaver.h |
---|
| 417 | int showscreensaver(); |
---|
| 418 | int initscreensaver(); |
---|
| 419 | int deinitscreensaver(); |
---|
| 420 | |
---|
| 421 | // screensaveradjust.h |
---|
| 422 | void screenscreensaveradjust(); |
---|
| 423 | |
---|
| 424 | //dir.h |
---|
| 425 | 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] | 426 | 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] | 427 | void readlabelext(struct skin* label, char* filename, char* ext); |
---|
| 428 | |
---|
| 429 | // mainplaylist.h |
---|
| 430 | int writeallplaylist(); |
---|
| 431 | int writemainplaylist(const char *filename); |
---|
| 432 | struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode); |
---|
| 433 | struct mainplaylist* screenmainplaylist(int flag); |
---|
| 434 | |
---|
| 435 | //playlist.h |
---|
| 436 | int getplaylistmax(struct playlist* plist); |
---|
| 437 | struct playlist* getplaylistrandom(struct playlist* plist, int max); |
---|
[19974] | 438 | void getplaylistmaxold(struct skin* playlist, int* maxdirs, int* maxfiles); |
---|
| 439 | struct skin* getplaylistrandomold(struct skin* playlist, int maxdirs, int maxfiles); |
---|
[18190] | 440 | |
---|
| 441 | // screensaveradjust.h |
---|
| 442 | void screensaveradjust(); |
---|
| 443 | |
---|
| 444 | //download.h |
---|
[19884] | 445 | int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int timeout, int flag); |
---|
[18190] | 446 | |
---|
| 447 | // epgrecord.h |
---|
| 448 | void freeepgrecord(struct epgrecord** first); |
---|
| 449 | int recordstartreal(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode, int tssize); |
---|
| 450 | |
---|
| 451 | //titan.c |
---|
| 452 | void oshutdown(int exitcode, int flag); |
---|
| 453 | int createstartscreen(); |
---|
[21149] | 454 | struct channel *channel; |
---|
[18190] | 455 | |
---|
| 456 | // powerofftimer.h |
---|
| 457 | void screenpowerofftimer(void); |
---|
| 458 | |
---|
| 459 | // videosettings.h |
---|
| 460 | void screenvideosettings(); |
---|
| 461 | |
---|
| 462 | // harddisk.h |
---|
| 463 | void screenharddisk(int mode); |
---|
| 464 | void screenharddisksleep(); |
---|
| 465 | |
---|
| 466 | // network.h |
---|
| 467 | void screennetwork(int mode); |
---|
| 468 | void screennetwork_adapter(); |
---|
| 469 | void screennetwork_restart(struct inetwork* net, int flag); |
---|
| 470 | void screennetwork_test(); |
---|
| 471 | void screennetwork_wlan(); |
---|
| 472 | |
---|
| 473 | //channel.h |
---|
| 474 | int writechannel(const char *filename); |
---|
[36337] | 475 | 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] | 476 | void delchannelbytransponder(uint64_t transponderid); |
---|
[18190] | 477 | struct channel* gettmpchannel(); |
---|
[18431] | 478 | int delchannel(int serviceid, uint64_t transponderid, int flag); |
---|
[18190] | 479 | int movechanneldown(struct channel* node); |
---|
| 480 | int movechannelup(struct channel* node); |
---|
[22442] | 481 | struct channel* sortchannel(); |
---|
[18190] | 482 | |
---|
| 483 | //transponder.h |
---|
[36337] | 484 | struct transponder* gettransponder(uint64_t transponderid); |
---|
[18190] | 485 | int writetransponder(const char *filename); |
---|
| 486 | void deltransponderbyorbitalpos(int orbitalpos); |
---|
| 487 | void deltransponder(struct transponder* tpnode); |
---|
| 488 | |
---|
| 489 | //sat.h |
---|
| 490 | int writesat(const char *filename); |
---|
| 491 | void delsat(char *name); |
---|
| 492 | struct sat* getsatbyorbitalpos(int orbitalpos); |
---|
| 493 | int movesatdown(struct sat* node); |
---|
| 494 | int movesatup(struct sat* node); |
---|
[24228] | 495 | int sat2bouquet(int orbitalpos, int flag); |
---|
[18190] | 496 | |
---|
| 497 | //provider.h |
---|
| 498 | int writeprovider(const char *filename); |
---|
| 499 | void delprovidernotused(struct provider* node); |
---|
| 500 | int moveproviderdown(struct provider* node); |
---|
| 501 | int moveproviderup(struct provider* node); |
---|
[30524] | 502 | struct provider* sortprovider(); |
---|
[18190] | 503 | |
---|
| 504 | //httpd.h |
---|
| 505 | void httpdthreadfunc(struct stimerthread* timernode); |
---|
| 506 | void sendoktext(int* connfd, char* text, int auth); |
---|
| 507 | |
---|
| 508 | //skinconfig.h |
---|
| 509 | int getskinconfigint(char *key, char *ext); |
---|
| 510 | char* getskinconfig(char *key, char *ext); |
---|
| 511 | |
---|
| 512 | //record.h |
---|
| 513 | struct service* getrecordbyname(char* recname, int type); |
---|
| 514 | int recordskipplay(struct service* servicenode, int sekunden); |
---|
| 515 | void recordffrwts(struct service* servicenode, int speed); |
---|
| 516 | |
---|
| 517 | //dvdplayer.h |
---|
| 518 | int dvdstart(char* filename); |
---|
| 519 | int dvdisplaying(); |
---|
| 520 | void dvdgotmessage(); |
---|
| 521 | int dvdkeypress(int key); |
---|
| 522 | int dvdmenuopen(); |
---|
| 523 | void dvdchangevideo(); |
---|
| 524 | void dvdafterend(); |
---|
| 525 | |
---|
| 526 | // play.h |
---|
| 527 | void playerffts(int speed); |
---|
[19953] | 528 | int screenplay(char* startfile, char* showname, int startfolder, int flag); |
---|
[18190] | 529 | void playrcstop(int playertype, int flag); |
---|
[19953] | 530 | void playwritevfd(char* file, char* showname); |
---|
[18190] | 531 | void playstartservice(); |
---|
[19953] | 532 | void screenplayinfobar(char* file, char* showname, int mode, int playertype, int flag); |
---|
| 533 | void playrcgreen(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[20102] | 534 | int playrcred(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[19953] | 535 | void playrcinfo(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 536 | void playrcff(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 537 | void playrcfr(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 538 | void playrcpause(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 539 | void playrcplay(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 540 | void playrcjumpr(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 541 | void playrcjumpf(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[18973] | 542 | void get_mediadb_scan_info(); |
---|
[19975] | 543 | void playrcblue(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 544 | void playrcyellow(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 545 | void playrctext(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
| 546 | void playrcok(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
[20192] | 547 | int playcheckdirrcret(char* file, int dirrcret); |
---|
[20848] | 548 | void playrcjumpto(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[32127] | 549 | #ifdef EPLAYER4 |
---|
[32126] | 550 | void playersend_ff_fr_event(gdouble rate); |
---|
[32127] | 551 | #endif |
---|
[18190] | 552 | |
---|
| 553 | //inetwork.h |
---|
| 554 | struct inetwork* getinetworkbydevice(char* device); |
---|
[20685] | 555 | struct inetwork* getinetworkfirstwlan(); |
---|
[18190] | 556 | |
---|
| 557 | //fb.h |
---|
| 558 | void blitfb(int flag); |
---|
[24090] | 559 | void blitfb1(); |
---|
[20751] | 560 | void changefbresolution(char *value, int flag); |
---|
[18190] | 561 | void setfbtransparent(int value); |
---|
[36560] | 562 | 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] | 563 | void blitfb2(struct fb* fbnode, int flag); |
---|
| 564 | void delfb(char *name); |
---|
| 565 | void fb2png_thread(); |
---|
| 566 | int fb2png(unsigned char *buf_p, int width, int height, char *outfile); |
---|
| 567 | void clearfball(); |
---|
[26475] | 568 | void closefb(); |
---|
[18190] | 569 | |
---|
| 570 | //timerthread.h |
---|
| 571 | struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last); |
---|
[19612] | 572 | void deltimer(struct stimerthread *tnode, int flag); |
---|
[18190] | 573 | struct stimerthread* gettimerbythread(pthread_t thread); |
---|
| 574 | |
---|
| 575 | //epgscanlist.h |
---|
[18431] | 576 | struct epgscanlist* getepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 577 | int writeepgscanlist(const char *filename); |
---|
[18431] | 578 | int delepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 579 | |
---|
| 580 | //rectimer.h |
---|
| 581 | int readrectimer(char *filename); |
---|
| 582 | int writerectimer(const char *filename, int flag); |
---|
| 583 | int recordcheckcrypt(struct dvbdev* fenode, int servicetype); |
---|
| 584 | int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode); |
---|
| 585 | char* recordcheckret(struct stimerthread* timernode, int ret, int flag); |
---|
| 586 | void checkrecepgret(int ret); |
---|
| 587 | int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist); |
---|
| 588 | struct rectimer* getrectimerbyservice(struct service* servicenode); |
---|
| 589 | void delrectimer(struct rectimer* rectimernode, int write, int flag); |
---|
| 590 | int rectimergetaktday(); |
---|
[20192] | 591 | int addrectimer(char *buf); |
---|
[21149] | 592 | struct rectimer* addrectimernode(char* line, struct rectimer* last); |
---|
| 593 | int checkrectimerconflict(struct rectimer* recnode); |
---|
[38317] | 594 | struct rectimer* getrectimerbytimediff(time_t timediff); |
---|
[18190] | 595 | |
---|
| 596 | //dvb.h |
---|
| 597 | unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout); |
---|
| 598 | int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
| 599 | int dvbwrite(int fd, unsigned char* buf, int count, int tout); |
---|
| 600 | int dvbgetdate(time_t* time, int timeout); |
---|
| 601 | int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize); |
---|
| 602 | int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize); |
---|
| 603 | |
---|
| 604 | //pin.h |
---|
| 605 | int screenpincheck(int type, char* pin); |
---|
| 606 | void screenpin(); |
---|
| 607 | |
---|
| 608 | //videomode.h |
---|
| 609 | void screenvideomode(int flag); |
---|
| 610 | |
---|
| 611 | //pic.h |
---|
| 612 | void delpic(char* name); |
---|
| 613 | struct pic* getpic(char* name); |
---|
| 614 | void delmarkedpic(int del); |
---|
| 615 | 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); |
---|
| 616 | |
---|
| 617 | //showiframe.h |
---|
| 618 | int singlepicstart(const char *filename, int flag); |
---|
[44115] | 619 | void showsinglepic(); |
---|
[18190] | 620 | |
---|
| 621 | //player.h |
---|
[19843] | 622 | void playerslowts(int speed); |
---|
[18190] | 623 | void playerff(int speed); |
---|
| 624 | void playerfr(int speed); |
---|
| 625 | void playercontinue(); |
---|
| 626 | void playerpause(); |
---|
| 627 | int playerstop(); |
---|
| 628 | void playerseek(float sec); |
---|
| 629 | int playerstart(char* file); |
---|
[18429] | 630 | unsigned long long playergetpts(); |
---|
[18190] | 631 | double playergetlength(); |
---|
| 632 | int playergetinfots(unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* aktpts, unsigned long long* bitrate, int flag); |
---|
| 633 | int playerisplaying(); |
---|
| 634 | void playerafterend(); |
---|
[19761] | 635 | int playergetbuffersize(); |
---|
| 636 | int playergetbufferstatus(); |
---|
[25480] | 637 | off64_t playergetptspos(unsigned long long fpts, off64_t pos, int dir, int praez, int type, int flag, char* dsn); |
---|
[28328] | 638 | void playerafterendts(); |
---|
| 639 | int playerisplayingts(); |
---|
| 640 | char* playergetinfo(char* tag); |
---|
| 641 | int playerstartts(char* file, int flag); |
---|
[30713] | 642 | #ifdef EPLAYER4 |
---|
[30700] | 643 | static void analyze_streams(CustomData *data); |
---|
[30713] | 644 | #endif |
---|
[18190] | 645 | |
---|
| 646 | //filelist.h |
---|
| 647 | void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection); |
---|
| 648 | int createfilelist(struct skin* screen, struct skin* node, int view); |
---|
[19974] | 649 | void getfilelistmax(struct skin* filelist, int* maxdirs, int* maxfiles); |
---|
| 650 | struct skin* getfilelistrandom(struct skin* filelist, int maxdirs, int maxfiles); |
---|
[23005] | 651 | int filelistflt(char* filter, char* name); |
---|
[18190] | 652 | |
---|
| 653 | //plugin.h |
---|
| 654 | struct skin* getplugin(char* pluginname); |
---|
| 655 | int loadplugin(); |
---|
| 656 | |
---|
| 657 | //listbox.h |
---|
| 658 | int setlistboxselection(struct skin* listbox, char* childname); |
---|
| 659 | |
---|
| 660 | //list.h |
---|
| 661 | struct clist* addlist(struct clist **clist, char *key1, char *value1); |
---|
| 662 | void freelist(struct clist** clist); |
---|
| 663 | struct clist* addlisttmp(struct clist **clist, char *key1, char *value1); |
---|
[28331] | 664 | char* getlist(struct clist **clist, char *key, char *ext); |
---|
[28333] | 665 | int writelist(struct clist **clist, const char *filename); |
---|
[18190] | 666 | |
---|
| 667 | //choicebox.h |
---|
| 668 | int setchoiceboxselection(struct skin* choicebox, char* value); |
---|
| 669 | int addchoicebox(struct skin* choicebox, char* value, char* text); |
---|
| 670 | |
---|
| 671 | //ownconfig.h |
---|
| 672 | char* getownconfig(char *key); |
---|
| 673 | char* getownconfigq(char *key); |
---|
| 674 | struct clist* addownconfigscreentmp(char *key, struct skin *node); |
---|
| 675 | struct clist* addownconfigscreenqtmp(char *key, struct skin *node); |
---|
| 676 | struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check); |
---|
| 677 | int writeownconfigtmp(); |
---|
| 678 | void delownconfigtmpall(); |
---|
| 679 | struct clist* addownconfig(char *key, char *value); |
---|
| 680 | |
---|
| 681 | //infobar.h |
---|
| 682 | void fillinfobar(); |
---|
| 683 | |
---|
| 684 | //menulist.h |
---|
| 685 | void freemenulist(struct menulist* mlist, int delparam); |
---|
| 686 | void addmenulistall(struct menulist** mlist, char* allname, char* pic, int deaktiv, char* defaultentry); |
---|
| 687 | struct menulist* addmenulist(struct menulist** mlist, char* name, char* text, char* pic, int deaktiv, int defaultentry); |
---|
[27740] | 688 | struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* skindetails, char* paramskinpath, char* defaultpic, int showpng, int flag); |
---|
| 689 | struct menulist* menulistboxext(struct menulist* mlist, char* paramskinname, char* skintitle, char* skindetails, char* paramskinpath, char* defaultpic, int showpng, int* rcreturn, int flag); |
---|
[18190] | 690 | void setmenulistdefault(struct menulist* mlist, char* defaultentry); |
---|
[23288] | 691 | void changemenulistparam(struct menulist* mlist, char* param, char* param1, char* param2, char* param3); |
---|
[18190] | 692 | |
---|
| 693 | //skinfunc.h |
---|
| 694 | char* gettime(struct skin* node, char* format); |
---|
| 695 | char* getepgakttitle(struct skin* node); |
---|
| 696 | |
---|
| 697 | //skin.h |
---|
[20245] | 698 | void* convertfunc(char *value, uint8_t *rettype); |
---|
[18190] | 699 | void restorescreennofree(char* buf, struct skin* node); |
---|
| 700 | unsigned char *loadjpg(char *filename, unsigned long *width, unsigned long *height, unsigned long *rowbytes, int *channels, int denom); |
---|
| 701 | int changeselectpic(struct skin* node, char* text); |
---|
| 702 | void calcautoscale(int width, int height, int mwidth, int mheight, int* scalewidth, int* scaleheight); |
---|
| 703 | void blitscale(int posx, int posy, int width, int height, int scalewidth, int scaleheight, int flag); |
---|
| 704 | unsigned char* scale(unsigned char* buf, int width, int height, int channels, int newwidth, int newheight, int free1); |
---|
| 705 | void blitrect(int posx, int posy, int width, int height, long color, int transparent, int mode); |
---|
| 706 | void fillrect(int posx, int posy, int width, int height, long color, int transparent); |
---|
| 707 | int setnodeattr(struct skin* node, struct skin* parent, int screencalc); |
---|
| 708 | void clearscreennolock(struct skin* node); |
---|
| 709 | void clearshadow(struct skin* node); |
---|
| 710 | char* savescreen(struct skin* node); |
---|
| 711 | void restorescreen(char* buf, struct skin* node); |
---|
| 712 | char* changepicpath(char* picname); |
---|
| 713 | long convertcol(char *value); |
---|
| 714 | void delmarkedscreen(int del); |
---|
| 715 | void delscreen(struct skin *node); |
---|
| 716 | void delscreennode(struct skin *node, char* nodename); |
---|
| 717 | int readscreen(char *filename, int del, int flag); |
---|
| 718 | int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd); |
---|
| 719 | 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); |
---|
| 720 | void delmarkedscreennodes(struct skin* node, int mark); |
---|
| 721 | void clearscreen(struct skin* node); |
---|
| 722 | struct skin* getscreennode(struct skin *node, char* nodename); |
---|
[23090] | 723 | struct skin* checkscreennode(struct skin *node, char* nodename); |
---|
[18190] | 724 | struct skin* getscreen(char* screenname); |
---|
| 725 | int calcrheight(struct skin* node, struct skin* parent); |
---|
| 726 | int drawscreen(struct skin* node, int screencalc, int flag); |
---|
| 727 | struct skin* addscreennode(struct skin* node, char* line, struct skin* last); |
---|
| 728 | int changetext(struct skin* node, char* text); |
---|
| 729 | int changetext2(struct skin* node, char* text); |
---|
| 730 | int changeinput(struct skin* node, char* text); |
---|
| 731 | int changename(struct skin* node, char* text); |
---|
| 732 | int changeret(struct skin* node, char* text); |
---|
| 733 | int changepic(struct skin* node, char* text); |
---|
| 734 | int changetitle(struct skin* node, char* text); |
---|
| 735 | int changefont(struct skin* node, char* text); |
---|
| 736 | int changemask(struct skin* node, char* text); |
---|
| 737 | int changepicmem(struct skin* node, char* text, int timeout, int del); |
---|
| 738 | int convertxmlentry(char *value, uint8_t *proz); |
---|
| 739 | unsigned char* savejpg(char* filename, int width, int height, int channels, int newwidth, int newheight, int quality, unsigned char *buf); |
---|
[39306] | 740 | static inline void drawpixelfastfb(struct fb* node, int posx, int posy, unsigned long color); |
---|
| 741 | static inline void drawpixelfb(struct fb* node, int posx, int posy, unsigned long color); |
---|
[29159] | 742 | unsigned char * resize(unsigned char *origin, int ox, int oy, int dx, int dy, int type, unsigned char * dst, int flag); |
---|
[42990] | 743 | static inline void drawpixelfast(int posx, int posy, unsigned long color); |
---|
| 744 | static inline void drawpixel(int posx, int posy, unsigned long color); |
---|
| 745 | static inline unsigned long getpixelbuf(char* buf, int posx, int posy, int bufwidth); |
---|
[18190] | 746 | |
---|
| 747 | //volume.h |
---|
| 748 | void screenvolumeup(); |
---|
| 749 | void screenvolumedown(); |
---|
| 750 | |
---|
[18430] | 751 | //mute.h |
---|
| 752 | void screenmute(struct skin* screen, struct skin* node, int flag); |
---|
| 753 | |
---|
[18190] | 754 | //menu.h |
---|
| 755 | int menucall(struct skin* menunode, struct skin* menuentry, int check); |
---|
| 756 | |
---|
| 757 | //textbox.h |
---|
| 758 | 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); |
---|
| 759 | |
---|
| 760 | //config.h |
---|
| 761 | struct clist* addconfig(char *key, char *value); |
---|
| 762 | void delconfigtmpall(); |
---|
| 763 | struct clist* addconfigscreencheck(char *key, struct skin *node, char* check); |
---|
[19974] | 764 | struct clist* addconfigscreen(char *key, struct skin *node); |
---|
[18190] | 765 | struct clist* addconfigdef(char *key, char *value); |
---|
| 766 | struct clist* addconfigtmp(char *key, char *value); |
---|
| 767 | char* getconfig(char *key, char *ext); |
---|
| 768 | char* getconfignotmp(char *key, char *ext); |
---|
| 769 | int getconfigint(char *key, char* ext); |
---|
| 770 | void delconfig(char *key); |
---|
| 771 | void delconfigtmp(char *key); |
---|
| 772 | struct clist* addconfiginttmp(char *key, int value); |
---|
| 773 | int writeconfigtmp(); |
---|
| 774 | int readconfig(const char *filename, struct clist** tmpconfig); |
---|
| 775 | struct clist* addconfigint(char *key, int value); |
---|
[28435] | 776 | void menucheckentry(struct skin* child); |
---|
[18190] | 777 | |
---|
| 778 | //rc.h |
---|
| 779 | int waitrcext(struct skin* owner, unsigned int timeout, int screencalc, int filelistview); |
---|
| 780 | int waitrc(struct skin* owner, unsigned int timeout, int flag); |
---|
| 781 | void delownerrc(struct skin* owner); |
---|
[18431] | 782 | struct rc* addrc(int key, void *func, struct skin* screen, struct skin *screennode); |
---|
[18190] | 783 | void delrc(int key, struct skin* owner, struct skin* screennode); |
---|
| 784 | int flushrc(unsigned int timeout); |
---|
[19974] | 785 | int writerc(int keycode); |
---|
[18190] | 786 | |
---|
| 787 | //rcfunc.h |
---|
| 788 | void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int screencalc, int filelistview, int flag); |
---|
[42909] | 789 | void inputboxchar2(struct skin* screen, struct skin* inputbox, char* zeichen, int screencalc, int filelistview, int flag); |
---|
[18190] | 790 | void inputboxff(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 791 | void inputboxfr(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 792 | void inputboxright(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 793 | void inputboxleft(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 794 | int addscreenrc(struct skin* screen, struct skin* node); |
---|
| 795 | void checkinputboxnumright(struct skin* inputbox); |
---|
| 796 | int delscreenrc(struct skin* screen, struct skin* node); |
---|
| 797 | |
---|
| 798 | //spinner.h |
---|
| 799 | void screenspinner(); |
---|
| 800 | |
---|
| 801 | //global.h |
---|
[41635] | 802 | int getwaswakuptimer(); |
---|
[24422] | 803 | char* getmacfromcmdline(); |
---|
[24036] | 804 | char* createpluginpath(char* text, int flag); |
---|
[23305] | 805 | void delspezchar(char* text, int flag); |
---|
[21758] | 806 | int osystem(char* cmd, int timeout); |
---|
[19543] | 807 | char* mask(char* input, int count, char* maskchar); |
---|
[19478] | 808 | char* getboxtype(); |
---|
[18934] | 809 | char* getfilenameext(char* filename); |
---|
[18216] | 810 | void startnet(); |
---|
[18190] | 811 | int checkdirext(char* dir, char* ext); |
---|
| 812 | char* string_replace_all(char *search, char *replace, char *string, int free1); |
---|
| 813 | struct tm* olocaltime(time_t *value); |
---|
| 814 | void setskinnodeslocked(int flag); |
---|
| 815 | char* stringreplacecharonce(char *str, char c1, char c2); |
---|
[40382] | 816 | int getrandomnum(int max); |
---|
[18190] | 817 | int clearbit(int value, int bitpos); |
---|
| 818 | int checkbit(int value, int bitpos); |
---|
| 819 | char* addmountpart(char* filename, int free1); |
---|
| 820 | char* string_removechar(char *str); |
---|
| 821 | unsigned int gethash(char* str); |
---|
| 822 | char* oregex(char* regex, char* str); |
---|
| 823 | int resettvpic(); |
---|
| 824 | unsigned long readsysul(const char *filename, int line); |
---|
[24781] | 825 | unsigned long long readsysull(const char *filename, int line); |
---|
[18190] | 826 | char* oitoax(int value); |
---|
| 827 | void closeonexec(int fd); |
---|
| 828 | char* ostrstrcase(char* str, char* sub); |
---|
| 829 | char* getdevcontent(char* devconfig); |
---|
| 830 | char* getxmlentry(char *line, char *searchstr); |
---|
[20730] | 831 | void debugstack(int sig, void* address, void* address1); |
---|
[18190] | 832 | char* string_strip_whitechars(char *text); |
---|
| 833 | int ounzip(char* inbuf, int inlen, char** outbuf, int* outlen, int maxbuf, int flag); |
---|
| 834 | int ozip(char* inbuf, int inlen, char** outbuf, int* outlen, int level); |
---|
| 835 | int delallfiles(char* dir, char* ext); |
---|
| 836 | unsigned long getfilecount(char* dir); |
---|
| 837 | char* readfiletomem(const char* filename, int flag); |
---|
[19831] | 838 | char* readbintomem(const char* filename, size_t size); |
---|
[18190] | 839 | int setbit(int value, int bitpos); |
---|
| 840 | char* changefilenameext(char* filename, char* ext); |
---|
| 841 | void destroy(); |
---|
| 842 | void htmldecode(char* to, char* from); |
---|
[35507] | 843 | void htmldecode2(char* to, char* from); |
---|
[18190] | 844 | void setosdtransparent(int value); |
---|
| 845 | char* string_shortname(char *tmpfilename, int mode); |
---|
| 846 | off64_t getfilesize(char* name); |
---|
| 847 | struct splitstr* strsplit(char *str, char *tok, int* count); |
---|
| 848 | char* strstrip(char *text); |
---|
| 849 | char* fixip(char* ipinput, int flag); |
---|
| 850 | void m_lock(pthread_mutex_t *mutex, int flag); |
---|
| 851 | void m_unlock(pthread_mutex_t *mutex, int flag); |
---|
[23979] | 852 | int setcolorformat(char* value, int flag); |
---|
[18190] | 853 | int setvideomode(char* value, int flag); |
---|
| 854 | char* convert_timesec(int sec); |
---|
| 855 | int writesys(const char *filename, char *value, int flag); |
---|
| 856 | int setsystime(time_t* newtime); |
---|
| 857 | int checkbox(char* box); |
---|
| 858 | int setpolicy(char* value); |
---|
| 859 | char* getpolicy(); |
---|
| 860 | char* string_newline(char* str); |
---|
| 861 | char* get_label(char* device); |
---|
| 862 | char* string_quote(char* str); |
---|
| 863 | int file_exist(char* filename); |
---|
| 864 | char* ostrstr(char* str, char* search); |
---|
| 865 | char* createpath(char* dir, char* file); |
---|
| 866 | char* get_ipk_install(char* ipk); |
---|
| 867 | char* get_ipk_tmpinstall(char* path, char* ipk); |
---|
| 868 | char* get_ipk_listinstall(); |
---|
| 869 | char* get_ipk_tmplistinstall(); |
---|
| 870 | char* string_toupper(char *str); |
---|
| 871 | char* get_ipk_remove(char* ipk); |
---|
| 872 | char* get_ipk_section(); |
---|
| 873 | char* get_ipk_list(char* section); |
---|
| 874 | char* string_tolower(char *str); |
---|
| 875 | int isfile(char* name); |
---|
| 876 | char* command(char* input); |
---|
| 877 | char* oitoa(int value); |
---|
| 878 | char* olutoa(unsigned long value); |
---|
[18431] | 879 | char* ollutoa(uint64_t value); |
---|
[18190] | 880 | int ostrcmp(char* value1, char* value2); |
---|
| 881 | int ostrcasecmp(char* value1, char* value2); |
---|
[19467] | 882 | char* ostrshrink(char* value); |
---|
[18190] | 883 | char* ostrcat(char* value1, char* value2, int free1, int free2); |
---|
[24441] | 884 | void ostrcatbig(char** value1, char* value2, int* maxlen, int* pos); |
---|
[18190] | 885 | int ostrncmp(char* value1, char* value2, int count); |
---|
| 886 | char* readsys(const char *filename, int line); |
---|
| 887 | char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1); |
---|
| 888 | char* string_replace(char *search, char *replace, char *string, int free1); |
---|
| 889 | int writesysint(const char *filename, int value, int flag); |
---|
| 890 | char* string_remove_whitechars(char *text); |
---|
| 891 | void setfanspeed(int speed, int aktion); |
---|
| 892 | int writeallconfig(int flag); |
---|
| 893 | int checkemu(); |
---|
| 894 | int setvol(int value); |
---|
| 895 | int getvol(); |
---|
| 896 | char* stringreplacechar(char *str, char c1, char c2); |
---|
| 897 | char* getcpuid(); |
---|
| 898 | void get_ipk_update(); |
---|
| 899 | char* string_decode(char* input, int flag); |
---|
| 900 | char* string_striptags(char* filename); |
---|
| 901 | char* string_resub(char* str, char* str2, char* input, int dir); |
---|
| 902 | int cmpfilenameext(char* filename, char* ext); |
---|
| 903 | void killnet(); |
---|
| 904 | void checkserial(char* input); |
---|
| 905 | int checkprozess(char* input); |
---|
| 906 | struct regex* regexstruct(char* regex, char* str); |
---|
| 907 | void freeregexstruct(struct regex* node); |
---|
| 908 | char fromhex(char c); |
---|
[18936] | 909 | char* unhexlify(char *hexstr); |
---|
[18190] | 910 | int isdir(char* name); |
---|
[43926] | 911 | int islink(char* name); |
---|
[18190] | 912 | void htmldecode3(char* to, char* from); |
---|
| 913 | char* string_deltags(char* str); |
---|
| 914 | char* readfromlinetoline(char* str, int start, int end, int flag); |
---|
[18209] | 915 | int checkdev(char* dev); |
---|
[18987] | 916 | char* getvideomode(); |
---|
[19304] | 917 | int checkinternet(); |
---|
[19535] | 918 | struct splitstr* oregexsplit(char* regex, char *str, char *tok, int* count); |
---|
| 919 | void freeoregexsplit(struct splitstr* tmparray, int len); |
---|
[19935] | 920 | char* fixport(char* input, int flag); |
---|
[20190] | 921 | char* getispip(); |
---|
[21618] | 922 | int getlfiletype(char* filename); |
---|
[21680] | 923 | unsigned long long getfreespace(char* dir); |
---|
[23003] | 924 | char* getfilenamepng(char* filename); |
---|
[24253] | 925 | char* htmlencode(char* from); |
---|
[24423] | 926 | void waitmsgbar(int sec, int exit, char* text, int flag); |
---|
[25133] | 927 | char* getcolorformat(int line); |
---|
[25392] | 928 | void set_player_sound(int flag); |
---|
[25830] | 929 | void screenshoot(int flag); |
---|
[25843] | 930 | void guestthread(); |
---|
[28641] | 931 | int vbulletin_userauth(char* link, char* user, char* pass); |
---|
| 932 | int phpkit_userauth(char* link, char* user, char* pass); |
---|
[29186] | 933 | int converte2settings(int flag); |
---|
[31660] | 934 | char* getmoviedev(); |
---|
| 935 | void wakeup_record_device(); |
---|
[32362] | 936 | char* getaspect(); |
---|
[35337] | 937 | char* randomstring(int n); |
---|
[18190] | 938 | |
---|
| 939 | //rcconfig.h |
---|
| 940 | int getrcconfigint(char *key, char* ext); |
---|
| 941 | char* getrcconfig(char *key, char *ext); |
---|
| 942 | int reloadconfig(char *filename); |
---|
| 943 | |
---|
| 944 | //service.h |
---|
[20510] | 945 | struct service* getservicebyrecname(char* recname, int type, int flag); |
---|
[18190] | 946 | struct service* getservicebyservice(struct service* node, int flag); |
---|
| 947 | struct service* getservicebychannel(struct channel* chnode); |
---|
| 948 | struct service* checkservice(struct service* node); |
---|
| 949 | struct service* addservice(struct service* last); |
---|
| 950 | void delservice(struct service* snode, int flag); |
---|
| 951 | int servicestop(struct service *node, int clear, int flag); |
---|
| 952 | int servicestart(struct channel* chnode, char* channellist, char* pin, int flag); |
---|
| 953 | void serviceresetchannelinfo(struct channel* chnode); |
---|
| 954 | struct service* getservice(int type, int flag); |
---|
| 955 | char* servicecheckret(int ret, int flag); |
---|
| 956 | |
---|
| 957 | //mainbouquets.h |
---|
| 958 | int writemainbouquet(const char *filename); |
---|
| 959 | int writeallbouquet(); |
---|
| 960 | struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode); |
---|
| 961 | int movemainbouquetdown(struct mainbouquet* node); |
---|
| 962 | int movemainbouquetup(struct mainbouquet* node); |
---|
| 963 | struct mainbouquet* addmainbouquet(char *line, int count, struct mainbouquet* last); |
---|
[22342] | 964 | struct mainbouquet* screenmainbouquet(); |
---|
[22343] | 965 | int mainbouquet2epgscanlist(struct mainbouquet* mnode); |
---|
| 966 | int mainbouquet2channelslot(struct mainbouquet* mnode, int slot); |
---|
[24228] | 967 | void delmainbouquet(char *name, int flag); |
---|
[18190] | 968 | |
---|
| 969 | //listbox.h |
---|
| 970 | struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del); |
---|
| 971 | |
---|
| 972 | //bouquets.h |
---|
[18431] | 973 | void delbouquetbychannel(int serviceid, uint64_t transponderid); |
---|
| 974 | struct bouquet* getbouquetbychannelmain(int serviceid, uint64_t transponderid); |
---|
[18190] | 975 | void recalcbouquetnr(); |
---|
[18431] | 976 | void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid); |
---|
| 977 | void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode); |
---|
[18190] | 978 | int movebouquetdown(struct bouquet* node); |
---|
| 979 | int movebouquetup(struct bouquet* node); |
---|
| 980 | struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last); |
---|
[22458] | 981 | struct bouquet* sortbouquet(struct bouquet **nodeaddr); |
---|
[18190] | 982 | |
---|
| 983 | //audiotrack.h |
---|
| 984 | void screenaudiotrack(); |
---|
| 985 | struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last); |
---|
| 986 | void freeaudiotrack(struct channel* chnode); |
---|
| 987 | |
---|
| 988 | //subtitle.h |
---|
| 989 | void screensubtitle(); |
---|
| 990 | struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last); |
---|
| 991 | void freesubtitle(struct channel* chnode); |
---|
| 992 | int subtitlestop(int flag); |
---|
| 993 | int subtitlepause(int flag); |
---|
[24620] | 994 | void changelastsubtitle(struct lastsubtitle* lsnode, int pid, int id1, int id2); |
---|
[20233] | 995 | void dellastsubtitle(struct lastsubtitle* lsnode); |
---|
| 996 | struct lastsubtitle* addlastsubtitle(char* line, int count, struct lastsubtitle* last); |
---|
| 997 | struct lastsubtitle* getlastsubtitle(uint64_t transponderid, int serviceid); |
---|
[20280] | 998 | int subtitlestartlast(); |
---|
| 999 | int writelastsubtitle(const char *filename); |
---|
[18190] | 1000 | |
---|
| 1001 | //linkedchannel.h |
---|
[21072] | 1002 | struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, time_t starttime, time_t endtime, struct linkedchannel* last); |
---|
[18190] | 1003 | void freelinkedchannel(struct channel* chnode); |
---|
| 1004 | void screenlinkedchannel(); |
---|
[21072] | 1005 | struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, time_t starttime, time_t endtime); |
---|
| 1006 | void dellinkedchannel(struct channel* chnode, struct linkedchannel* lnode, int flag); |
---|
| 1007 | void deloldlinkedchannel(); |
---|
[18190] | 1008 | |
---|
| 1009 | //zap.h |
---|
| 1010 | void zapup(); |
---|
| 1011 | void zapdown(); |
---|
| 1012 | |
---|
| 1013 | //epg.h |
---|
[20348] | 1014 | int screensingleepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 1015 | int screenepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
[19251] | 1016 | |
---|
| 1017 | //eit.h |
---|
[19253] | 1018 | void epgthreadfunc(struct stimerthread* self); |
---|
[19251] | 1019 | struct epg* getepgnext(struct channel* chnode); |
---|
[18190] | 1020 | int writeepg(const char* filename); |
---|
| 1021 | void freeepg(struct channel* chnode); |
---|
| 1022 | struct epg* getepgakt(struct channel* chnode); |
---|
| 1023 | struct epg* getepgbytime(struct channel* chnode, time_t akttime); |
---|
| 1024 | char* epgdescunzip(struct epg* epgnode); |
---|
[18571] | 1025 | struct epg* addoldentryepg(struct channel* chnode, struct epg* newnode, int flag); |
---|
| 1026 | void deloldentryepg(struct epg* node); |
---|
[18673] | 1027 | void clearepgentry(struct epg* node); |
---|
[18190] | 1028 | |
---|
| 1029 | //standby.h |
---|
| 1030 | void screenstandby(); |
---|
| 1031 | |
---|
| 1032 | //channelcache.h |
---|
[18431] | 1033 | void delchannelcache(int serviceid, uint64_t transponderid); |
---|
| 1034 | struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel*); |
---|
| 1035 | struct channel* getchannel(int serviceid, uint64_t transponderid); |
---|
[18190] | 1036 | |
---|
| 1037 | // vfd.h |
---|
| 1038 | int setvfdicon(vfdicons id, int onoff); |
---|
| 1039 | int writevfd(char *value); |
---|
[21191] | 1040 | int writevfdmenu(char *value); |
---|
[39489] | 1041 | void setled(int typ); |
---|
[18190] | 1042 | |
---|
| 1043 | //skinfunc.h |
---|
| 1044 | char* getaktchannelname(); |
---|
| 1045 | char* getrec(); |
---|
| 1046 | |
---|
[19651] | 1047 | //marker.h |
---|
| 1048 | struct marker* addmarkernode(off64_t pos); |
---|
[19652] | 1049 | int delmarkernode(off64_t pos); |
---|
[19681] | 1050 | int delmarker(char* timetext); |
---|
[19662] | 1051 | int getmarker(char* dateiname); |
---|
| 1052 | int putmarker(char* dateiname); |
---|
[19663] | 1053 | int setmarker(); |
---|
[19680] | 1054 | int jumpmarker(char* timetext); |
---|
[25495] | 1055 | void screenmarker(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
[25492] | 1056 | off64_t getcurrentpos(struct service* snode); |
---|
[25644] | 1057 | void markerautoseek_thread(); |
---|
[19651] | 1058 | |
---|
[28941] | 1059 | //oled.h |
---|
[28943] | 1060 | void write2oled(unsigned char *buf, int xres, int yres); |
---|
[29235] | 1061 | struct fb* oledaddfb(int width, int height); |
---|
[29094] | 1062 | int oledtext(char *value); |
---|
[36636] | 1063 | void initOLEDdream1(); |
---|
[28941] | 1064 | |
---|
[30771] | 1065 | #ifdef MIPSEL |
---|
| 1066 | //cec.h |
---|
| 1067 | void cecinit(); |
---|
| 1068 | void cecstandby(); |
---|
| 1069 | void cecwakeup(); |
---|
| 1070 | void screencec(); |
---|
| 1071 | void getAddressInfo(); |
---|
| 1072 | int getPhysicalAddress(); |
---|
| 1073 | void hdmiEvent(); |
---|
| 1074 | void reportPhysicalAddress(); |
---|
| 1075 | void sendMessage(unsigned char address, unsigned char cmd, char *data, int length); |
---|
| 1076 | void sendMessageReal(struct cec_message message); |
---|
| 1077 | void setFixedPhysicalAddress(int address); |
---|
[40417] | 1078 | void forwardKey(int key); |
---|
[31367] | 1079 | //encoder.h |
---|
[31391] | 1080 | struct dvbdev* encoderopen(int flag); |
---|
[18190] | 1081 | #endif |
---|
[30771] | 1082 | |
---|
[43239] | 1083 | #ifdef OEBUILD |
---|
| 1084 | //ipkg.h |
---|
| 1085 | void freeipkg(); |
---|
| 1086 | int ipkg_update(void); |
---|
| 1087 | int ipkg_upgrade(void); |
---|
| 1088 | int ipkg_list(void); |
---|
| 1089 | int ipkg_install(const char* package); |
---|
| 1090 | int ipkg_remove(const char* package, int purge); |
---|
| 1091 | struct menulist* ipkmenulist(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* section, int showpng, int flag); |
---|
| 1092 | int ipkg_list_installed(void); |
---|
[30771] | 1093 | #endif |
---|
[43239] | 1094 | |
---|
| 1095 | #endif |
---|