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