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