source: titan/titan/header.h @ 45606

Last change on this file since 45606 was 45606, checked in by obi, 8 months ago

readd ipsec

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