source: titan/titan/header.h @ 15291

Last change on this file since 15291 was 15291, checked in by nit, 10 years ago

fix

File size: 20.6 KB
Line 
1#ifndef HEADER_H
2#define HEADER_H
3
4//thumb.h
5char* checkthumb(char* path, char* file);
6
7//dvdplayer.h
8int dvdstop();
9int dvdsetfb();
10
11//channelhistory.h
12void delchannelhistory(struct channel* chnode);
13void addchannelhistory(struct channel* chnode, char* channellist);
14void screenchannelhistory();
15
16//channellist.h
17int screenchannellist(struct channel** retchannel, char** retchannellist, int flag);
18
19//rguid.h
20void rguidthreadfunc(struct stimerthread* timernode);
21
22//inadyn.h
23void screennetwork_inadyn();
24
25//epgsearch.h
26void screenepgsearch();
27
28//sock.h
29char* gethttp(char* host, char* page, int port, char* filename, char* auth, struct download* dnode, int redirect);
30char *get_ip(char *host);
31int sockportopen(int *fd, char* ip, int port, int tout);
32void sockclose(int *fd);
33int socksend(int *fd, unsigned char* data, int count, int timeout);
34int sockread(int fd, unsigned char *buf, int pos, int count, int tout, int flag);
35
36//numinput.h
37char* numinput(char* title, char* num, char* mask, int isip);
38
39//ipkg.h
40void freeipkg();
41int ipkg_update(void);
42int ipkg_list(void);
43int ipkg_install(const char* package);
44int ipkg_remove(const char* package, int purge);
45char* ipk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng);
46
47//frontenddev.h
48struct dvbdev* fegetdummy();
49
50//dvrdev.h
51void dvrclose(struct dvbdev* node, int fd);
52struct dvbdev* dvropen(struct dvbdev* fenode);
53
54//audiodev.h
55int audiopause(struct dvbdev* node);
56int audioplay(struct dvbdev* node);
57int audioclearbuffer(struct dvbdev* node);
58
59//textinput.h
60char* textinput(char* title, char* text);
61
62//httpdsettings.h
63void screenhttpdsettings();
64
65//help.h
66void screenhelp(struct skin* node);
67
68//restoredefault.h
69void screenrestoredefault();
70
71//ca.h
72int getfreecasession(struct dvbdev* dvbnode, int type, int value);
73void caappmenu(struct dvbdev* dvbnode);
74
75//cam.h
76int getcaservicebyslot(struct caslot* caslot, int flag);
77void caservicedel(struct service* snode, struct caslot* caslot);
78void sendcapmt(struct service* node, int clear, int flag);
79
80//gmultiepg.h
81void screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag);
82
83//multiepg.h
84void screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag);
85
86//harddisk.h
87void hddfsck(char* dev);
88void hddformat(char* dev, char* filesystem);
89int addhddall();
90
91//autores.h
92void autoresthreadfunc(struct stimerthread* self, char* text, int timeout);
93void screenautores(char* text, int timeout, int flag);
94
95// timeshift.h
96void timeshiftstop(int flag);
97
98// keyaktions.h
99void keyactions(int key, int flag);
100void keyactions_setres();
101
102//dmxdev.h
103struct dvbdev* dmxgetlast(int adapter);
104
105// harddisk.h
106char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng);
107
108// videodev.h
109int videoreadqwidth(struct dvbdev* node);
110int videofreeze(struct dvbdev* node);
111int videocontinue(struct dvbdev* node);
112int videofastforward(struct dvbdev* node, int frames);
113int videoclearbuffer(struct dvbdev* node);
114int videogetpts(struct dvbdev* node, uint64_t* pts);
115
116// scan.h
117int findchannel(struct transponder* tpnode, unsigned char *buf, uint8_t* lastsecnr, struct skin* scan, struct skin* listbox, int flag);
118void screenscanconfig(int flag);
119
120// mainplaylist.h
121struct mainplaylist* screenmainplaylist(int flag);
122
123// screensaver.h
124int showscreensaver();
125int initscreensaver();
126int deinitscreensaver();
127
128// screensaveradjust.h
129void screenscreensaveradjust();
130
131//dir.h
132char* 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);
133
134// mainplaylist.h
135int writeallplaylist();
136int writemainplaylist(const char *filename);
137struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode);
138
139// screensaveradjust.h
140void screensaveradjust();
141
142//download.h
143int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int flag);
144
145// epgrecord.h
146void freeepgrecord(struct epgrecord** first);
147int recordstartreal(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode, int tssize);
148
149//titan.c
150void oshutdown(int exitcode, int flag);
151int createstartscreen();
152
153// powerofftimer.h
154void screenpowerofftimer(void);
155
156// videosettings.h
157void screenvideosettings();
158
159// harddisk.h
160void screenharddisk(int mode);
161void screenharddisksleep();
162
163// network.h
164void screennetwork(int mode);
165void screennetwork_adapter();
166void screennetwork_restart(struct inetwork* net);
167void screennetwork_test();
168void screennetwork_wlan();
169
170//channel.h
171int writechannel(const char *filename);
172struct channel* createchannel(char* name, unsigned long transponderid, int providerid, int serviceid, int servicetype, int flag, int videocodec, int audiocodec, int videopid, int audiopid, int protect);
173void delchannelbytransponder(unsigned long transponderid);
174struct channel* gettmpchannel();
175int delchannel(int serviceid, unsigned long transponderid, int flag);
176
177//transponder.h
178struct transponder* gettransponder(unsigned long transponderid);
179int writetransponder(const char *filename);
180void deltransponderbyorbitalpos(int orbitalpos);
181
182//sat.h
183int writesat(const char *filename);
184
185//provider.h
186int writeprovider(const char *filename);
187
188//httpd.h
189void httpdthreadfunc(struct stimerthread* timernode);
190void sendoktext(int* connfd, char* text, int auth);
191
192//skinconfig.h
193int getskinconfigint(char *key, char *ext);
194char* getskinconfig(char *key, char *ext);
195
196//record.h
197struct service* getrecordbyname(char* recname, int type);
198int recordskipplay(struct service* servicenode, int sekunden);
199void recordffrwts(struct service* servicenode, int speed);
200
201//dvdplayer.h
202int dvdstart(char* filename);
203int dvdisplaying();
204void dvdgotmessage();
205int dvdkeypress(int key);
206int dvdmenuopen();
207void dvdchangevideo();
208void dvdafterend();
209
210// play.h
211void playerffts(int speed);
212void screenplay(char* startfile, int startfolder, int flag);
213void playrcstop(int playertype, int flag);
214void playwritevfd(char* file);
215void playstartservice();
216void screenplayinfobar(char* file, int mode, int playertype, int flag);
217void playrcgreen(char* file, int playinfobarstatus, int playertype, int flag);
218void playrcred(char* file, int playinfobarstatus, int playertype, int flag);
219void playrcinfo(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
220void playrcff(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
221void playrcfr(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
222void playrcpause(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
223void playrcplay(char* file, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
224void playrcjumpr(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
225void playrcjumpf(char* file, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag);
226
227//inetwork.h
228struct inetwork* getinetworkbydevice(char* device);
229
230//fb.h
231void blitfb(int flag);
232void changefbresolution(char *value);
233void setfbtransparent(int value);
234struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize);
235void blitfb2(struct fb* fbnode, int flag);
236void delfb(char *name);
237void fb2png_thread();
238
239//timerthread.h
240struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last);
241void deltimer(struct stimerthread *tnode);
242
243//epgscanlist.h
244struct epgscanlist* getepgscanlist(int serviceid, unsigned long transponderid);
245int writeepgscanlist(const char *filename);
246int delepgscanlist(int serviceid, unsigned long transponderid);
247
248//rectimer.h
249int writerectimer(const char *filename, int flag);
250int recordcheckcrypt(struct dvbdev* fenode, int servicetype);
251int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode);
252char* recordcheckret(struct stimerthread* timernode, int ret, int flag);
253void checkrecepgret(int ret);
254int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist);
255struct rectimer* getrectimerbyservice(struct service* servicenode);
256void delrectimer(struct rectimer* rectimernode, int write, int flag);
257int rectimergetaktday();
258
259//dvb.h
260unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout);
261int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout);
262int dvbwrite(int fd, unsigned char* buf, int count, int tout);
263int dvbgetdate(time_t* time, int timeout);
264int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize);
265int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize);
266
267//pin.h
268int screenpincheck(int type, char* pin);
269void screenpin();
270
271//videomode.h
272void screenvideomode(int flag);
273
274//pic.h
275void delpic(char* name);
276struct pic* getpic(char* name);
277void delmarkedpic(int del);
278struct pic* addpic(char *name, unsigned char* picbuf, int memfd, unsigned long width, unsigned long height, unsigned long rowbytes, int channels, int del, struct pic* last);
279
280//showiframe.h
281int singlepicstart(const char *filename, int flag);
282
283//player.h
284void playerff(int speed);
285void playerfr(int speed);
286void playercontinue();
287void playerpause();
288int playerstop();
289void playerseek(float sec);
290int playerstart(char* file);
291unsigned long long int playergetpts();
292double playergetlength();
293int playergetinfots(unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* aktpts, unsigned long long* bitrate);
294
295//filelist.h
296//void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview);
297void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection);
298
299//plugin.h
300struct skin* getplugin(char* pluginname);
301
302//listbox.h
303int setlistboxselection(struct skin* listbox, char* childname);
304
305//list.h
306struct clist* addlist(struct clist **clist, char *key1, char *value1);
307void freelist(struct clist** clist);
308struct clist* addlisttmp(struct clist **clist, char *key1, char *value1);
309
310//choicebox.h
311int setchoiceboxselection(struct skin* choicebox, char* value);
312int addchoicebox(struct skin* choicebox, char* value, char* text);
313
314//ownconfig.h
315char* getownconfig(char *key);
316char* getownconfigq(char *key);
317struct clist* addownconfigscreentmp(char *key, struct skin *node);
318struct clist* addownconfigscreenqtmp(char *key, struct skin *node);
319struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check);
320int writeownconfigtmp();
321void delownconfigtmpall();
322
323//infobar.h
324void fillinfobar();
325
326//menulist.h
327void freemenulist(struct menulist* mlist, int delparam);
328void addmenulistall(struct menulist** mlist, char* allname, char* pic, int deaktiv, char* defaultentry);
329struct menulist* addmenulist(struct menulist** mlist, char* name, char* text, char* pic, int deaktiv, int defaultentry);
330struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int flag);
331void setmenulistdefault(struct menulist* mlist, char* defaultentry);
332
333//skinfunc.h
334char* gettime(struct skin* node, char* format);
335char* getepgakttitle(struct skin* node);
336
337//skin.h
338void blitscale(int posx, int posy, int width, int height, int scalewidth, int scaleheight, int flag);
339unsigned char* scale(unsigned char* buf, int width, int height, int channels, int newwidth, int newheight, int free1);
340void blitrect(int posx, int posy, int width, int height, long color, int transparent, int mode);
341void fillrect(int posx, int posy, int width, int height, long color, int transparent);
342int setnodeattr(struct skin* node, struct skin* parent);
343void clearscreennolock(struct skin* node);
344void clearshadow(struct skin* node);
345char* savescreen(struct skin* node);
346void restorescreen(char* buf, struct skin* node);
347char* changepicpath(char* picname);
348long convertcol(char *value);
349void delmarkedscreen(int del);
350void delscreen(struct skin *node);
351void delscreennode(struct skin *node, char* nodename);
352int readscreen(char *filename, int del, int flag);
353int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd);
354unsigned 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);
355void delmarkedscreennodes(struct skin* node, int mark);
356void clearscreen(struct skin* node);
357struct skin* getscreennode(struct skin *node, char* nodename);
358struct skin* getscreen(char* screenname);
359int calcrheight(struct skin* node, struct skin* parent);
360int drawscreen(struct skin* node, int flag);
361struct skin* addscreennode(struct skin* node, char* line, struct skin* last);
362int changetext(struct skin* node, char* text);
363int changetext2(struct skin* node, char* text);
364int changeinput(struct skin* node, char* text);
365int changename(struct skin* node, char* text);
366int changeret(struct skin* node, char* text);
367int changepic(struct skin* node, char* text);
368int changetitle(struct skin* node, char* text);
369int changefont(struct skin* node, char* text);
370int changemask(struct skin* node, char* text);
371int changepicmem(struct skin* node, char* text, int del);
372int convertxmlentry(char *value, uint8_t *proz);
373
374//volume.h
375void screenvolumeup();
376void screenvolumedown();
377
378//menu.h
379int menucall(struct skin* menunode, struct skin* menuentry, int check);
380
381//textbox.h
382int 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);
383
384//config.h
385struct clist* addconfig(char *key, char *value);
386void delconfigtmpall();
387struct clist* addconfigscreencheck(char *key, struct skin *node, char* check);
388struct clist* addconfigdef(char *key, char *value);
389struct clist* addconfigtmp(char *key, char *value);
390char* getconfig(char *key, char *ext);
391char* getconfignotmp(char *key, char *ext);
392int getconfigint(char *key, char* ext);
393void delconfig(char *key);
394void delconfigtmp(char *key);
395struct clist* addconfiginttmp(char *key, int value);
396int writeconfigtmp();
397int readconfig(const char *filename, struct clist** tmpconfig);
398
399//rc.h
400int waitrc(struct skin* owner, unsigned int timeout, int flag);
401void delownerrc(struct skin* owner);
402void delrc(int key, struct skin* owner, struct skin* screennode);
403
404//rcfunc.h
405void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int flag);
406void inputboxff(struct skin* screen, struct skin* inputbox, int flag);
407void inputboxfr(struct skin* screen, struct skin* inputbox, int flag);
408void inputboxright(struct skin* screen, struct skin* inputbox, int flag);
409void inputboxleft(struct skin* screen, struct skin* inputbox, int flag);
410int addscreenrc(struct skin* screen, struct skin* node);
411void checkinputboxnumright(struct skin* inputbox);
412int delscreenrc(struct skin* screen, struct skin* node);
413
414//spinner.h
415void screenspinner();
416
417//global.h
418void debugstack(void* address, void* address1);
419char* string_strip_whitechars(char *text);
420int ounzip(char* inbuf, int inlen, char** outbuf, int* outlen, int maxbuf, int flag);
421int delallfiles(char* dir, char* ext);
422unsigned long getfilecount(char* dir);
423char* readfiletomem(const char* filename, int flag);
424int setbit(int value, int bitpos);
425char* changefilenameext(char* filename, char* ext);
426void destroy();
427void htmldecode(char* to, char* from);
428void setosdtransparent(int value);
429char* string_shortname(char *tmpfilename, int mode);
430off64_t getfilesize(char* name);
431struct splitstr* strsplit(char *str, char *tok, int* count);
432char* strstrip(char *text);
433char* fixip(char* ipinput, int flag);
434void m_lock(pthread_mutex_t *mutex, int flag);
435void m_unlock(pthread_mutex_t *mutex, int flag);
436int setcolorformat(char* value);
437int setvideomode(char* value, int flag);
438char* convert_timesec(int sec);
439int writesys(const char *filename, char *value, int flag);
440int setsystime(time_t* newtime);
441int checkbox(char* box);
442int setpolicy(char* value);
443char* getpolicy();
444char* string_newline(char* str);
445char* get_label(char* device);
446char* string_quote(char* str);
447int file_exist(char* filename);
448int string_find(char* str, char* filename);
449char* createpath(char* dir, char* file);
450char* get_ipk_install(char* ipk);
451char* get_ipk_tmpinstall(char* ipk);
452char* get_ipk_listinstall();
453char* get_ipk_tmplistinstall();
454char* string_toupper(char *str);
455char* get_ipk_remove(char* ipk);
456char* get_ipk_section();
457char* get_ipk_list(char* section);
458char* string_tolower(char *str);
459int isfile(char* name);
460char* command(char* input);
461char* oitoa(int value);
462char* olutoa(unsigned long value);
463int ostrcmp(char* value1, char* value2);
464int ostrcasecmp(char* value1, char* value2);
465char* ostrcat(char* value1, char* value2, int free1, int free2);
466int ostrncmp(char* value1, char* value2, int count);
467char* readsys(const char *filename, int line);
468char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1);
469char* string_replace(char *search, char *replace, char *string, int free1);
470int writesysint(const char *filename, int value, int flag);
471char* string_remove_whitechars(char *text);
472void setfanspeed(int speed, int aktion);
473int writeallconfig(int flag);
474int checkemu();
475int setvol(int value);
476int getvol();
477char* stringreplacechar(char *str, char c1, char c2);
478char* getcpuid();
479void get_ipk_update();
480void getserial();
481char* string_decode(char* input, int flag);
482char* string_striptags(char* filename);
483char* string_resub(char* str, char* str2, char* filename);
484int cmpfilenameext(char* filename, char* ext);
485void killnet();
486void checkserial(char* input);
487
488//rcconfig.h
489int getrcconfigint(char *key, char* ext);
490char* getrcconfig(char *key, char *ext);
491int reloadconfig(char *filename);
492
493//service.h
494struct service* getservicebyservice(struct service* node, int flag);
495struct service* getservicebychannel(struct channel* chnode);
496struct service* checkservice(struct service* node);
497struct service* addservice(struct service* last);
498void delservice(struct service* snode, int flag);
499int servicestop(struct service *node, int clear, int flag);
500int servicestart(struct channel* chnode, char* channellist, char* pin, int flag);
501void serviceresetchannelinfo(struct channel* chnode);
502struct service* getservice(int type, int flag);
503char* servicecheckret(int ret, int flag);
504
505//mainbouquets.h
506int writemainbouquet(const char *filename);
507int writeallbouquet();
508struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode);
509
510//listbox.h
511struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del);
512
513//bouquets.h
514void delbouquetbychannel(int serviceid, unsigned long transponderid);
515struct bouquet* getbouquetbychannelmain(int serviceid, unsigned long transponderid);
516void recalcbouquetnr();
517void setbouquetchanneltonullmain(int serviceid, unsigned long transponderid);
518
519//audiotrack.h
520void screenaudiotrack();
521struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last);
522void freeaudiotrack(struct channel* chnode);
523
524//subtitle.h
525void screensubtitle();
526struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last);
527void freesubtitle(struct channel* chnode);
528int subtitlestop(int flag);
529int subtitlepause(int flag);
530
531//linkedchannel.h
532struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, unsigned long transponderid, struct linkedchannel* last);
533void freelinkedchannel(struct channel* chnode);
534void screenlinkedchannel();
535struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, unsigned long transponderid);
536
537//zap.h
538void zapup();
539void zapdown();
540
541//epg.h
542void screensingleepg(struct channel* chnode, struct epg* epgnode, int flag);
543void screenepg(struct channel* chnode, struct epg* epgnode, int flag);
544int writeepg(const char* filename);
545void freeepg(struct channel* chnode);
546struct epg* getepgakt(struct channel* chnode);
547struct epg* getepgbytime(struct channel* chnode, time_t akttime);
548char* epgdescunzip(struct epg* epgnode);
549
550//standby.h
551void screenstandby();
552
553//channelcache.h
554void delchannelcache(int serviceid, unsigned long transponderid);
555struct channelcache* modifychannelcache(int serviceid, unsigned long transponderid, struct channel*);
556struct channel* getchannel(int serviceid, unsigned long transponderid);
557
558// vfd.h
559int setvfdicon(vfdicons id, int onoff);
560int writevfd(char *value);
561
562//skinfunc.h
563char* getaktchannelname();
564char* getrec();
565
566#endif
Note: See TracBrowser for help on using the repository browser.