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