1 | #ifndef HEADER_H |
---|
2 | #define HEADER_H |
---|
3 | |
---|
4 | //numinput.h |
---|
5 | char* numinput(char* title, char* num, char* mask, int isip); |
---|
6 | |
---|
7 | //frontenddev.h |
---|
8 | struct dvbdev* fegetdummy(); |
---|
9 | |
---|
10 | //dvrdev.h |
---|
11 | void dvrclose(struct dvbdev* node, int fd); |
---|
12 | struct dvbdev* dvropen(struct dvbdev* fenode); |
---|
13 | |
---|
14 | //audiodev.h |
---|
15 | int audiopause(struct dvbdev* node); |
---|
16 | int audioplay(struct dvbdev* node); |
---|
17 | |
---|
18 | //textinput.h |
---|
19 | char* textinput(char* title, char* text); |
---|
20 | |
---|
21 | //httpdsettings.h |
---|
22 | void screenhttpdsettings(); |
---|
23 | |
---|
24 | //help.h |
---|
25 | void screenhelp(struct skin* node); |
---|
26 | |
---|
27 | //restoredefault.h |
---|
28 | void screenrestoredefault(); |
---|
29 | |
---|
30 | //ca.h |
---|
31 | int getfreecasession(struct dvbdev* dvbnode, int type, int value); |
---|
32 | void caappmenu(struct dvbdev* dvbnode); |
---|
33 | |
---|
34 | //cam.h |
---|
35 | int getcaservicebyslot(struct caslot* caslot, int flag); |
---|
36 | void caservicedel(struct service* snode, struct caslot* caslot); |
---|
37 | void sendcapmt(struct service* node, int clear, int flag); |
---|
38 | |
---|
39 | //gmultiepg.h |
---|
40 | void screengmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
41 | |
---|
42 | //multiepg.h |
---|
43 | void screenmultiepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
44 | |
---|
45 | //harddisk.h |
---|
46 | void hddfsck(char* dev); |
---|
47 | void hddformat(char* dev, char* filesystem); |
---|
48 | int addhddall(); |
---|
49 | |
---|
50 | //autores.h |
---|
51 | void autoresthreadfunc(struct stimerthread* self, char* text, int timeout); |
---|
52 | void screenautores(char* text, int timeout, int flag); |
---|
53 | |
---|
54 | // timeshift.h |
---|
55 | void timeshiftstop(int flag); |
---|
56 | |
---|
57 | // keyaktions.h |
---|
58 | void keyactions(int key, int flag); |
---|
59 | void keyactions_setres(); |
---|
60 | |
---|
61 | //dmxdev.h |
---|
62 | struct dvbdev* dmxgetlast(int adapter); |
---|
63 | |
---|
64 | // harddisk.h |
---|
65 | char* harddisk_listbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng); |
---|
66 | |
---|
67 | // videodev.h |
---|
68 | int videoreadqwidth(struct dvbdev* node); |
---|
69 | int videofreeze(struct dvbdev* node); |
---|
70 | int videocontinue(struct dvbdev* node); |
---|
71 | |
---|
72 | // scan.h |
---|
73 | int findchannel(struct transponder* tpnode, unsigned char *buf, uint8_t* lastsecnr, struct skin* scan, struct skin* listbox, int flag); |
---|
74 | void screenscanconfig(int flag); |
---|
75 | |
---|
76 | // mainplaylist.h |
---|
77 | struct mainplaylist* screenmainplaylist(int flag); |
---|
78 | |
---|
79 | // screensaver.h |
---|
80 | int showscreensaver(); |
---|
81 | int initscreensaver(); |
---|
82 | int deinitscreensaver(); |
---|
83 | |
---|
84 | // screensaveradjust.h |
---|
85 | void screenscreensaveradjust(); |
---|
86 | |
---|
87 | //dir.h |
---|
88 | 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); |
---|
89 | |
---|
90 | // mainplaylist.h |
---|
91 | int writeallplaylist(); |
---|
92 | int writemainplaylist(const char *filename); |
---|
93 | struct mainplaylist* getmainplaylistbyplaylistpointer(struct playlist* playlistnode); |
---|
94 | |
---|
95 | // screensaveradjust.h |
---|
96 | void screensaveradjust(); |
---|
97 | |
---|
98 | //download.h |
---|
99 | int screendownload(char* title, char* host, char* page, int port, char* filename, int flag); |
---|
100 | |
---|
101 | // epgrecord.h |
---|
102 | void freeepgrecord(struct epgrecord** first); |
---|
103 | |
---|
104 | //titan.c |
---|
105 | void oshutdown(int exitcode, int flag); |
---|
106 | int createstartscreen(); |
---|
107 | |
---|
108 | // powerofftimer.h |
---|
109 | void screenpowerofftimer(void); |
---|
110 | |
---|
111 | // videosettings.h |
---|
112 | void screenvideosettings(); |
---|
113 | |
---|
114 | // harddisk.h |
---|
115 | void screenharddisk(int mode); |
---|
116 | void screenharddisksleep(); |
---|
117 | |
---|
118 | // network.h |
---|
119 | void screennetwork(int mode); |
---|
120 | void screennetwork_adapter(); |
---|
121 | void screennetwork_restart(); |
---|
122 | void screennetwork_test(); |
---|
123 | |
---|
124 | //channel.h |
---|
125 | int writechannel(const char *filename); |
---|
126 | 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); |
---|
127 | void delchannelbytransponder(unsigned long transponderid); |
---|
128 | |
---|
129 | //transponder.h |
---|
130 | struct transponder* gettransponder(unsigned long transponderid); |
---|
131 | int writetransponder(const char *filename); |
---|
132 | void deltransponderbyorbitalpos(int orbitalpos); |
---|
133 | |
---|
134 | //sat.h |
---|
135 | int writesat(const char *filename); |
---|
136 | |
---|
137 | //provider.h |
---|
138 | int writeprovider(const char *filename); |
---|
139 | |
---|
140 | //httpd.h |
---|
141 | void httpdthreadfunc(struct stimerthread* timernode); |
---|
142 | void sendoktext(int* connfd, char* text, int auth); |
---|
143 | |
---|
144 | //skinconfig.h |
---|
145 | int getskinconfigint(char *key, char *ext); |
---|
146 | |
---|
147 | //record.h |
---|
148 | struct service* getrecordbyname(char* recname, int type); |
---|
149 | int recordskipplay(struct service* servicenode, int sekunden); |
---|
150 | void recordffrwts(struct service* servicenode, int speed); |
---|
151 | |
---|
152 | // play.h |
---|
153 | void screenplay(int startfolder, int flag); |
---|
154 | |
---|
155 | //inetwork.h |
---|
156 | struct inetwork* getinetworkbydevice(char* device); |
---|
157 | |
---|
158 | //fb.h |
---|
159 | void blitfb(); |
---|
160 | void changefbresolution(char *value); |
---|
161 | void setfbtransparent(int value); |
---|
162 | |
---|
163 | //timerthread.h |
---|
164 | struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last); |
---|
165 | void deltimer(struct stimerthread *tnode); |
---|
166 | |
---|
167 | //epgscanlist.h |
---|
168 | struct epgscanlist* getepgscanlist(int serviceid, int transponderid); |
---|
169 | int writeepgscanlist(const char *filename); |
---|
170 | |
---|
171 | //rectimer.h |
---|
172 | int writerectimer(const char *filename, int flag); |
---|
173 | int recordcheckcrypt(struct dvbdev* fenode, int servicetype); |
---|
174 | int recordstart(struct channel* chnode, int filefd, int recordfd, int type, time_t endtime, struct rectimer* rectimernode); |
---|
175 | char* recordcheckret(struct stimerthread* timernode, int ret, int flag); |
---|
176 | void checkrecepgret(int ret); |
---|
177 | int addrecepg(struct channel* chnode, struct epg* epgnode, char* channellist); |
---|
178 | struct rectimer* getrectimerbyservice(struct service* servicenode); |
---|
179 | void delrectimer(struct rectimer* rectimernode, int write, int flag); |
---|
180 | int rectimergetaktday(); |
---|
181 | |
---|
182 | //dvb.h |
---|
183 | unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout); |
---|
184 | int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout); |
---|
185 | int dvbwrite(int fd, unsigned char* buf, int count, int tout); |
---|
186 | int dvbgetdate(time_t* time, int timeout); |
---|
187 | int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid); |
---|
188 | |
---|
189 | //pin.h |
---|
190 | int screenpincheck(int type, char* pin); |
---|
191 | void screenpin(); |
---|
192 | |
---|
193 | //videomode.h |
---|
194 | void screenvideomode(); |
---|
195 | |
---|
196 | //pic.h |
---|
197 | void delpic(char* name); |
---|
198 | struct pic* getpic(char* name); |
---|
199 | void delmarkedpic(int del); |
---|
200 | |
---|
201 | //showiframe.h |
---|
202 | int singlepicstart(const char *filename); |
---|
203 | |
---|
204 | //player.h |
---|
205 | void playerff(int speed); |
---|
206 | void playerfr(int speed); |
---|
207 | void playercontinue(); |
---|
208 | void playerpause(); |
---|
209 | int playerstop(); |
---|
210 | void playerseek(float sec); |
---|
211 | int playerstart(char* file); |
---|
212 | unsigned long long int playergetpts(); |
---|
213 | double playergetlength(); |
---|
214 | |
---|
215 | //filelist.h |
---|
216 | //void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview); |
---|
217 | void getfilelist(struct skin* input, struct skin* filelistpath, struct skin* filelist, char* path, char* filemask, int tmpview, char* selection); |
---|
218 | |
---|
219 | //plugin.h |
---|
220 | struct skin* getplugin(char* pluginname); |
---|
221 | |
---|
222 | //listbox.h |
---|
223 | int setlistboxselection(struct skin* listbox, char* childname); |
---|
224 | |
---|
225 | //list.h |
---|
226 | struct clist* addlist(struct clist **clist, char *key1, char *value1); |
---|
227 | void freelist(struct clist** clist); |
---|
228 | struct clist* addlisttmp(struct clist **clist, char *key1, char *value1); |
---|
229 | |
---|
230 | //choicebox.h |
---|
231 | int setchoiceboxselection(struct skin* choicebox, char* value); |
---|
232 | int addchoicebox(struct skin* choicebox, char* value, char* text); |
---|
233 | |
---|
234 | //ownconfig.h |
---|
235 | char* getownconfig(char *key); |
---|
236 | char* getownconfigq(char *key); |
---|
237 | struct clist* addownconfigscreentmp(char *key, struct skin *node); |
---|
238 | struct clist* addownconfigscreenqtmp(char *key, struct skin *node); |
---|
239 | struct clist* addownconfigscreentmpcheck(char *key, struct skin *node, char* check); |
---|
240 | int writeownconfigtmp(); |
---|
241 | void delownconfigtmpall(); |
---|
242 | |
---|
243 | //infobar.h |
---|
244 | void fillinfobar(); |
---|
245 | |
---|
246 | //menulist.h |
---|
247 | char* menulistbox(char* defaultstr, char* str, char* skinname, char* skintitle, char* skinpath, int showpng, int flag); |
---|
248 | |
---|
249 | //skinfunc.h |
---|
250 | char* gettime(char* format); |
---|
251 | |
---|
252 | //skin.h |
---|
253 | int setnodeattr(struct skin* node, struct skin* parent); |
---|
254 | void clearscreennolock(struct skin* node); |
---|
255 | void clearshadow(struct skin* node); |
---|
256 | char* savescreen(struct skin* node); |
---|
257 | void restorescreen(char* buf, struct skin* node); |
---|
258 | char* changepicpath(char* picname); |
---|
259 | long convertcol(char *value); |
---|
260 | void delmarkedscreen(int del); |
---|
261 | char* get_ipk_update(); |
---|
262 | void delscreen(struct skin *node); |
---|
263 | void delscreennode(struct skin *node, char* nodename); |
---|
264 | int readscreen(char *filename, int del, int flag); |
---|
265 | int readjpg(const char* filename, unsigned long* width, unsigned long* height, unsigned long* rowbytes, int* channels, unsigned char **mem, int *memfd); |
---|
266 | 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); |
---|
267 | void delmarkedscreennodes(struct skin* node, int mark); |
---|
268 | void clearscreen(struct skin* node); |
---|
269 | struct skin* getscreennode(struct skin *node, char* nodename); |
---|
270 | struct skin* getscreen(char* screenname); |
---|
271 | int calcrheight(struct skin* node, struct skin* parent); |
---|
272 | int drawscreen(struct skin* node, int flag); |
---|
273 | struct skin* addscreennode(struct skin* node, char* line, struct skin* last); |
---|
274 | int changetext(struct skin* node, char* text); |
---|
275 | int changetext2(struct skin* node, char* text); |
---|
276 | int changeinput(struct skin* node, char* text); |
---|
277 | int changename(struct skin* node, char* text); |
---|
278 | int changeret(struct skin* node, char* text); |
---|
279 | int changepic(struct skin* node, char* text); |
---|
280 | int changetitle(struct skin* node, char* text); |
---|
281 | int changefont(struct skin* node, char* text); |
---|
282 | int changemask(struct skin* node, char* text); |
---|
283 | int changepicmem(struct skin* node, char* text, int del); |
---|
284 | int convertxmlentry(char *value, uint8_t *proz); |
---|
285 | |
---|
286 | //volume.h |
---|
287 | void screenvolumeup(); |
---|
288 | void screenvolumedown(); |
---|
289 | |
---|
290 | //menu.h |
---|
291 | int menucall(struct skin* menunode, struct skin* menuentry, int check); |
---|
292 | |
---|
293 | //textbox.h |
---|
294 | 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); |
---|
295 | |
---|
296 | //config.h |
---|
297 | struct clist* addconfig(char *key, char *value); |
---|
298 | void delconfigtmpall(); |
---|
299 | struct clist* addconfigscreencheck(char *key, struct skin *node, char* check); |
---|
300 | struct clist* addconfigdef(char *key, char *value); |
---|
301 | struct clist* addconfigtmp(char *key, char *value); |
---|
302 | char* getconfig(char *key, char *ext); |
---|
303 | char* getconfignotmp(char *key, char *ext); |
---|
304 | int getconfigint(char *key, char* ext); |
---|
305 | void delconfig(char *key); |
---|
306 | void delconfigtmp(char *key); |
---|
307 | struct clist* addconfiginttmp(char *key, int value); |
---|
308 | int writeconfigtmp(); |
---|
309 | |
---|
310 | //rc.h |
---|
311 | int waitrc(struct skin* owner, unsigned int timeout, int flag); |
---|
312 | void delownerrc(struct skin* owner); |
---|
313 | void delrc(int key, struct skin* owner, struct skin* screennode); |
---|
314 | |
---|
315 | //rcfunc.h |
---|
316 | void inputboxchar(struct skin* screen, struct skin* inputbox, char zeichen, int flag); |
---|
317 | void inputboxff(struct skin* screen, struct skin* inputbox, int flag); |
---|
318 | void inputboxfr(struct skin* screen, struct skin* inputbox, int flag); |
---|
319 | void inputboxright(struct skin* screen, struct skin* inputbox, int flag); |
---|
320 | void inputboxleft(struct skin* screen, struct skin* inputbox, int flag); |
---|
321 | int addscreenrc(struct skin* screen, struct skin* node); |
---|
322 | void checkinputboxnumright(struct skin* inputbox); |
---|
323 | int delscreenrc(struct skin* screen, struct skin* node); |
---|
324 | |
---|
325 | //spinner.h |
---|
326 | void screenspinner(); |
---|
327 | |
---|
328 | //global.h |
---|
329 | char* string_shortname(char *tmpfilename, int mode); |
---|
330 | off64_t getfilesize(char* name); |
---|
331 | struct splitstr* strsplit(char *str, char *tok, int* count); |
---|
332 | char* strstrip(char *text); |
---|
333 | char* fixip(char* ipinput, int flag); |
---|
334 | void m_lock(pthread_mutex_t *mutex, int flag); |
---|
335 | void m_unlock(pthread_mutex_t *mutex, int flag); |
---|
336 | int setcolorformat(char* value); |
---|
337 | int setvideomode(char* value, int flag); |
---|
338 | char* convert_timesec(int sec); |
---|
339 | int writesys(const char *filename, char *value, int flag); |
---|
340 | int setsystime(time_t* newtime); |
---|
341 | int checkbox(char* box); |
---|
342 | int setpolicy(char* value); |
---|
343 | char* getpolicy(); |
---|
344 | char* string_newline(char* str); |
---|
345 | char* get_label(char* device); |
---|
346 | char* string_quote(char* str); |
---|
347 | int file_exist(char* filename); |
---|
348 | int string_find(char* str, char* filename); |
---|
349 | char* createpath(char* dir, char* file); |
---|
350 | char* get_ipk_install(char* ipk); |
---|
351 | char* get_ipk_tmpinstall(char* ipk); |
---|
352 | char* get_ipk_listinstall(); |
---|
353 | char* get_ipk_tmplistinstall(); |
---|
354 | char* string_toupper(char *str); |
---|
355 | char* get_ipk_remove(char* ipk); |
---|
356 | char* get_ipk_section(); |
---|
357 | char* get_ipk_list(char* section); |
---|
358 | char* string_tolower(char *str); |
---|
359 | int isfile(char* name); |
---|
360 | char* command(char* input); |
---|
361 | char* oitoa(int value); |
---|
362 | char* olutoa(unsigned long value); |
---|
363 | int ostrcmp(char* value1, char* value2); |
---|
364 | char* ostrcat(char* value1, char* value2, int free1, int free2); |
---|
365 | int ostrncmp(char* value1, char* value2, int count); |
---|
366 | char* readsys(const char *filename, int line); |
---|
367 | char* string_replace_remove_last_chars(char *search, char *replace, char *string, int free1); |
---|
368 | char* string_replace(char *search, char *replace, char *string, int free1); |
---|
369 | int writesysint(const char *filename, int value, int flag); |
---|
370 | char* string_remove_whitechars(char *text); |
---|
371 | void setfanspeed(int speed, int aktion); |
---|
372 | int writeallconfig(int flag); |
---|
373 | int checkemu(); |
---|
374 | int setvol(int value); |
---|
375 | int getvol(); |
---|
376 | |
---|
377 | //rcconfig.h |
---|
378 | int getrcconfigint(char *key, char* ext); |
---|
379 | |
---|
380 | //service.h |
---|
381 | struct service* getservicebyservice(struct service* node, int flag); |
---|
382 | struct service* getservicebychannel(struct channel* chnode); |
---|
383 | struct service* checkservice(struct service* node); |
---|
384 | struct service* addservice(struct service* last); |
---|
385 | void delservice(struct service* snode, int flag); |
---|
386 | int servicestop(struct service *node, int clear, int flag); |
---|
387 | int servicestart(struct channel* chnode, char* channellist, char* pin, int flag); |
---|
388 | void serviceresetchannelinfo(struct channel* chnode); |
---|
389 | struct service* getservice(int type, int flag); |
---|
390 | |
---|
391 | //mainbouquets.h |
---|
392 | int writemainbouquet(const char *filename); |
---|
393 | int writeallbouquet(); |
---|
394 | struct mainbouquet* getmainbouquetbybouquetpointer(struct bouquet* bouquetnode); |
---|
395 | |
---|
396 | //listbox.h |
---|
397 | struct skin* addlistbox(struct skin* screen, struct skin* listbox, struct skin* last, int del); |
---|
398 | |
---|
399 | //bouquets.h |
---|
400 | void delbouquetbychannel(int serviceid, int transponderid); |
---|
401 | struct bouquet* getbouquetbychannelmain(int serviceid, int transponderid); |
---|
402 | void recalcbouquetnr(); |
---|
403 | |
---|
404 | //audiotrack.h |
---|
405 | struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last); |
---|
406 | void freeaudiotrack(struct channel* chnode); |
---|
407 | |
---|
408 | //subtitle.h |
---|
409 | struct subtitle* addsubtitle(struct channel* chnode, int subtype, char* langdesc, int pid, int type, int id1, int id2, struct subtitle* last); |
---|
410 | void freesubtitle(struct channel* chnode); |
---|
411 | int subtitlestop(int flag); |
---|
412 | int subtitlepause(int flag); |
---|
413 | |
---|
414 | //linkedchannel.h |
---|
415 | struct linkedchannel* addlinkedchannel(struct channel* chnode, int serviceid, unsigned long transponderid, struct linkedchannel* last); |
---|
416 | void freelinkedchannel(struct channel* chnode); |
---|
417 | void screenlinkedchannel(); |
---|
418 | struct linkedchannel* getlinkedchannel(struct channel* chnode, int serviceid, unsigned long transponderid); |
---|
419 | |
---|
420 | //zap.h |
---|
421 | void zapup(); |
---|
422 | void zapdown(); |
---|
423 | |
---|
424 | //epg.h |
---|
425 | void screensingleepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
426 | void screenepg(struct channel* chnode, struct epg* epgnode, int flag); |
---|
427 | int writeepg(const char* filename); |
---|
428 | void freeepg(struct channel* chnode); |
---|
429 | struct epg* getepgakt(struct channel* chnode); |
---|
430 | struct epg* getepgbytime(struct channel* chnode, time_t akttime); |
---|
431 | char* epgdescunzip(struct epg* epgnode); |
---|
432 | |
---|
433 | //standby.h |
---|
434 | void screenstandby(); |
---|
435 | |
---|
436 | //channelcache.h |
---|
437 | void delchannelcache(int serviceid, unsigned long transponderid); |
---|
438 | struct channelcache* modifychannelcache(int serviceid, unsigned long transponderid, struct channel*); |
---|
439 | struct channel* getchannel(int serviceid, unsigned long transponderid); |
---|
440 | |
---|
441 | // vfd.h |
---|
442 | int setvfdicon(vfdicons id, int onoff); |
---|
443 | int writevfd(char *value); |
---|
444 | |
---|
445 | #endif |
---|