source: titan/titan/header.h @ 15288

Last change on this file since 15288 was 15288, checked in by nit, 11 years ago

fix

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