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