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