source: titan/titan/header.h @ 32075

Last change on this file since 32075 was 32075, checked in by obi, 8 years ago

fix

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