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 | //tpchoice.h |
---|
12 | struct transponder* tpchoicescreen(int orbitalpos, int flag); |
---|
13 | |
---|
14 | //extepg.h |
---|
15 | int readmhw(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
16 | int readmhw2(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
17 | int readopentv(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag); |
---|
18 | |
---|
19 | //mediadbedit.h |
---|
20 | void screenmediadbedit(char* file, int id, int flag); |
---|
21 | |
---|
22 | //shortepg.h |
---|
23 | void screenshortepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
24 | |
---|
25 | //dirsort.h |
---|
26 | int screendirsort(); |
---|
27 | |
---|
28 | // newsletter.h |
---|
29 | void screennewsletter(); |
---|
30 | void newsletterthreadfunc(struct stimerthread* self); |
---|
31 | |
---|
32 | //oldentry.h |
---|
33 | void deloldentry(struct oldentry *entry, int flag); |
---|
34 | |
---|
35 | //id3.h |
---|
36 | struct id3tag* getid3(char* file, char* id, int flag); |
---|
37 | void freeid3(struct id3tag* node); |
---|
38 | |
---|
39 | //sh4port.h and other ports |
---|
40 | int videodiscontinuityskip(struct dvbdev* node, int flag); |
---|
41 | |
---|
42 | //system_infos.h |
---|
43 | void screensystem_infos(int mode); |
---|
44 | |
---|
45 | //system_infos_sysinfo.h |
---|
46 | void screensystem_infos_sysinfo(int mode); |
---|
47 | |
---|
48 | //textinputhist.h |
---|
49 | char* textinputhist(char* title, char* text, char* histname); |
---|
50 | |
---|
51 | //unicable.h |
---|
52 | void screenunicable(struct skin* loftype, struct skin* lofl, struct skin* lofh, struct skin* satcr, struct skin* satcrfrequ2); |
---|
53 | |
---|
54 | //rc4.h |
---|
55 | void rc4(char *data, size_t dlen, char *key, size_t klen); |
---|
56 | |
---|
57 | //md5.h |
---|
58 | char* MDString (char *string); |
---|
59 | char* MDFile (char *string); |
---|
60 | char* MDPrint (unsigned char digest[16]); |
---|
61 | |
---|
62 | //unlock.h |
---|
63 | void screenunlock(); |
---|
64 | |
---|
65 | //serial.h |
---|
66 | void screenserial(); |
---|
67 | |
---|
68 | //ocrypt.h |
---|
69 | unsigned char* oencrypt(char* pw, char* buf, int len); |
---|
70 | unsigned char* odecrypt(char* pw, char* buf, int len); |
---|
71 | |
---|
72 | //mediadbcache.h |
---|
73 | struct mediadb* getmediadb(char* path, char* file, int flag); |
---|
74 | |
---|
75 | //mediadbsettings.h |
---|
76 | void screenmediadbsettings(); |
---|
77 | |
---|
78 | //mediadb.h |
---|
79 | int writemediadb(const char *filename, struct mediadb* cmediadb); |
---|
80 | int delmediadbfilter(struct mediadbfilter* mnode, int flag); |
---|
81 | 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); |
---|
82 | void freemediadbcontent(struct mediadb* node); |
---|
83 | int findfiles(char* dirname, int type, int onlydir, int onlycount, int first); |
---|
84 | struct mediadbfilter* getlastmediadbfilter(struct mediadbfilter* node, int flag); |
---|
85 | void getmediadbcounts(int* video, int* audio, int* picture); |
---|
86 | int readmediadb(const char* filename, int type, int flag); |
---|
87 | void mediadbscan(); |
---|
88 | int createmediadbfilter(int type, char* search, int flag); |
---|
89 | struct mediadbfilter* getmediadbfilterrandom(int maxentry); |
---|
90 | int getmediadbfiltercount(); |
---|
91 | void freemediadbfilter(int flag); |
---|
92 | void freemediadb(int flag); |
---|
93 | void freemediadbcategory(int flag); |
---|
94 | int delmediadb(struct mediadb* mnode, int flag); |
---|
95 | void mediadbfindfilecb(char* path, char* file, int type, char* id, int flag); |
---|
96 | char* createshortname(char* file, int *isrec, int *iscam, int flag); |
---|
97 | |
---|
98 | //eraseswap.h |
---|
99 | void screeneraseswap(); |
---|
100 | |
---|
101 | //softcam.h |
---|
102 | void screensoftcam(); |
---|
103 | |
---|
104 | //system_mixed.h |
---|
105 | void screensystem_eraseswap(); |
---|
106 | void screensystem_wizard(); |
---|
107 | |
---|
108 | // info.h |
---|
109 | void screengetserial(); |
---|
110 | void screensystem_info(int mode); |
---|
111 | |
---|
112 | //system_update.h |
---|
113 | void screensystem_update(int mode); |
---|
114 | |
---|
115 | //system_backup.h |
---|
116 | void screensystem_backup(); |
---|
117 | |
---|
118 | //system_backup_restore.h |
---|
119 | void screensystem_backup_restore(); |
---|
120 | |
---|
121 | //settings_bluebutton.h |
---|
122 | void screensettings_bluebutton(); |
---|
123 | |
---|
124 | //settings_redbutton.h |
---|
125 | void screensettings_redbutton(); |
---|
126 | |
---|
127 | //extensions.h |
---|
128 | void screenfeed(); |
---|
129 | void screenextensions(int mode, char* path); |
---|
130 | void screenextensions_check(int flag); |
---|
131 | |
---|
132 | //...port.h |
---|
133 | void fbsave(); |
---|
134 | void fbrestore(); |
---|
135 | |
---|
136 | //mostzap.h |
---|
137 | struct mostzap* createmostzap(int serviceid, uint64_t transponderid); |
---|
138 | int writemostzap(const char *filename); |
---|
139 | int delmostzap(int serviceid, uint64_t transponderid, int flag); |
---|
140 | void mostzaptobouquet(struct mainbouquet* mbouquet); |
---|
141 | |
---|
142 | //thumb.h |
---|
143 | char* checkthumb(char* path, char* file); |
---|
144 | |
---|
145 | //dvdplayer.h |
---|
146 | int dvdstop(); |
---|
147 | int dvdsetfb(); |
---|
148 | |
---|
149 | //channelhistory.h |
---|
150 | void delchannelhistory(struct channel* chnode); |
---|
151 | void addchannelhistory(struct channel* chnode, char* channellist); |
---|
152 | void screenchannelhistory(); |
---|
153 | |
---|
154 | //channellist.h |
---|
155 | int screenchannellist(struct channel** retchannel, char** retchannellist, int flag); |
---|
156 | |
---|
157 | //rguid.h |
---|
158 | void rguidthreadfunc(struct stimerthread* timernode); |
---|
159 | |
---|
160 | //inadyn.h |
---|
161 | void screennetwork_inadyn(); |
---|
162 | |
---|
163 | //epgsearch.h |
---|
164 | void screenepgsearch(char* text); |
---|
165 | |
---|
166 | //sock.h |
---|
167 | char* gethttp(char* host, char* page, int port, char* filename, char* auth, int timeout, struct download* dnode, int redirect); |
---|
168 | char *get_ip(char *host); |
---|
169 | int sockportopen(int *fd, char* ip, int port, int tout); |
---|
170 | void sockclose(int *fd); |
---|
171 | int socksend(int *fd, unsigned char* data, int count, int timeout); |
---|
172 | int sockread(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
173 | int sockcreate(int *fd, char* sockname, int maxconn); |
---|
174 | int sockaccept(int *fd, int flag); |
---|
175 | 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); |
---|
176 | int sockreceive(int *fd, unsigned char* data, int count, int timeout); |
---|
177 | void gethttpstruct(struct stimerthread* timernode, struct download* node, int flag); |
---|
178 | |
---|
179 | //numinput.h |
---|
180 | char* numinput(char* title, char* num, char* mask, int isip); |
---|
181 | |
---|
182 | //ipkg.h |
---|
183 | void freeipkg(); |
---|
184 | int ipkg_update(void); |
---|
185 | int ipkg_upgrade(void); |
---|
186 | int ipkg_list(void); |
---|
187 | int ipkg_install(const char* package); |
---|
188 | int ipkg_remove(const char* package, int purge); |
---|
189 | struct menulist* ipkmenulist(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* section, int showpng, int flag); |
---|
190 | int ipkg_list_installed(void); |
---|
191 | |
---|
192 | //frontenddev.h |
---|
193 | struct dvbdev* fegetdummy(); |
---|
194 | |
---|
195 | //dvrdev.h |
---|
196 | void dvrclose(struct dvbdev* node, int fd); |
---|
197 | struct dvbdev* dvropen(struct dvbdev* fenode); |
---|
198 | |
---|
199 | //audiodev.h |
---|
200 | int audiopause(struct dvbdev* node); |
---|
201 | int audioplay(struct dvbdev* node); |
---|
202 | int audioclearbuffer(struct dvbdev* node); |
---|
203 | |
---|
204 | //textinput.h |
---|
205 | char* textinput(char* title, char* text); |
---|
206 | |
---|
207 | //httpdsettings.h |
---|
208 | void screenhttpdsettings(); |
---|
209 | |
---|
210 | //help.h |
---|
211 | void screenhelp(struct skin* node); |
---|
212 | |
---|
213 | //restoredefault.h |
---|
214 | void screenrestoredefault(); |
---|
215 | |
---|
216 | //ca.h |
---|
217 | int getfreecasession(struct dvbdev* dvbnode, int type, int value); |
---|
218 | void caappmenu(struct dvbdev* dvbnode); |
---|
219 | |
---|
220 | //cam.h |
---|
221 | int getcaservicebyslot(struct caslot* caslot, int flag); |
---|
222 | void caservicedel(struct service* snode, struct caslot* caslot); |
---|
223 | void sendcapmt(struct service* node, int clear, int flag); |
---|
224 | |
---|
225 | //gmultiepg.h |
---|
226 | void screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
227 | |
---|
228 | //multiepg.h |
---|
229 | void screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
230 | |
---|
231 | //harddisk.h |
---|
232 | void hddfsck(char* dev); |
---|
233 | void hddformat(char* dev, char* filesystem); |
---|
234 | int addhddall(); |
---|
235 | |
---|
236 | //autores.h |
---|
237 | void autoresthreadfunc(struct stimerthread* self, char* text, int timeout); |
---|
238 | void screenautores(char* text, int timeout, int flag); |
---|
239 | |
---|
240 | // timeshift.h |
---|
241 | void timeshiftstop(int flag); |
---|
242 | |
---|
243 | // keyaktions.h |
---|
244 | void keyactions(int key, int flag); |
---|
245 | void keyactions_setres(); |
---|
246 | |
---|
247 | //dmxdev.h |
---|
248 | struct dvbdev* dmxgetlast(int adapter); |
---|
249 | |
---|
250 | // harddisk.h |
---|
251 | char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng); |
---|
252 | |
---|
253 | // videodev.h |
---|
254 | int videoreadqwidth(struct dvbdev* node); |
---|
255 | int videofreeze(struct dvbdev* node); |
---|
256 | int videocontinue(struct dvbdev* node); |
---|
257 | int videofastforward(struct dvbdev* node, int frames); |
---|
258 | int videoclearbuffer(struct dvbdev* node); |
---|
259 | int videogetpts(struct dvbdev* node, uint64_t* pts); |
---|
260 | |
---|
261 | // scan.h |
---|
262 | unsigned int satblindscan(struct stimerthread* timernode, int onlycalc); |
---|
263 | unsigned int cableblindscan(struct stimerthread* timernode, int onlycalc); |
---|
264 | unsigned int terrblindscan(struct stimerthread* timernode, int onlycalc); |
---|
265 | int findchannel(struct dvbdev* fenode, struct transponder* tpnode, unsigned char *buf, uint8_t* lastsecnr, struct skin* scan, struct skin* listbox, int flag); |
---|
266 | void screenscanconfig(int flag); |
---|
267 | |
---|
268 | // screensaver.h |
---|
269 | int showscreensaver(); |
---|
270 | int initscreensaver(); |
---|
271 | int deinitscreensaver(); |
---|
272 | |
---|
273 | // screensaveradjust.h |
---|
274 | void screenscreensaveradjust(); |
---|
275 | |
---|
276 | //dir.h |
---|
277 | 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); |
---|
278 | void readlabelext(struct skin* label, char* filename, char* ext); |
---|
279 | |
---|
280 | // mainplaylist.h |
---|
281 | int writeallplaylist(); |
---|
282 | int writemainplaylist(const char *filename); |
---|
283 | struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode); |
---|
284 | struct mainplaylist* screenmainplaylist(int flag); |
---|
285 | |
---|
286 | //playlist.h |
---|
287 | int getplaylistmax(struct playlist* plist); |
---|
288 | struct playlist* getplaylistrandom(struct playlist* plist, int max); |
---|
289 | |
---|
290 | // screensaveradjust.h |
---|
291 | void screensaveradjust(); |
---|
292 | |
---|
293 | //download.h |
---|
294 | int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int timeout, int flag); |
---|
295 | |
---|
296 | // epgrecord.h |
---|
297 | void freeepgrecord(struct epgrecord** first); |
---|
298 | int recordstartreal(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode, int tssize); |
---|
299 | |
---|
300 | //titan.c |
---|
301 | void oshutdown(int exitcode, int flag); |
---|
302 | int createstartscreen(); |
---|
303 | |
---|
304 | // powerofftimer.h |
---|
305 | void screenpowerofftimer(void); |
---|
306 | |
---|
307 | // videosettings.h |
---|
308 | void screenvideosettings(); |
---|
309 | |
---|
310 | // harddisk.h |
---|
311 | void screenharddisk(int mode); |
---|
312 | void screenharddisksleep(); |
---|
313 | |
---|
314 | // network.h |
---|
315 | void screennetwork(int mode); |
---|
316 | void screennetwork_adapter(); |
---|
317 | void screennetwork_restart(struct inetwork* net, int flag); |
---|
318 | void screennetwork_test(); |
---|
319 | void screennetwork_wlan(); |
---|
320 | |
---|
321 | //channel.h |
---|
322 | int writechannel(const char *filename); |
---|
323 | 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); |
---|
324 | void delchannelbytransponder(uint64_t transponderid); |
---|
325 | struct channel* gettmpchannel(); |
---|
326 | int delchannel(int serviceid, uint64_t transponderid, int flag); |
---|
327 | int movechanneldown(struct channel* node); |
---|
328 | int movechannelup(struct channel* node); |
---|
329 | |
---|
330 | //transponder.h |
---|
331 | struct transponder* gettransponder(uint64_t transponderid); |
---|
332 | int writetransponder(const char *filename); |
---|
333 | void deltransponderbyorbitalpos(int orbitalpos); |
---|
334 | void deltransponder(struct transponder* tpnode); |
---|
335 | |
---|
336 | //sat.h |
---|
337 | int writesat(const char *filename); |
---|
338 | void delsat(char *name); |
---|
339 | struct sat* getsatbyorbitalpos(int orbitalpos); |
---|
340 | int movesatdown(struct sat* node); |
---|
341 | int movesatup(struct sat* node); |
---|
342 | |
---|
343 | //provider.h |
---|
344 | int writeprovider(const char *filename); |
---|
345 | void delprovidernotused(struct provider* node); |
---|
346 | int moveproviderdown(struct provider* node); |
---|
347 | int moveproviderup(struct provider* node); |
---|
348 | |
---|
349 | //httpd.h |
---|
350 | void httpdthreadfunc(struct stimerthread* timernode); |
---|
351 | void sendoktext(int* connfd, char* text, int auth); |
---|
352 | |
---|
353 | //skinconfig.h |
---|
354 | int getskinconfigint(char *key, char *ext); |
---|
355 | char* getskinconfig(char *key, char *ext); |
---|
356 | |
---|
357 | //record.h |
---|
358 | struct service* getrecordbyname(char* recname, int type); |
---|
359 | int recordskipplay(struct service* servicenode, int sekunden); |
---|
360 | void recordffrwts(struct service* servicenode, int speed); |
---|
361 | |
---|
362 | //dvdplayer.h |
---|
363 | int dvdstart(char* filename); |
---|
364 | int dvdisplaying(); |
---|
365 | void dvdgotmessage(); |
---|
366 | int dvdkeypress(int key); |
---|
367 | int dvdmenuopen(); |
---|
368 | void dvdchangevideo(); |
---|
369 | void dvdafterend(); |
---|
370 | |
---|
371 | // play.h |
---|
372 | void playerffts(int speed); |
---|
373 | int screenplay(char* startfile, char* showname, int startfolder, int flag); |
---|
374 | void playrcstop(int playertype, int flag); |
---|
375 | void playwritevfd(char* file, char* showname); |
---|
376 | void playstartservice(); |
---|
377 | void screenplayinfobar(char* file, char* showname, int mode, int playertype, int flag); |
---|
378 | void playrcgreen(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
379 | void playrcred(char* file, char* showname, int playinfobarstatus, int playertype, int flag); |
---|
380 | void playrcinfo(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
381 | void playrcff(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
382 | void playrcfr(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
383 | void playrcpause(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
384 | void playrcplay(char* file, char* showname, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
385 | void playrcjumpr(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
386 | void playrcjumpf(char* file, char* showname, int sec, int* playinfobarstatus, int* playinfobarcount, int playertype, int flag); |
---|
387 | void get_mediadb_scan_info(); |
---|
388 | |
---|
389 | //inetwork.h |
---|
390 | struct inetwork* getinetworkbydevice(char* device); |
---|
391 | |
---|
392 | //fb.h |
---|
393 | void blitfb(int flag); |
---|
394 | void changefbresolution(char *value); |
---|
395 | void setfbtransparent(int value); |
---|
396 | struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize); |
---|
397 | void blitfb2(struct fb* fbnode, int flag); |
---|
398 | void delfb(char *name); |
---|
399 | void fb2png_thread(); |
---|
400 | int fb2png(unsigned char *buf_p, int width, int height, char *outfile); |
---|
401 | void clearfball(); |
---|
402 | |
---|
403 | //timerthread.h |
---|
404 | struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last); |
---|
405 | void deltimer(struct stimerthread *tnode, int flag); |
---|
406 | struct stimerthread* gettimerbythread(pthread_t thread); |
---|
407 | |
---|
408 | //epgscanlist.h |
---|
409 | struct epgscanlist* getepgscanlist(int serviceid, uint64_t transponderid); |
---|
410 | int writeepgscanlist(const char *filename); |
---|
411 | int delepgscanlist(int serviceid, uint64_t transponderid); |
---|
412 | |
---|
413 | //rectimer.h |
---|
414 | int readrectimer(char *filename); |
---|
415 | int writerectimer(const char *filename, int flag); |
---|
416 | int recordcheckcrypt(struct dvbdev* fenode, int servicetype); |
---|
417 | int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode); |
---|
418 | char* recordcheckret(struct stimerthread* timernode, int ret, int flag); |
---|
419 | void checkrecepgret(int ret); |
---|
420 | int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist); |
---|
421 | struct rectimer* getrectimerbyservice(struct service* servicenode); |
---|
422 | void delrectimer(struct rectimer* rectimernode, int write, int flag); |
---|
423 | int rectimergetaktday(); |
---|
424 | |
---|
425 | //dvb.h |
---|
426 | unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout); |
---|
427 | int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag); |
---|
428 | int dvbwrite(int fd, unsigned char* buf, int count, int tout); |
---|
429 | int dvbgetdate(time_t* time, int timeout); |
---|
430 | int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize); |
---|
431 | int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize); |
---|
432 | |
---|
433 | //pin.h |
---|
434 | int screenpincheck(int type, char* pin); |
---|
435 | void screenpin(); |
---|
436 | |
---|
437 | //videomode.h |
---|
438 | void screenvideomode(int flag); |
---|
439 | |
---|
440 | //pic.h |
---|
441 | void delpic(char* name); |
---|
442 | struct pic* getpic(char* name); |
---|
443 | void delmarkedpic(int del); |
---|
444 | 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); |
---|
445 | |
---|
446 | //showiframe.h |
---|
447 | int singlepicstart(const char *filename, int flag); |
---|
448 | |
---|
449 | //player.h |
---|
450 | void playerslowts(int speed); |
---|
451 | void playerff(int speed); |
---|
452 | void playerfr(int speed); |
---|
453 | void playercontinue(); |
---|
454 | void playerpause(); |
---|
455 | int playerstop(); |
---|
456 | void playerseek(float sec); |
---|
457 | int playerstart(char* file); |
---|
458 | unsigned long long playergetpts(); |
---|
459 | double playergetlength(); |
---|
460 | int playergetinfots(unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* aktpts, unsigned long long* bitrate, int flag); |
---|
461 | int playerisplaying(); |
---|
462 | void playerafterend(); |
---|
463 | int playergetbuffersize(); |
---|
464 | int playergetbufferstatus(); |
---|
465 | |
---|
466 | //filelist.h |
---|
467 | void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection); |
---|
468 | int createfilelist(struct skin* screen, struct skin* node, int view); |
---|
469 | |
---|
470 | //plugin.h |
---|
471 | struct skin* getplugin(char* pluginname); |
---|
472 | int loadplugin(); |
---|
473 | |
---|
474 | //listbox.h |
---|
475 | int setlistboxselection(struct skin* listbox, char* childname); |
---|
476 | |
---|
477 | //list.h |
---|
478 | struct clist* addlist(struct clist **clist, char *key1, char *value1); |
---|
479 | void freelist(struct clist** clist); |
---|
480 | struct clist* addlisttmp(struct clist **clist, char *key1, char *value1); |
---|
481 | |
---|
482 | //choicebox.h |
---|
483 | int setchoiceboxselection(struct skin* choicebox, char* value); |
---|
484 | int addchoicebox(struct skin* choicebox, char* value, char* text); |
---|
485 | |
---|
486 | //ownconfig.h |
---|
487 | char* getownconfig(char *key); |
---|
488 | char* getownconfigq(char *key); |
---|
489 | struct clist* addownconfigscreentmp(char *key, struct skin *node); |
---|
490 | struct clist* addownconfigscreenqtmp(char *key, struct skin *node); |
---|
491 | struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check); |
---|
492 | int writeownconfigtmp(); |
---|
493 | void delownconfigtmpall(); |
---|
494 | struct clist* addownconfig(char *key, char *value); |
---|
495 | |
---|
496 | //infobar.h |
---|
497 | void fillinfobar(); |
---|
498 | |
---|
499 | //menulist.h |
---|
500 | void freemenulist(struct menulist* mlist, int delparam); |
---|
501 | void addmenulistall(struct menulist** mlist, char* allname, char* pic, int deaktiv, char* defaultentry); |
---|
502 | struct menulist* addmenulist(struct menulist** mlist, char* name, char* text, char* pic, int deaktiv, int defaultentry); |
---|
503 | struct menulist* menulistbox(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int flag); |
---|
504 | struct menulist* menulistboxext(struct menulist* mlist, char* paramskinname, char* skintitle, char* paramskinpath, char* defaultpic, int showpng, int* rcreturn, int flag); |
---|
505 | void setmenulistdefault(struct menulist* mlist, char* defaultentry); |
---|
506 | void changemenulistparam(struct menulist* mlist, char* param, char* param1); |
---|
507 | |
---|
508 | //skinfunc.h |
---|
509 | char* gettime(struct skin* node, char* format); |
---|
510 | char* getepgakttitle(struct skin* node); |
---|
511 | |
---|
512 | //skin.h |
---|
513 | void restorescreennofree(char* buf, struct skin* node); |
---|
514 | unsigned char *loadjpg(char *filename, unsigned long *width, unsigned long *height, unsigned long *rowbytes, int *channels, int denom); |
---|
515 | int changeselectpic(struct skin* node, char* text); |
---|
516 | void calcautoscale(int width, int height, int mwidth, int mheight, int* scalewidth, int* scaleheight); |
---|
517 | void blitscale(int posx, int posy, int width, int height, int scalewidth, int scaleheight, int flag); |
---|
518 | unsigned char* scale(unsigned char* buf, int width, int height, int channels, int newwidth, int newheight, int free1); |
---|
519 | void blitrect(int posx, int posy, int width, int height, long color, int transparent, int mode); |
---|
520 | void fillrect(int posx, int posy, int width, int height, long color, int transparent); |
---|
521 | int setnodeattr(struct skin* node, struct skin* parent, int screencalc); |
---|
522 | void clearscreennolock(struct skin* node); |
---|
523 | void clearshadow(struct skin* node); |
---|
524 | char* savescreen(struct skin* node); |
---|
525 | void restorescreen(char* buf, struct skin* node); |
---|
526 | char* changepicpath(char* picname); |
---|
527 | long convertcol(char *value); |
---|
528 | void delmarkedscreen(int del); |
---|
529 | void delscreen(struct skin *node); |
---|
530 | void delscreennode(struct skin *node, char* nodename); |
---|
531 | int readscreen(char *filename, int del, int flag); |
---|
532 | int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd); |
---|
533 | 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); |
---|
534 | void delmarkedscreennodes(struct skin* node, int mark); |
---|
535 | void clearscreen(struct skin* node); |
---|
536 | struct skin* getscreennode(struct skin *node, char* nodename); |
---|
537 | struct skin* getscreen(char* screenname); |
---|
538 | int calcrheight(struct skin* node, struct skin* parent); |
---|
539 | int drawscreen(struct skin* node, int screencalc, int flag); |
---|
540 | struct skin* addscreennode(struct skin* node, char* line, struct skin* last); |
---|
541 | int changetext(struct skin* node, char* text); |
---|
542 | int changetext2(struct skin* node, char* text); |
---|
543 | int changeinput(struct skin* node, char* text); |
---|
544 | int changename(struct skin* node, char* text); |
---|
545 | int changeret(struct skin* node, char* text); |
---|
546 | int changepic(struct skin* node, char* text); |
---|
547 | int changetitle(struct skin* node, char* text); |
---|
548 | int changefont(struct skin* node, char* text); |
---|
549 | int changemask(struct skin* node, char* text); |
---|
550 | int changepicmem(struct skin* node, char* text, int timeout, int del); |
---|
551 | int convertxmlentry(char *value, uint8_t *proz); |
---|
552 | unsigned char* savejpg(char* filename, int width, int height, int channels, int newwidth, int newheight, int quality, unsigned char *buf); |
---|
553 | |
---|
554 | //volume.h |
---|
555 | void screenvolumeup(); |
---|
556 | void screenvolumedown(); |
---|
557 | |
---|
558 | //mute.h |
---|
559 | void screenmute(struct skin* screen, struct skin* node, int flag); |
---|
560 | |
---|
561 | //menu.h |
---|
562 | int menucall(struct skin* menunode, struct skin* menuentry, int check); |
---|
563 | |
---|
564 | //textbox.h |
---|
565 | 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); |
---|
566 | |
---|
567 | //config.h |
---|
568 | struct clist* addconfig(char *key, char *value); |
---|
569 | void delconfigtmpall(); |
---|
570 | struct clist* addconfigscreencheck(char *key, struct skin *node, char* check); |
---|
571 | struct clist* addconfigdef(char *key, char *value); |
---|
572 | struct clist* addconfigtmp(char *key, char *value); |
---|
573 | char* getconfig(char *key, char *ext); |
---|
574 | char* getconfignotmp(char *key, char *ext); |
---|
575 | int getconfigint(char *key, char* ext); |
---|
576 | void delconfig(char *key); |
---|
577 | void delconfigtmp(char *key); |
---|
578 | struct clist* addconfiginttmp(char *key, int value); |
---|
579 | int writeconfigtmp(); |
---|
580 | int readconfig(const char *filename, struct clist** tmpconfig); |
---|
581 | struct clist* addconfigint(char *key, int value); |
---|
582 | |
---|
583 | //rc.h |
---|
584 | int waitrcext(struct skin* owner, unsigned int timeout, int screencalc, int filelistview); |
---|
585 | int waitrc(struct skin* owner, unsigned int timeout, int flag); |
---|
586 | void delownerrc(struct skin* owner); |
---|
587 | struct rc* addrc(int key, void *func, struct skin* screen, struct skin *screennode); |
---|
588 | void delrc(int key, struct skin* owner, struct skin* screennode); |
---|
589 | int flushrc(unsigned int timeout); |
---|
590 | |
---|
591 | //rcfunc.h |
---|
592 | void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int screencalc, int filelistview, int flag); |
---|
593 | void inputboxff(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
594 | void inputboxfr(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
595 | void inputboxright(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
596 | void inputboxleft(struct skin* screen, struct skin* inputbox, int screencalc, int filelistview, int flag); |
---|
597 | int addscreenrc(struct skin* screen, struct skin* node); |
---|
598 | void checkinputboxnumright(struct skin* inputbox); |
---|
599 | int delscreenrc(struct skin* screen, struct skin* node); |
---|
600 | |
---|
601 | //spinner.h |
---|
602 | void screenspinner(); |
---|
603 | |
---|
604 | //global.h |
---|
605 | char* mask(char* input, int count, char* maskchar); |
---|
606 | char* getboxtype(); |
---|
607 | char* getfilenameext(char* filename); |
---|
608 | void startnet(); |
---|
609 | int checkdirext(char* dir, char* ext); |
---|
610 | char* string_replace_all(char *search, char *replace, char *string, int free1); |
---|
611 | struct tm* olocaltime(time_t *value); |
---|
612 | void setskinnodeslocked(int flag); |
---|
613 | char* stringreplacecharonce(char *str, char c1, char c2); |
---|
614 | int getrandom(int max); |
---|
615 | int clearbit(int value, int bitpos); |
---|
616 | int checkbit(int value, int bitpos); |
---|
617 | char* addmountpart(char* filename, int free1); |
---|
618 | char* string_removechar(char *str); |
---|
619 | unsigned int gethash(char* str); |
---|
620 | char* oregex(char* regex, char* str); |
---|
621 | int resettvpic(); |
---|
622 | unsigned long readsysul(const char *filename, int line); |
---|
623 | char* oitoax(int value); |
---|
624 | void closeonexec(int fd); |
---|
625 | char* ostrstrcase(char* str, char* sub); |
---|
626 | char* getdevcontent(char* devconfig); |
---|
627 | char* getxmlentry(char *line, char *searchstr); |
---|
628 | void debugstack(void* address, void* address1); |
---|
629 | char* string_strip_whitechars(char *text); |
---|
630 | int ounzip(char* inbuf, int inlen, char** outbuf, int* outlen, int maxbuf, int flag); |
---|
631 | int ozip(char* inbuf, int inlen, char** outbuf, int* outlen, int level); |
---|
632 | int delallfiles(char* dir, char* ext); |
---|
633 | unsigned long getfilecount(char* dir); |
---|
634 | char* readfiletomem(const char* filename, int flag); |
---|
635 | char* readbintomem(const char* filename, size_t size); |
---|
636 | int setbit(int value, int bitpos); |
---|
637 | char* changefilenameext(char* filename, char* ext); |
---|
638 | void destroy(); |
---|
639 | void htmldecode(char* to, char* from); |
---|
640 | void setosdtransparent(int value); |
---|
641 | char* string_shortname(char *tmpfilename, int mode); |
---|
642 | off64_t getfilesize(char* name); |
---|
643 | struct splitstr* strsplit(char *str, char *tok, int* count); |
---|
644 | char* strstrip(char *text); |
---|
645 | char* fixip(char* ipinput, int flag); |
---|
646 | void m_lock(pthread_mutex_t *mutex, int flag); |
---|
647 | void m_unlock(pthread_mutex_t *mutex, int flag); |
---|
648 | int setcolorformat(char* value); |
---|
649 | int setvideomode(char* value, int flag); |
---|
650 | char* convert_timesec(int sec); |
---|
651 | int writesys(const char *filename, char *value, int flag); |
---|
652 | int setsystime(time_t* newtime); |
---|
653 | int checkbox(char* box); |
---|
654 | int setpolicy(char* value); |
---|
655 | char* getpolicy(); |
---|
656 | char* string_newline(char* str); |
---|
657 | char* get_label(char* device); |
---|
658 | char* string_quote(char* str); |
---|
659 | int file_exist(char* filename); |
---|
660 | char* ostrstr(char* str, char* search); |
---|
661 | char* createpath(char* dir, char* file); |
---|
662 | char* get_ipk_install(char* ipk); |
---|
663 | char* get_ipk_tmpinstall(char* path, char* ipk); |
---|
664 | char* get_ipk_listinstall(); |
---|
665 | char* get_ipk_tmplistinstall(); |
---|
666 | char* string_toupper(char *str); |
---|
667 | char* get_ipk_remove(char* ipk); |
---|
668 | char* get_ipk_section(); |
---|
669 | char* get_ipk_list(char* section); |
---|
670 | char* string_tolower(char *str); |
---|
671 | int isfile(char* name); |
---|
672 | char* command(char* input); |
---|
673 | char* oitoa(int value); |
---|
674 | char* olutoa(unsigned long value); |
---|
675 | char* ollutoa(uint64_t value); |
---|
676 | int ostrcmp(char* value1, char* value2); |
---|
677 | int ostrcasecmp(char* value1, char* value2); |
---|
678 | char* ostrshrink(char* value); |
---|
679 | char* ostrcat(char* value1, char* value2, int free1, int free2); |
---|
680 | int ostrncmp(char* value1, char* value2, int count); |
---|
681 | char* readsys(const char *filename, int line); |
---|
682 | char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1); |
---|
683 | char* string_replace(char *search, char *replace, char *string, int free1); |
---|
684 | int writesysint(const char *filename, int value, int flag); |
---|
685 | char* string_remove_whitechars(char *text); |
---|
686 | void setfanspeed(int speed, int aktion); |
---|
687 | int writeallconfig(int flag); |
---|
688 | int checkemu(); |
---|
689 | int setvol(int value); |
---|
690 | int getvol(); |
---|
691 | char* stringreplacechar(char *str, char c1, char c2); |
---|
692 | char* getcpuid(); |
---|
693 | void get_ipk_update(); |
---|
694 | char* string_decode(char* input, int flag); |
---|
695 | char* string_striptags(char* filename); |
---|
696 | char* string_resub(char* str, char* str2, char* input, int dir); |
---|
697 | int cmpfilenameext(char* filename, char* ext); |
---|
698 | void killnet(); |
---|
699 | void checkserial(char* input); |
---|
700 | int checkprozess(char* input); |
---|
701 | struct regex* regexstruct(char* regex, char* str); |
---|
702 | void freeregexstruct(struct regex* node); |
---|
703 | char fromhex(char c); |
---|
704 | char* unhexlify(char *hexstr); |
---|
705 | int isdir(char* name); |
---|
706 | void htmldecode3(char* to, char* from); |
---|
707 | char* string_deltags(char* str); |
---|
708 | char* readfromlinetoline(char* str, int start, int end, int flag); |
---|
709 | int checkdev(char* dev); |
---|
710 | char* getvideomode(); |
---|
711 | int checkinternet(); |
---|
712 | struct splitstr* oregexsplit(char* regex, char *str, char *tok, int* count); |
---|
713 | void freeoregexsplit(struct splitstr* tmparray, int len); |
---|
714 | char* fixport(char* input, int flag); |
---|
715 | |
---|
716 | //rcconfig.h |
---|
717 | int getrcconfigint(char *key, char* ext); |
---|
718 | char* getrcconfig(char *key, char *ext); |
---|
719 | int reloadconfig(char *filename); |
---|
720 | |
---|
721 | //service.h |
---|
722 | struct service* getservicebyservice(struct service* node, int flag); |
---|
723 | struct service* getservicebychannel(struct channel* chnode); |
---|
724 | struct service* checkservice(struct service* node); |
---|
725 | struct service* addservice(struct service* last); |
---|
726 | void delservice(struct service* snode, int flag); |
---|
727 | int servicestop(struct service *node, int clear, int flag); |
---|
728 | int servicestart(struct channel* chnode, char* channellist, char* pin, int flag); |
---|
729 | void serviceresetchannelinfo(struct channel* chnode); |
---|
730 | struct service* getservice(int type, int flag); |
---|
731 | char* servicecheckret(int ret, int flag); |
---|
732 | |
---|
733 | //mainbouquets.h |
---|
734 | int writemainbouquet(const char *filename); |
---|
735 | int writeallbouquet(); |
---|
736 | struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode); |
---|
737 | int movemainbouquetdown(struct mainbouquet* node); |
---|
738 | int movemainbouquetup(struct mainbouquet* node); |
---|
739 | struct mainbouquet* addmainbouquet(char *line, int count, struct mainbouquet* last); |
---|
740 | |
---|
741 | //listbox.h |
---|
742 | struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del); |
---|
743 | |
---|
744 | //bouquets.h |
---|
745 | void delbouquetbychannel(int serviceid, uint64_t transponderid); |
---|
746 | struct bouquet* getbouquetbychannelmain(int serviceid, uint64_t transponderid); |
---|
747 | void recalcbouquetnr(); |
---|
748 | void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid); |
---|
749 | void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode); |
---|
750 | int movebouquetdown(struct bouquet* node); |
---|
751 | int movebouquetup(struct bouquet* node); |
---|
752 | struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last); |
---|
753 | |
---|
754 | //audiotrack.h |
---|
755 | void screenaudiotrack(); |
---|
756 | struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last); |
---|
757 | void freeaudiotrack(struct channel* chnode); |
---|
758 | |
---|
759 | //subtitle.h |
---|
760 | void screensubtitle(); |
---|
761 | struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last); |
---|
762 | void freesubtitle(struct channel* chnode); |
---|
763 | int subtitlestop(int flag); |
---|
764 | int subtitlepause(int flag); |
---|
765 | |
---|
766 | //linkedchannel.h |
---|
767 | struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid, struct linkedchannel* last); |
---|
768 | void freelinkedchannel(struct channel* chnode); |
---|
769 | void screenlinkedchannel(); |
---|
770 | struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, uint64_t transponderid); |
---|
771 | |
---|
772 | //zap.h |
---|
773 | void zapup(); |
---|
774 | void zapdown(); |
---|
775 | |
---|
776 | //epg.h |
---|
777 | void screensingleepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
778 | void screenepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
779 | |
---|
780 | //eit.h |
---|
781 | void epgthreadfunc(struct stimerthread* self); |
---|
782 | struct epg* getepgnext(struct channel* chnode); |
---|
783 | int writeepg(const char* filename); |
---|
784 | void freeepg(struct channel* chnode); |
---|
785 | struct epg* getepgakt(struct channel* chnode); |
---|
786 | struct epg* getepgbytime(struct channel* chnode, time_t akttime); |
---|
787 | char* epgdescunzip(struct epg* epgnode); |
---|
788 | struct epg* addoldentryepg(struct channel* chnode, struct epg* newnode, int flag); |
---|
789 | void deloldentryepg(struct epg* node); |
---|
790 | void clearepgentry(struct epg* node); |
---|
791 | |
---|
792 | //standby.h |
---|
793 | void screenstandby(); |
---|
794 | |
---|
795 | //channelcache.h |
---|
796 | void delchannelcache(int serviceid, uint64_t transponderid); |
---|
797 | struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel*); |
---|
798 | struct channel* getchannel(int serviceid, uint64_t transponderid); |
---|
799 | |
---|
800 | // vfd.h |
---|
801 | int setvfdicon(vfdicons id, int onoff); |
---|
802 | int writevfd(char *value); |
---|
803 | |
---|
804 | //skinfunc.h |
---|
805 | char* getaktchannelname(); |
---|
806 | char* getrec(); |
---|
807 | |
---|
808 | //marker.h |
---|
809 | struct marker* addmarkernode(off64_t pos); |
---|
810 | int delmarkernode(off64_t pos); |
---|
811 | int delmarker(char* timetext); |
---|
812 | int getmarker(char* dateiname); |
---|
813 | int putmarker(char* dateiname); |
---|
814 | int setmarker(); |
---|
815 | int jumpmarker(char* timetext); |
---|
816 | void screenmarker(); |
---|
817 | |
---|
818 | |
---|
819 | #endif |
---|