[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 |
---|
| 10 | |
---|
[18403] | 11 | //sh4port.h and other ports |
---|
| 12 | int videodiscontinuityskip(struct dvbdev* node, int flag); |
---|
| 13 | |
---|
| 14 | //system_infos.h |
---|
[18190] | 15 | void screensystem_infos(int mode); |
---|
[18403] | 16 | |
---|
| 17 | //system_infos_sysinfo.h |
---|
[18190] | 18 | void screensystem_infos_sysinfo(int mode); |
---|
| 19 | |
---|
[18403] | 20 | //textinputhist.h |
---|
| 21 | char* textinputhist(char* title, char* text, char* histname); |
---|
| 22 | |
---|
[18302] | 23 | //unicable.h |
---|
[18311] | 24 | void screenunicable(struct skin* loftype, struct skin* lofl, struct skin* lofh, struct skin* satcr, struct skin* satcrfrequ2); |
---|
[18190] | 25 | |
---|
| 26 | //rc4.h |
---|
| 27 | void rc4(char *data, size_t dlen, char *key, size_t klen); |
---|
| 28 | |
---|
| 29 | //md5.h |
---|
| 30 | char* MDString (char *string); |
---|
| 31 | char* MDFile (char *string); |
---|
| 32 | char* MDPrint (unsigned char digest[16]); |
---|
| 33 | |
---|
| 34 | //unlock.h |
---|
| 35 | void screenunlock(); |
---|
| 36 | |
---|
| 37 | //serial.h |
---|
| 38 | void screenserial(); |
---|
| 39 | |
---|
| 40 | //ocrypt.h |
---|
| 41 | unsigned char* oencrypt(char* pw, char* buf, int len); |
---|
| 42 | unsigned char* odecrypt(char* pw, char* buf, int len); |
---|
| 43 | |
---|
| 44 | //mediadbcache.h |
---|
| 45 | struct mediadb* getmediadb(char* path, char* file, int flag); |
---|
| 46 | |
---|
| 47 | //mediadbsettings.h |
---|
| 48 | void screenmediadbsettings(); |
---|
| 49 | |
---|
| 50 | //mediadb.h |
---|
| 51 | int writemediadb(const char *filename); |
---|
| 52 | int delmediadbfilter(struct mediadbfilter* mnode, int flag); |
---|
| 53 | 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* fullfile, char* file, int flag); |
---|
| 54 | void freemediadbcontent(struct mediadb* node); |
---|
| 55 | int findfiles(char* dirname, int type, int onlydir, int onlycount, int first); |
---|
| 56 | struct mediadbfilter* getlastmediadbfilter(struct mediadbfilter* node, int flag); |
---|
| 57 | void getmediadbcounts(int* video, int* audio, int* picture); |
---|
| 58 | int readmediadb(const char* filename, int type, int flag); |
---|
| 59 | void mediadbscan(); |
---|
| 60 | int createmediadbfilter(int type, char* search, int flag); |
---|
| 61 | struct mediadbfilter* getmediadbfilterrandom(int maxentry); |
---|
| 62 | int getmediadbfiltercount(); |
---|
| 63 | void freemediadbfilter(int flag); |
---|
| 64 | void freemediadb(int flag); |
---|
| 65 | void freemediadbcategory(int flag); |
---|
| 66 | int delmediadb(struct mediadb* mnode, int flag); |
---|
| 67 | |
---|
| 68 | //eraseswap.h |
---|
| 69 | void screeneraseswap(); |
---|
| 70 | |
---|
| 71 | //softcam.h |
---|
| 72 | void screensoftcam(); |
---|
| 73 | |
---|
| 74 | //system_mixed.h |
---|
| 75 | void screensystem_eraseswap(); |
---|
| 76 | void screensystem_wizard(); |
---|
| 77 | |
---|
| 78 | // info.h |
---|
| 79 | void screengetserial(); |
---|
| 80 | void screensystem_info(int mode); |
---|
| 81 | |
---|
| 82 | //system_update.h |
---|
| 83 | void screensystem_update(int mode); |
---|
| 84 | |
---|
| 85 | //system_backup.h |
---|
| 86 | void screensystem_backup(); |
---|
| 87 | |
---|
| 88 | //system_backup_restore.h |
---|
| 89 | void screensystem_backup_restore(); |
---|
| 90 | |
---|
| 91 | //settings_bluebutton.h |
---|
| 92 | void screensettings_bluebutton(); |
---|
| 93 | |
---|
| 94 | //settings_redbutton.h |
---|
| 95 | void screensettings_redbutton(); |
---|
| 96 | |
---|
| 97 | //extensions.h |
---|
| 98 | void screenfeed(); |
---|
| 99 | void screenextensions(int mode, char* path); |
---|
| 100 | void screenextensions_check(int flag); |
---|
| 101 | |
---|
| 102 | //...port.h |
---|
| 103 | void fbsave(); |
---|
| 104 | void fbrestore(); |
---|
| 105 | |
---|
| 106 | //mostzap.h |
---|
[18431] | 107 | struct mostzap* createmostzap(int serviceid, uint64_t transponderid); |
---|
[18190] | 108 | int writemostzap(const char *filename); |
---|
[18431] | 109 | int delmostzap(int serviceid, uint64_t transponderid, int flag); |
---|
[18190] | 110 | void mostzaptobouquet(struct mainbouquet* mbouquet); |
---|
| 111 | |
---|
| 112 | //thumb.h |
---|
| 113 | char* checkthumb(char* path, char* file); |
---|
| 114 | |
---|
| 115 | //dvdplayer.h |
---|
| 116 | int dvdstop(); |
---|
| 117 | int dvdsetfb(); |
---|
| 118 | |
---|
| 119 | //channelhistory.h |
---|
| 120 | void delchannelhistory(struct channel* chnode); |
---|
| 121 | void addchannelhistory(struct channel* chnode, char* channellist); |
---|
| 122 | void screenchannelhistory(); |
---|
| 123 | |
---|
| 124 | //channellist.h |
---|
| 125 | int screenchannellist(struct channel** retchannel, char** retchannellist, int flag); |
---|
| 126 | |
---|
| 127 | //rguid.h |
---|
| 128 | void rguidthreadfunc(struct stimerthread* timernode); |
---|
| 129 | |
---|
| 130 | //inadyn.h |
---|
| 131 | void screennetwork_inadyn(); |
---|
| 132 | |
---|
| 133 | //epgsearch.h |
---|
| 134 | void screenepgsearch(); |
---|
| 135 | |
---|
| 136 | //sock.h |
---|
| 137 | char* gethttp(char* host, char* page, int port, char* filename, char* auth, struct download* dnode, int redirect); |
---|
| 138 | char *get_ip(char *host); |
---|
| 139 | int sockportopen(int *fd, char* ip, int port, int tout); |
---|
| 140 | void sockclose(int *fd); |
---|
| 141 | int socksend(int *fd, unsigned char* data, int count, int timeout); |
---|
| 142 | int sockread(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
| 143 | int sockcreate(int *fd, char* sockname, int maxconn); |
---|
| 144 | int sockaccept(int *fd, int flag); |
---|
[18366] | 145 | char* gethttpreal(char* host, char* page, int port, char* filename, char* auth, struct download* dnode, int redirect, char* header, long* clen, int flag); |
---|
[18190] | 146 | int sockreceive(int *fd, unsigned char* data, int count, int timeout); |
---|
| 147 | |
---|
| 148 | //numinput.h |
---|
| 149 | char* numinput(char* title, char* num, char* mask, int isip); |
---|
| 150 | |
---|
| 151 | //ipkg.h |
---|
| 152 | void freeipkg(); |
---|
| 153 | int ipkg_update(void); |
---|
| 154 | int ipkg_upgrade(void); |
---|
| 155 | int ipkg_list(void); |
---|
| 156 | int ipkg_install(const char* package); |
---|
| 157 | int ipkg_remove(const char* package, int purge); |
---|
| 158 | struct menulist* ipkmenulist(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* section, int showpng, int flag); |
---|
| 159 | int ipkg_list_installed(void); |
---|
| 160 | |
---|
| 161 | //frontenddev.h |
---|
| 162 | struct dvbdev* fegetdummy(); |
---|
| 163 | |
---|
| 164 | //dvrdev.h |
---|
| 165 | void dvrclose(struct dvbdev* node, int fd); |
---|
| 166 | struct dvbdev* dvropen(struct dvbdev* fenode); |
---|
| 167 | |
---|
| 168 | //audiodev.h |
---|
| 169 | int audiopause(struct dvbdev* node); |
---|
| 170 | int audioplay(struct dvbdev* node); |
---|
| 171 | int audioclearbuffer(struct dvbdev* node); |
---|
| 172 | |
---|
| 173 | //textinput.h |
---|
| 174 | char* textinput(char* title, char* text); |
---|
| 175 | |
---|
| 176 | //httpdsettings.h |
---|
| 177 | void screenhttpdsettings(); |
---|
| 178 | |
---|
| 179 | //help.h |
---|
| 180 | void screenhelp(struct skin* node); |
---|
| 181 | |
---|
| 182 | //restoredefault.h |
---|
| 183 | void screenrestoredefault(); |
---|
| 184 | |
---|
| 185 | //ca.h |
---|
| 186 | int getfreecasession(struct dvbdev* dvbnode, int type, int value); |
---|
| 187 | void caappmenu(struct dvbdev* dvbnode); |
---|
| 188 | |
---|
| 189 | //cam.h |
---|
| 190 | int getcaservicebyslot(struct caslot* caslot, int flag); |
---|
| 191 | void caservicedel(struct service* snode, struct caslot* caslot); |
---|
| 192 | void sendcapmt(struct service* node, int clear, int flag); |
---|
| 193 | |
---|
| 194 | //gmultiepg.h |
---|
| 195 | void screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 196 | |
---|
| 197 | //multiepg.h |
---|
| 198 | void screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 199 | |
---|
| 200 | //harddisk.h |
---|
| 201 | void hddfsck(char* dev); |
---|
| 202 | void hddformat(char* dev, char* filesystem); |
---|
| 203 | int addhddall(); |
---|
| 204 | |
---|
| 205 | //autores.h |
---|
| 206 | void autoresthreadfunc(struct stimerthread* self, char* text, int timeout); |
---|
| 207 | void screenautores(char* text, int timeout, int flag); |
---|
| 208 | |
---|
| 209 | // timeshift.h |
---|
| 210 | void timeshiftstop(int flag); |
---|
| 211 | |
---|
| 212 | // keyaktions.h |
---|
| 213 | void keyactions(int key, int flag); |
---|
| 214 | void keyactions_setres(); |
---|
| 215 | |
---|
| 216 | //dmxdev.h |
---|
| 217 | struct dvbdev* dmxgetlast(int adapter); |
---|
| 218 | |
---|
| 219 | // harddisk.h |
---|
| 220 | char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng); |
---|
| 221 | |
---|
| 222 | // videodev.h |
---|
| 223 | int videoreadqwidth(struct dvbdev* node); |
---|
| 224 | int videofreeze(struct dvbdev* node); |
---|
| 225 | int videocontinue(struct dvbdev* node); |
---|
| 226 | int videofastforward(struct dvbdev* node, int frames); |
---|
| 227 | int videoclearbuffer(struct dvbdev* node); |
---|
| 228 | int videogetpts(struct dvbdev* node, uint64_t* pts); |
---|
| 229 | |
---|
| 230 | // scan.h |
---|
[18330] | 231 | int findchannel(struct dvbdev* fenode, struct transponder* tpnode, unsigned char *buf, uint8_t* lastsecnr, struct skin* scan, struct skin* listbox, int flag); |
---|
[18190] | 232 | void screenscanconfig(int flag); |
---|
| 233 | |
---|
| 234 | // screensaver.h |
---|
| 235 | int showscreensaver(); |
---|
| 236 | int initscreensaver(); |
---|
| 237 | int deinitscreensaver(); |
---|
| 238 | |
---|
| 239 | // screensaveradjust.h |
---|
| 240 | void screenscreensaveradjust(); |
---|
| 241 | |
---|
| 242 | //dir.h |
---|
| 243 | 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); |
---|
| 244 | void readlabelext(struct skin* label, char* filename, char* ext); |
---|
| 245 | |
---|
| 246 | // mainplaylist.h |
---|
| 247 | int writeallplaylist(); |
---|
| 248 | int writemainplaylist(const char *filename); |
---|
| 249 | struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode); |
---|
| 250 | struct mainplaylist* screenmainplaylist(int flag); |
---|
| 251 | |
---|
| 252 | //playlist.h |
---|
| 253 | int getplaylistmax(struct playlist* plist); |
---|
| 254 | struct playlist* getplaylistrandom(struct playlist* plist, int max); |
---|
| 255 | |
---|
| 256 | // screensaveradjust.h |
---|
| 257 | void screensaveradjust(); |
---|
| 258 | |
---|
| 259 | //download.h |
---|
| 260 | int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int flag); |
---|
| 261 | |
---|
| 262 | // epgrecord.h |
---|
| 263 | void freeepgrecord(struct epgrecord** first); |
---|
| 264 | int recordstartreal(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode, int tssize); |
---|
| 265 | |
---|
| 266 | //titan.c |
---|
| 267 | void oshutdown(int exitcode, int flag); |
---|
| 268 | int createstartscreen(); |
---|
| 269 | |
---|
| 270 | // powerofftimer.h |
---|
| 271 | void screenpowerofftimer(void); |
---|
| 272 | |
---|
| 273 | // videosettings.h |
---|
| 274 | void screenvideosettings(); |
---|
| 275 | |
---|
| 276 | // harddisk.h |
---|
| 277 | void screenharddisk(int mode); |
---|
| 278 | void screenharddisksleep(); |
---|
| 279 | |
---|
| 280 | // network.h |
---|
| 281 | void screennetwork(int mode); |
---|
| 282 | void screennetwork_adapter(); |
---|
| 283 | void screennetwork_restart(struct inetwork* net, int flag); |
---|
| 284 | void screennetwork_test(); |
---|
| 285 | void screennetwork_wlan(); |
---|
| 286 | |
---|
| 287 | //channel.h |
---|
| 288 | int writechannel(const char *filename); |
---|
[18431] | 289 | 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); |
---|
| 290 | void delchannelbytransponder(uint64_t transponderid); |
---|
[18190] | 291 | struct channel* gettmpchannel(); |
---|
[18431] | 292 | int delchannel(int serviceid, uint64_t transponderid, int flag); |
---|
[18190] | 293 | int movechanneldown(struct channel* node); |
---|
| 294 | int movechannelup(struct channel* node); |
---|
| 295 | |
---|
| 296 | //transponder.h |
---|
[18431] | 297 | struct transponder* gettransponder(uint64_t transponderid); |
---|
[18190] | 298 | int writetransponder(const char *filename); |
---|
| 299 | void deltransponderbyorbitalpos(int orbitalpos); |
---|
| 300 | void deltransponder(struct transponder* tpnode); |
---|
| 301 | |
---|
| 302 | //sat.h |
---|
| 303 | int writesat(const char *filename); |
---|
| 304 | void delsat(char *name); |
---|
| 305 | struct sat* getsatbyorbitalpos(int orbitalpos); |
---|
| 306 | int movesatdown(struct sat* node); |
---|
| 307 | int movesatup(struct sat* node); |
---|
| 308 | |
---|
| 309 | //provider.h |
---|
| 310 | int writeprovider(const char *filename); |
---|
| 311 | void delprovidernotused(struct provider* node); |
---|
| 312 | int moveproviderdown(struct provider* node); |
---|
| 313 | int moveproviderup(struct provider* node); |
---|
| 314 | |
---|
| 315 | //httpd.h |
---|
| 316 | void httpdthreadfunc(struct stimerthread* timernode); |
---|
| 317 | void sendoktext(int* connfd, char* text, int auth); |
---|
| 318 | |
---|
| 319 | //skinconfig.h |
---|
| 320 | int getskinconfigint(char *key, char *ext); |
---|
| 321 | char* getskinconfig(char *key, char *ext); |
---|
| 322 | |
---|
| 323 | //record.h |
---|
| 324 | struct service* getrecordbyname(char* recname, int type); |
---|
| 325 | int recordskipplay(struct service* servicenode, int sekunden); |
---|
| 326 | void recordffrwts(struct service* servicenode, int speed); |
---|
| 327 | |
---|
| 328 | //dvdplayer.h |
---|
| 329 | int dvdstart(char* filename); |
---|
| 330 | int dvdisplaying(); |
---|
| 331 | void dvdgotmessage(); |
---|
| 332 | int dvdkeypress(int key); |
---|
| 333 | int dvdmenuopen(); |
---|
| 334 | void dvdchangevideo(); |
---|
| 335 | void dvdafterend(); |
---|
| 336 | |
---|
| 337 | // play.h |
---|
| 338 | void playerffts(int speed); |
---|
| 339 | int screenplay(char* startfile, int startfolder, int flag); |
---|
| 340 | void playrcstop(int playertype, int flag); |
---|
| 341 | void playwritevfd(char* file); |
---|
| 342 | void playstartservice(); |
---|
| 343 | void screenplayinfobar(char* file, int mode, int playertype, int flag); |
---|
| 344 | void playrcgreen(char* file, int playinfobarstatus, int playertype, int flag); |
---|
| 345 | void playrcred(char* file, int playinfobarstatus, int playertype, int flag); |
---|
| 346 | void playrcinfo(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 347 | void playrcff(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 348 | void playrcfr(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 349 | void playrcpause(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 350 | void playrcplay(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 351 | void playrcjumpr(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 352 | void playrcjumpf(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
| 353 | |
---|
| 354 | //inetwork.h |
---|
| 355 | struct inetwork* getinetworkbydevice(char* device); |
---|
| 356 | |
---|
| 357 | //fb.h |
---|
| 358 | void blitfb(int flag); |
---|
| 359 | void changefbresolution(char *value); |
---|
| 360 | void setfbtransparent(int value); |
---|
| 361 | struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize); |
---|
| 362 | void blitfb2(struct fb* fbnode, int flag); |
---|
| 363 | void delfb(char *name); |
---|
| 364 | void fb2png_thread(); |
---|
| 365 | int fb2png(unsigned char *buf_p, int width, int height, char *outfile); |
---|
| 366 | void clearfball(); |
---|
| 367 | |
---|
| 368 | //timerthread.h |
---|
| 369 | struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last); |
---|
| 370 | void deltimer(struct stimerthread *tnode); |
---|
| 371 | struct stimerthread* gettimerbythread(pthread_t thread); |
---|
| 372 | |
---|
| 373 | //epgscanlist.h |
---|
[18431] | 374 | struct epgscanlist* getepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 375 | int writeepgscanlist(const char *filename); |
---|
[18431] | 376 | int delepgscanlist(int serviceid, uint64_t transponderid); |
---|
[18190] | 377 | |
---|
| 378 | //rectimer.h |
---|
| 379 | int readrectimer(char *filename); |
---|
| 380 | int writerectimer(const char *filename, int flag); |
---|
| 381 | int recordcheckcrypt(struct dvbdev* fenode, int servicetype); |
---|
| 382 | int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode); |
---|
| 383 | char* recordcheckret(struct stimerthread* timernode, int ret, int flag); |
---|
| 384 | void checkrecepgret(int ret); |
---|
| 385 | int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist); |
---|
| 386 | struct rectimer* getrectimerbyservice(struct service* servicenode); |
---|
| 387 | void delrectimer(struct rectimer* rectimernode, int write, int flag); |
---|
| 388 | int rectimergetaktday(); |
---|
| 389 | |
---|
| 390 | //dvb.h |
---|
| 391 | unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout); |
---|
| 392 | int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
| 393 | int dvbwrite(int fd, unsigned char* buf, int count, int tout); |
---|
| 394 | int dvbgetdate(time_t* time, int timeout); |
---|
| 395 | int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize); |
---|
| 396 | int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize); |
---|
| 397 | |
---|
| 398 | //pin.h |
---|
| 399 | int screenpincheck(int type, char* pin); |
---|
| 400 | void screenpin(); |
---|
| 401 | |
---|
| 402 | //videomode.h |
---|
| 403 | void screenvideomode(int flag); |
---|
| 404 | |
---|
| 405 | //pic.h |
---|
| 406 | void delpic(char* name); |
---|
| 407 | struct pic* getpic(char* name); |
---|
| 408 | void delmarkedpic(int del); |
---|
| 409 | 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); |
---|
| 410 | |
---|
| 411 | //showiframe.h |
---|
| 412 | int singlepicstart(const char *filename, int flag); |
---|
| 413 | |
---|
| 414 | //player.h |
---|
| 415 | void playerff(int speed); |
---|
| 416 | void playerfr(int speed); |
---|
| 417 | void playercontinue(); |
---|
| 418 | void playerpause(); |
---|
| 419 | int playerstop(); |
---|
| 420 | void playerseek(float sec); |
---|
| 421 | int playerstart(char* file); |
---|
[18429] | 422 | unsigned long long playergetpts(); |
---|
[18190] | 423 | double playergetlength(); |
---|
| 424 | int playergetinfots(unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* aktpts, unsigned long long* bitrate, int flag); |
---|
| 425 | int playerisplaying(); |
---|
| 426 | void playerafterend(); |
---|
| 427 | |
---|
| 428 | //filelist.h |
---|
| 429 | void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection); |
---|
| 430 | int createfilelist(struct skin* screen, struct skin* node, int view); |
---|
| 431 | |
---|
| 432 | //plugin.h |
---|
| 433 | struct skin* getplugin(char* pluginname); |
---|
| 434 | int loadplugin(); |
---|
| 435 | |
---|
| 436 | //listbox.h |
---|
| 437 | int setlistboxselection(struct skin* listbox, char* childname); |
---|
| 438 | |
---|
| 439 | //list.h |
---|
| 440 | struct clist* addlist(struct clist **clist, char *key1, char *value1); |
---|
| 441 | void freelist(struct clist** clist); |
---|
| 442 | struct clist* addlisttmp(struct clist **clist, char *key1, char *value1); |
---|
| 443 | |
---|
| 444 | //choicebox.h |
---|
| 445 | int setchoiceboxselection(struct skin* choicebox, char* value); |
---|
| 446 | int addchoicebox(struct skin* choicebox, char* value, char* text); |
---|
| 447 | |
---|
| 448 | //ownconfig.h |
---|
| 449 | char* getownconfig(char *key); |
---|
| 450 | char* getownconfigq(char *key); |
---|
| 451 | struct clist* addownconfigscreentmp(char *key, struct skin *node); |
---|
| 452 | struct clist* addownconfigscreenqtmp(char *key, struct skin *node); |
---|
| 453 | struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check); |
---|
| 454 | int writeownconfigtmp(); |
---|
| 455 | void delownconfigtmpall(); |
---|
| 456 | struct clist* addownconfig(char *key, char *value); |
---|
| 457 | |
---|
| 458 | //infobar.h |
---|
| 459 | void fillinfobar(); |
---|
| 460 | |
---|
| 461 | //menulist.h |
---|
| 462 | void freemenulist(struct menulist* mlist, int delparam); |
---|
| 463 | void addmenulistall(struct menulist** mlist, char* allname, char* pic, int deaktiv, char* defaultentry); |
---|
| 464 | struct menulist* addmenulist(struct menulist** mlist, char* name, char* text, char* pic, int deaktiv, int defaultentry); |
---|
| 465 | struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int flag); |
---|
| 466 | struct menulist* menulistboxext(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int* rcreturn, int flag); |
---|
| 467 | void setmenulistdefault(struct menulist* mlist, char* defaultentry); |
---|
| 468 | void changemenulistparam(struct menulist* mlist, char* param, char* param1); |
---|
| 469 | |
---|
| 470 | //skinfunc.h |
---|
| 471 | char* gettime(struct skin* node, char* format); |
---|
| 472 | char* getepgakttitle(struct skin* node); |
---|
| 473 | |
---|
| 474 | //skin.h |
---|
| 475 | void restorescreennofree(char* buf, struct skin* node); |
---|
| 476 | unsigned char *loadjpg(char *filename, unsigned long *width, unsigned long *height, unsigned long *rowbytes, int *channels, int denom); |
---|
| 477 | int changeselectpic(struct skin* node, char* text); |
---|
| 478 | void calcautoscale(int width, int height, int mwidth, int mheight, int* scalewidth, int* scaleheight); |
---|
| 479 | void blitscale(int posx, int posy, int width, int height, int scalewidth, int scaleheight, int flag); |
---|
| 480 | unsigned char* scale(unsigned char* buf, int width, int height, int channels, int newwidth, int newheight, int free1); |
---|
| 481 | void blitrect(int posx, int posy, int width, int height, long color, int transparent, int mode); |
---|
| 482 | void fillrect(int posx, int posy, int width, int height, long color, int transparent); |
---|
| 483 | int setnodeattr(struct skin* node, struct skin* parent, int screencalc); |
---|
| 484 | void clearscreennolock(struct skin* node); |
---|
| 485 | void clearshadow(struct skin* node); |
---|
| 486 | char* savescreen(struct skin* node); |
---|
| 487 | void restorescreen(char* buf, struct skin* node); |
---|
| 488 | char* changepicpath(char* picname); |
---|
| 489 | long convertcol(char *value); |
---|
| 490 | void delmarkedscreen(int del); |
---|
| 491 | void delscreen(struct skin *node); |
---|
| 492 | void delscreennode(struct skin *node, char* nodename); |
---|
| 493 | int readscreen(char *filename, int del, int flag); |
---|
| 494 | int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd); |
---|
| 495 | 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); |
---|
| 496 | void delmarkedscreennodes(struct skin* node, int mark); |
---|
| 497 | void clearscreen(struct skin* node); |
---|
| 498 | struct skin* getscreennode(struct skin *node, char* nodename); |
---|
| 499 | struct skin* getscreen(char* screenname); |
---|
| 500 | int calcrheight(struct skin* node, struct skin* parent); |
---|
| 501 | int drawscreen(struct skin* node, int screencalc, int flag); |
---|
| 502 | struct skin* addscreennode(struct skin* node, char* line, struct skin* last); |
---|
| 503 | int changetext(struct skin* node, char* text); |
---|
| 504 | int changetext2(struct skin* node, char* text); |
---|
| 505 | int changeinput(struct skin* node, char* text); |
---|
| 506 | int changename(struct skin* node, char* text); |
---|
| 507 | int changeret(struct skin* node, char* text); |
---|
| 508 | int changepic(struct skin* node, char* text); |
---|
| 509 | int changetitle(struct skin* node, char* text); |
---|
| 510 | int changefont(struct skin* node, char* text); |
---|
| 511 | int changemask(struct skin* node, char* text); |
---|
| 512 | int changepicmem(struct skin* node, char* text, int timeout, int del); |
---|
| 513 | int convertxmlentry(char *value, uint8_t *proz); |
---|
| 514 | unsigned char* savejpg(char* filename, int width, int height, int channels, int newwidth, int newheight, int quality, unsigned char *buf); |
---|
| 515 | |
---|
| 516 | //volume.h |
---|
| 517 | void screenvolumeup(); |
---|
| 518 | void screenvolumedown(); |
---|
| 519 | |
---|
[18430] | 520 | //mute.h |
---|
| 521 | void screenmute(struct skin* screen, struct skin* node, int flag); |
---|
| 522 | |
---|
[18190] | 523 | //menu.h |
---|
| 524 | int menucall(struct skin* menunode, struct skin* menuentry, int check); |
---|
| 525 | |
---|
| 526 | //textbox.h |
---|
| 527 | 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); |
---|
| 528 | |
---|
| 529 | //config.h |
---|
| 530 | struct clist* addconfig(char *key, char *value); |
---|
| 531 | void delconfigtmpall(); |
---|
| 532 | struct clist* addconfigscreencheck(char *key, struct skin *node, char* check); |
---|
| 533 | struct clist* addconfigdef(char *key, char *value); |
---|
| 534 | struct clist* addconfigtmp(char *key, char *value); |
---|
| 535 | char* getconfig(char *key, char *ext); |
---|
| 536 | char* getconfignotmp(char *key, char *ext); |
---|
| 537 | int getconfigint(char *key, char* ext); |
---|
| 538 | void delconfig(char *key); |
---|
| 539 | void delconfigtmp(char *key); |
---|
| 540 | struct clist* addconfiginttmp(char *key, int value); |
---|
| 541 | int writeconfigtmp(); |
---|
| 542 | int readconfig(const char *filename, struct clist** tmpconfig); |
---|
| 543 | struct clist* addconfigint(char *key, int value); |
---|
| 544 | |
---|
| 545 | //rc.h |
---|
| 546 | int waitrcext(struct skin* owner, unsigned int timeout, int screencalc, int filelistview); |
---|
| 547 | int waitrc(struct skin* owner, unsigned int timeout, int flag); |
---|
| 548 | void delownerrc(struct skin* owner); |
---|
[18431] | 549 | struct rc* addrc(int key, void *func, struct skin* screen, struct skin *screennode); |
---|
[18190] | 550 | void delrc(int key, struct skin* owner, struct skin* screennode); |
---|
| 551 | int flushrc(unsigned int timeout); |
---|
| 552 | |
---|
| 553 | //rcfunc.h |
---|
| 554 | void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int screencalc, int filelistview, int flag); |
---|
| 555 | void inputboxff(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 556 | void inputboxfr(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 557 | void inputboxright(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 558 | void inputboxleft(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
| 559 | int addscreenrc(struct skin* screen, struct skin* node); |
---|
| 560 | void checkinputboxnumright(struct skin* inputbox); |
---|
| 561 | int delscreenrc(struct skin* screen, struct skin* node); |
---|
| 562 | |
---|
| 563 | //spinner.h |
---|
| 564 | void screenspinner(); |
---|
| 565 | |
---|
| 566 | //global.h |
---|
[18216] | 567 | void startnet(); |
---|
[18190] | 568 | int checkdirext(char* dir, char* ext); |
---|
| 569 | char* string_replace_all(char *search, char *replace, char *string, int free1); |
---|
| 570 | struct tm* olocaltime(time_t *value); |
---|
| 571 | void setskinnodeslocked(int flag); |
---|
| 572 | char* stringreplacecharonce(char *str, char c1, char c2); |
---|
| 573 | int getrandom(int max); |
---|
| 574 | int clearbit(int value, int bitpos); |
---|
| 575 | int checkbit(int value, int bitpos); |
---|
| 576 | char* addmountpart(char* filename, int free1); |
---|
| 577 | char* string_removechar(char *str); |
---|
| 578 | unsigned int gethash(char* str); |
---|
| 579 | char* oregex(char* regex, char* str); |
---|
| 580 | int resettvpic(); |
---|
| 581 | unsigned long readsysul(const char *filename, int line); |
---|
| 582 | char* oitoax(int value); |
---|
| 583 | void closeonexec(int fd); |
---|
| 584 | char* ostrstrcase(char* str, char* sub); |
---|
| 585 | char* getdevcontent(char* devconfig); |
---|
| 586 | char* getxmlentry(char *line, char *searchstr); |
---|
| 587 | void debugstack(void* address, void* address1); |
---|
| 588 | char* string_strip_whitechars(char *text); |
---|
| 589 | int ounzip(char* inbuf, int inlen, char** outbuf, int* outlen, int maxbuf, int flag); |
---|
| 590 | int ozip(char* inbuf, int inlen, char** outbuf, int* outlen, int level); |
---|
| 591 | int delallfiles(char* dir, char* ext); |
---|
| 592 | unsigned long getfilecount(char* dir); |
---|
| 593 | char* readfiletomem(const char* filename, int flag); |
---|
| 594 | int setbit(int value, int bitpos); |
---|
| 595 | char* changefilenameext(char* filename, char* ext); |
---|
| 596 | void destroy(); |
---|
| 597 | void htmldecode(char* to, char* from); |
---|
| 598 | void setosdtransparent(int value); |
---|
| 599 | char* string_shortname(char *tmpfilename, int mode); |
---|
| 600 | off64_t getfilesize(char* name); |
---|
| 601 | struct splitstr* strsplit(char *str, char *tok, int* count); |
---|
| 602 | char* strstrip(char *text); |
---|
| 603 | char* fixip(char* ipinput, int flag); |
---|
| 604 | void m_lock(pthread_mutex_t *mutex, int flag); |
---|
| 605 | void m_unlock(pthread_mutex_t *mutex, int flag); |
---|
| 606 | int setcolorformat(char* value); |
---|
| 607 | int setvideomode(char* value, int flag); |
---|
| 608 | char* convert_timesec(int sec); |
---|
| 609 | int writesys(const char *filename, char *value, int flag); |
---|
| 610 | int setsystime(time_t* newtime); |
---|
| 611 | int checkbox(char* box); |
---|
| 612 | int setpolicy(char* value); |
---|
| 613 | char* getpolicy(); |
---|
| 614 | char* string_newline(char* str); |
---|
| 615 | char* get_label(char* device); |
---|
| 616 | char* string_quote(char* str); |
---|
| 617 | int file_exist(char* filename); |
---|
| 618 | char* ostrstr(char* str, char* search); |
---|
| 619 | char* createpath(char* dir, char* file); |
---|
| 620 | char* get_ipk_install(char* ipk); |
---|
| 621 | char* get_ipk_tmpinstall(char* path, char* ipk); |
---|
| 622 | char* get_ipk_listinstall(); |
---|
| 623 | char* get_ipk_tmplistinstall(); |
---|
| 624 | char* string_toupper(char *str); |
---|
| 625 | char* get_ipk_remove(char* ipk); |
---|
| 626 | char* get_ipk_section(); |
---|
| 627 | char* get_ipk_list(char* section); |
---|
| 628 | char* string_tolower(char *str); |
---|
| 629 | int isfile(char* name); |
---|
| 630 | char* command(char* input); |
---|
| 631 | char* oitoa(int value); |
---|
| 632 | char* olutoa(unsigned long value); |
---|
[18431] | 633 | char* ollutoa(uint64_t value); |
---|
[18190] | 634 | int ostrcmp(char* value1, char* value2); |
---|
| 635 | int ostrcasecmp(char* value1, char* value2); |
---|
| 636 | char* ostrcat(char* value1, char* value2, int free1, int free2); |
---|
| 637 | int ostrncmp(char* value1, char* value2, int count); |
---|
| 638 | char* readsys(const char *filename, int line); |
---|
| 639 | char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1); |
---|
| 640 | char* string_replace(char *search, char *replace, char *string, int free1); |
---|
| 641 | int writesysint(const char *filename, int value, int flag); |
---|
| 642 | char* string_remove_whitechars(char *text); |
---|
| 643 | void setfanspeed(int speed, int aktion); |
---|
| 644 | int writeallconfig(int flag); |
---|
| 645 | int checkemu(); |
---|
| 646 | int setvol(int value); |
---|
| 647 | int getvol(); |
---|
| 648 | char* stringreplacechar(char *str, char c1, char c2); |
---|
| 649 | char* getcpuid(); |
---|
| 650 | void get_ipk_update(); |
---|
| 651 | char* string_decode(char* input, int flag); |
---|
| 652 | char* string_striptags(char* filename); |
---|
| 653 | char* string_resub(char* str, char* str2, char* input, int dir); |
---|
| 654 | int cmpfilenameext(char* filename, char* ext); |
---|
| 655 | void killnet(); |
---|
| 656 | void checkserial(char* input); |
---|
| 657 | int checkprozess(char* input); |
---|
| 658 | struct regex* regexstruct(char* regex, char* str); |
---|
| 659 | void freeregexstruct(struct regex* node); |
---|
| 660 | char fromhex(char c); |
---|
| 661 | char* unhexlify(const char *hexstr); |
---|
| 662 | int isdir(char* name); |
---|
| 663 | void htmldecode3(char* to, char* from); |
---|
| 664 | char* string_deltags(char* str); |
---|
| 665 | char* readfromlinetoline(char* str, int start, int end, int flag); |
---|
[18209] | 666 | int checkdev(char* dev); |
---|
[18190] | 667 | |
---|
| 668 | //rcconfig.h |
---|
| 669 | int getrcconfigint(char *key, char* ext); |
---|
| 670 | char* getrcconfig(char *key, char *ext); |
---|
| 671 | int reloadconfig(char *filename); |
---|
| 672 | |
---|
| 673 | //service.h |
---|
| 674 | struct service* getservicebyservice(struct service* node, int flag); |
---|
| 675 | struct service* getservicebychannel(struct channel* chnode); |
---|
| 676 | struct service* checkservice(struct service* node); |
---|
| 677 | struct service* addservice(struct service* last); |
---|
| 678 | void delservice(struct service* snode, int flag); |
---|
| 679 | int servicestop(struct service *node, int clear, int flag); |
---|
| 680 | int servicestart(struct channel* chnode, char* channellist, char* pin, int flag); |
---|
| 681 | void serviceresetchannelinfo(struct channel* chnode); |
---|
| 682 | struct service* getservice(int type, int flag); |
---|
| 683 | char* servicecheckret(int ret, int flag); |
---|
| 684 | |
---|
| 685 | //mainbouquets.h |
---|
| 686 | int writemainbouquet(const char *filename); |
---|
| 687 | int writeallbouquet(); |
---|
| 688 | struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode); |
---|
| 689 | int movemainbouquetdown(struct mainbouquet* node); |
---|
| 690 | int movemainbouquetup(struct mainbouquet* node); |
---|
| 691 | struct mainbouquet* addmainbouquet(char *line, int count, struct mainbouquet* last); |
---|
| 692 | |
---|
| 693 | //listbox.h |
---|
| 694 | struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del); |
---|
| 695 | |
---|
| 696 | //bouquets.h |
---|
[18431] | 697 | void delbouquetbychannel(int serviceid, uint64_t transponderid); |
---|
| 698 | struct bouquet* getbouquetbychannelmain(int serviceid, uint64_t transponderid); |
---|
[18190] | 699 | void recalcbouquetnr(); |
---|
[18431] | 700 | void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid); |
---|
| 701 | void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode); |
---|
[18190] | 702 | int movebouquetdown(struct bouquet* node); |
---|
| 703 | int movebouquetup(struct bouquet* node); |
---|
| 704 | struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last); |
---|
| 705 | |
---|
| 706 | //audiotrack.h |
---|
| 707 | void screenaudiotrack(); |
---|
| 708 | struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last); |
---|
| 709 | void freeaudiotrack(struct channel* chnode); |
---|
| 710 | |
---|
| 711 | //subtitle.h |
---|
| 712 | void screensubtitle(); |
---|
| 713 | struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last); |
---|
| 714 | void freesubtitle(struct channel* chnode); |
---|
| 715 | int subtitlestop(int flag); |
---|
| 716 | int subtitlepause(int flag); |
---|
| 717 | |
---|
| 718 | //linkedchannel.h |
---|
[18431] | 719 | struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, struct linkedchannel* last); |
---|
[18190] | 720 | void freelinkedchannel(struct channel* chnode); |
---|
| 721 | void screenlinkedchannel(); |
---|
[18431] | 722 | struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid); |
---|
[18190] | 723 | |
---|
| 724 | //zap.h |
---|
| 725 | void zapup(); |
---|
| 726 | void zapdown(); |
---|
| 727 | |
---|
| 728 | //epg.h |
---|
| 729 | void screensingleepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 730 | void screenepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
| 731 | int writeepg(const char* filename); |
---|
| 732 | void freeepg(struct channel* chnode); |
---|
| 733 | struct epg* getepgakt(struct channel* chnode); |
---|
| 734 | struct epg* getepgbytime(struct channel* chnode, time_t akttime); |
---|
| 735 | char* epgdescunzip(struct epg* epgnode); |
---|
| 736 | |
---|
| 737 | //standby.h |
---|
| 738 | void screenstandby(); |
---|
| 739 | |
---|
| 740 | //channelcache.h |
---|
[18431] | 741 | void delchannelcache(int serviceid, uint64_t transponderid); |
---|
| 742 | struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel*); |
---|
| 743 | struct channel* getchannel(int serviceid, uint64_t transponderid); |
---|
[18190] | 744 | |
---|
| 745 | // vfd.h |
---|
| 746 | int setvfdicon(vfdicons id, int onoff); |
---|
| 747 | int writevfd(char *value); |
---|
| 748 | |
---|
| 749 | //skinfunc.h |
---|
| 750 | char* getaktchannelname(); |
---|
| 751 | char* getrec(); |
---|
| 752 | |
---|
| 753 | #endif |
---|