Changeset 23206
- Timestamp:
- 09/02/13 09:46:47 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/about.h
r23095 r23206 4 4 int screenabout(void) 5 5 { 6 STARTFUNC7 6 char *text = NULL, *tmpstr = NULL; 8 7 struct dvbdev* dvbnode = dvbdev; -
titan/titan/adjust.h
r23095 r23206 4 4 void screenadjust() 5 5 { 6 STARTFUNC7 6 int rcret = 0; 8 7 char* tmpstr = NULL; -
titan/titan/audiodev.h
r23129 r23206 4 4 struct dvbdev* audioopen(int adapter) 5 5 { 6 STARTFUNC7 6 int fd = -1; 8 7 struct dvbdev* node = dvbdev; … … 34 33 int audioopendirect(char *audiodev) 35 34 { 36 STARTFUNC37 35 int fd = -1; 38 36 … … 48 46 void audioclose(struct dvbdev* node, int fd) 49 47 { 50 STARTFUNC51 48 if(node != NULL) 52 49 { … … 60 57 int audiostop(struct dvbdev* node) 61 58 { 62 STARTFUNC63 59 if(node == NULL) 64 60 { … … 79 75 int audioplay(struct dvbdev* node) 80 76 { 81 STARTFUNC82 77 if(node == NULL) 83 78 { … … 98 93 int audiopause(struct dvbdev* node) 99 94 { 100 STARTFUNC101 95 if(node == NULL) 102 96 { … … 117 111 int audiogetpts(struct dvbdev* node, uint64_t* pts) 118 112 { 119 STARTFUNC120 113 if(node == NULL) 121 114 { … … 136 129 int audioselectsource(struct dvbdev* node, audio_stream_source_t source) 137 130 { 138 STARTFUNC139 131 if(node == NULL) 140 132 { … … 155 147 int audiosetmute(struct dvbdev* node, int state) 156 148 { 157 STARTFUNC158 149 if(node == NULL) 159 150 { … … 173 164 int audiosetavsync(struct dvbdev* node, int state) 174 165 { 175 STARTFUNC176 166 if(node == NULL) 177 167 { … … 191 181 192 182 int audiosetbypassmode(struct dvbdev* node, int mode) 193 { 194 STARTFUNC 183 { 195 184 if(node == NULL) 196 185 { … … 226 215 int audiochannelselect(struct dvbdev* node, audio_channel_select_t channel) 227 216 { 228 STARTFUNC229 217 if(node == NULL) 230 218 { … … 245 233 int audioclearbuffer(struct dvbdev* node) 246 234 { 247 STARTFUNC248 235 if(node == NULL) 249 236 { … … 263 250 int audiosetid(struct dvbdev* node, int id) 264 251 { 265 STARTFUNC266 252 if(node == NULL) 267 253 { … … 282 268 int audiosetstreamtype(struct dvbdev* node, int type) 283 269 { 284 STARTFUNC285 270 if(node == NULL) 286 271 { … … 301 286 int audiogetdev() 302 287 { 303 STARTFUNC304 288 int i, y, fd = -1, count = 0; 305 289 char *buf = NULL, *audiodev = NULL; -
titan/titan/audiotrack.h
r23095 r23206 4 4 struct audiotrack* checkaudiotrack(struct channel* chnode, struct audiotrack* atrack) 5 5 { 6 STARTFUNC7 6 struct audiotrack* node = NULL; 8 7 … … 22 21 void screenaudiotrack() 23 22 { 24 STARTFUNC25 23 int rcret = 0, treffer = 0; 26 24 struct skin* audiotrack = getscreen("audiotrack"); … … 97 95 struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last) 98 96 { 99 STARTFUNC100 97 struct audiotrack *newnode = NULL, *prev = NULL, *node = NULL; 101 98 char *tmpstr = NULL; … … 161 158 void freeaudiotrack(struct channel* chnode) 162 159 { 163 STARTFUNC164 160 struct audiotrack *node = NULL, *prev = NULL; 165 161 -
titan/titan/autores.h
r23095 r23206 4 4 void screenautores(char* text, int timeout, int flag) 5 5 { 6 STARTFUNC7 6 int rcret = -1, fromthread = 0; 8 7 struct skin* autores = getscreen("autores"); … … 61 60 void autoresthreadfunc(struct stimerthread* self, char* text, int timeout) 62 61 { 63 STARTFUNC64 62 screenautores(text, timeout, 0); 65 63 } -
titan/titan/avsettings.h
r23095 r23206 6 6 void screenavsettings(int flag) 7 7 { 8 STARTFUNC9 8 int rcret = 0; 10 9 char* ret = NULL; -
titan/titan/bgdownload.h
r23095 r23206 6 6 void delbgdownload(int nr, int flag) 7 7 { 8 STARTFUNC9 8 if(nr >= MAXBGDOWNLOAD) return; 10 9 … … 51 50 void freebgdownload() 52 51 { 53 STARTFUNC54 52 int i = 0; 55 53 … … 62 60 void screenbgdownload(int flag) 63 61 { 64 STARTFUNC65 62 int rcret = -1, i = 0; 66 63 struct skin* screenbgdownload = getscreen("bgdownload"); … … 213 210 int startbgdownload(char* host, char* page, int port, char* filename, char* auth, int timeout, int flag) 214 211 { 215 STARTFUNC216 212 int i = 0; 217 213 struct download* dnode = NULL; -
titan/titan/blindscanadjust.h
r23095 r23206 4 4 void blindcalc() 5 5 { 6 STARTFUNC7 6 unsigned int blindmax = 0, cblindmax = 0, tblindmax = 0; 8 7 char* tmpstr = NULL; … … 30 29 void blindchangetunertype(struct skin* tunertype, struct skin* minfrequency, struct skin* maxfrequency, struct skin* stepfrequency, struct skin* minsignalrate, struct skin* maxsignalrate, struct skin* stepsignalrate, struct skin* usedefaultsr, struct skin* onlydvbs, struct skin* usedefaultfec, struct skin* cminfrequency, struct skin* cmaxfrequency, struct skin* cstepfrequency, struct skin* cminsignalrate, struct skin* cmaxsignalrate, struct skin* cstepsignalrate, struct skin* cusedefaultsr, struct skin* cusedefaultfec, struct skin* tminfrequency, struct skin* tmaxfrequency, struct skin* tstepfrequency) 31 30 { 32 STARTFUNC33 31 minfrequency->hidden = YES; 34 32 maxfrequency->hidden = YES; … … 86 84 87 85 void screenblindscanadjust() 88 { 89 STARTFUNC 86 { 90 87 int rcret = 0; 91 88 struct skin* blindscan = getscreen("blindscanadjust"); -
titan/titan/bouquets.h
r23095 r23206 3 3 4 4 void debugbouquet() 5 { 6 STARTFUNC 5 { 7 6 struct mainbouquet* mainbouquetnode = mainbouquet; 8 7 struct bouquet* bouquetnode = NULL; … … 23 22 struct bouquet* getlastbouquet(struct bouquet* node) 24 23 { 25 STARTFUNC26 24 struct bouquet *prev = NULL; 27 25 … … 37 35 struct bouquet* getprevbouquetbyservicetype(struct bouquet* first, struct bouquet* node) 38 36 { 39 STARTFUNC40 37 struct bouquet* prev = NULL; 41 38 … … 58 55 struct bouquet* getnextbouquetbyservicetype(struct bouquet* first, struct bouquet* node) 59 56 { 60 STARTFUNC61 57 struct bouquet* next = NULL; 62 58 … … 80 76 int movebouquetblockdown(struct bouquet* node) 81 77 { 82 STARTFUNC83 78 int i = 0, ret = 0; 84 79 struct bouquet* prev = NULL; … … 119 114 int movebouquetdown(struct bouquet* node) 120 115 { 121 STARTFUNC122 116 struct bouquet* prev = NULL, *next = NULL; 123 117 struct mainbouquet* mainbouquetnode = NULL; … … 173 167 int movebouquetblockup(struct bouquet* node) 174 168 { 175 STARTFUNC176 169 int i = 0, ret = 0; 177 170 struct bouquet* next = NULL; … … 204 197 int movebouquetup(struct bouquet* node) 205 198 { 206 STARTFUNC207 199 struct bouquet* prev = NULL, *next = NULL, *last = NULL; 208 200 struct mainbouquet* mainbouquetnode = NULL; … … 260 252 struct bouquet* getbouquetbychannel(struct bouquet* node, int serviceid, uint64_t transponderid) 261 253 { 262 STARTFUNC263 254 while(node != NULL) 264 255 { … … 272 263 struct bouquet* getbouquetbynr(int nr) 273 264 { 274 STARTFUNC275 265 struct mainbouquet* mainbouquetnode = mainbouquet; 276 266 struct bouquet* bouquetnode = NULL; … … 294 284 struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last) 295 285 { 296 STARTFUNC297 286 struct bouquet *newnode = NULL, *prev = NULL, *node = *firstnode; 298 287 int ret = 0; … … 365 354 void recalcbouquetnr() 366 355 { 367 STARTFUNC368 356 int i; 369 357 struct mainbouquet* node = mainbouquet; … … 391 379 int readbouquet(char* filename, struct bouquet** firstnode, int type) 392 380 { 393 STARTFUNC394 381 FILE *fd = NULL; 395 382 char *fileline = NULL; … … 438 425 void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode) 439 426 { 440 STARTFUNC441 427 struct bouquet *node = *firstnode, *prev = *firstnode; 442 428 … … 471 457 void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid) 472 458 { 473 STARTFUNC474 459 struct mainbouquet* node = mainbouquet; 475 460 struct bouquet* bouquetnode = NULL; … … 490 475 void delbouquetbychannel(int serviceid, uint64_t transponderid) 491 476 { 492 STARTFUNC493 477 struct mainbouquet* node = mainbouquet; 494 478 … … 505 489 void delunusedbouquetchannels(int flag) 506 490 { 507 STARTFUNC508 491 struct mainbouquet* mainbouquetnode = mainbouquet; 509 492 struct bouquet *node = NULL, *prev = NULL; … … 530 513 void freebouquet(struct bouquet** firstnode) 531 514 { 532 STARTFUNC533 515 struct bouquet *node = *firstnode, *prev = *firstnode; 534 516 … … 544 526 struct bouquet* sortbouquet(struct bouquet **nodeaddr) 545 527 { 546 STARTFUNC547 528 struct bouquet *nodea = NULL, *nodeb = NULL, *nodec = NULL, *noded = NULL; 548 529 struct bouquet *nodetmp = NULL; … … 619 600 struct bouquet* sortbouquet(struct bouquet **nodeaddr) 620 601 { 621 STARTFUNC622 602 struct bouquet *tmpnode[10] = {0}; 623 603 struct bouquet *tnode = NULL; … … 703 683 int writebouquet(const char *filename, struct bouquet *node) 704 684 { 705 STARTFUNC706 685 FILE *fd = NULL; 707 686 int ret = 0; -
titan/titan/ca.h
r23095 r23206 5 5 void cawait(struct stimerthread* self, struct dvbdev* dvbnode, int tout) 6 6 { 7 STARTFUNC8 7 unsigned int i = 0; 9 8 ca_slot_info_t info; … … 31 30 void careseting(struct stimerthread* self, struct dvbdev* dvbnode, int flag) 32 31 { 33 STARTFUNC34 32 if(dvbnode != NULL) 35 33 { … … 61 59 int caread(struct dvbdev* dvbnode, unsigned char* buf, int* len) 62 60 { 63 STARTFUNC64 61 int ret = 0, c = 0; 65 62 struct pollfd fds; … … 128 125 int cawrite(struct dvbdev* dvbnode, int fd, unsigned char* buf, int count, int flag, int tout) 129 126 { 130 STARTFUNC131 127 int ret = 0; 132 128 … … 154 150 int casend(struct dvbdev* dvbnode, unsigned char* buf, int len) 155 151 { 156 STARTFUNC157 152 unsigned char *tmpbuf = NULL; 158 153 int flag = 0; … … 211 206 void sendSPDU(struct dvbdev* dvbnode, unsigned char tag, void *data, int len, int sessionnr, void *apdu, int alen) 212 207 { 213 STARTFUNC214 208 unsigned char* buf = NULL; 215 209 unsigned char *tmpbuf = NULL; … … 243 237 void sendAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 244 238 { 245 STARTFUNC246 239 debug(620, "send APDU, nr %d", sessionnr); 247 240 … … 258 251 int parselenfield(unsigned char *buf, int* len) 259 252 { 260 STARTFUNC261 253 int i; 262 254 … … 280 272 int asn1decode(uint16_t* lenret, unsigned char* asn1array, uint32_t asn1arraylen) 281 273 { 282 STARTFUNC283 274 uint8_t len; 284 275 … … 312 303 int cammistop(struct dvbdev* dvbnode, int sessionnr) 313 304 { 314 STARTFUNC315 305 debug(620, "cammistop"); 316 306 … … 324 314 int cammianswer(struct dvbdev* dvbnode, int sessionnr, int answer) 325 315 { 326 STARTFUNC327 316 debug(620, "cammianswer: %d", answer); 328 317 … … 337 326 int cammianswerenq(struct dvbdev* dvbnode, int sessionnr, char *answer, int len) 338 327 { 339 STARTFUNC340 328 debug(620, "cammianswerenq (%d): %s", len, answer); 341 329 … … 352 340 int cammicancelenq(struct dvbdev* dvbnode, int sessionnr) 353 341 { 354 STARTFUNC355 342 debug(620, "cammicancelenq"); 356 343 … … 364 351 int cammiaction(struct dvbdev* dvbnode, int sessionnr) 365 352 { 366 STARTFUNC367 353 struct casession* casession = NULL; 368 354 … … 409 395 int cammiAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 410 396 { 411 STARTFUNC412 397 char* tmpstr = NULL, *tmpstr1 = NULL; 413 398 struct casession* casession = NULL; … … 634 619 int cacaaction(struct dvbdev* dvbnode, int sessionnr) 635 620 { 636 STARTFUNC637 621 struct casession* casession = NULL; 638 622 … … 661 645 int cacaAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 662 646 { 663 STARTFUNC664 647 int i = 0; 665 648 struct casession* casession = NULL; … … 732 715 int cadatetimeaction(struct dvbdev* dvbnode, int sessionnr) 733 716 { 734 STARTFUNC735 717 struct casession* casession = NULL; 736 718 … … 762 744 int cadatetimeAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 763 745 { 764 STARTFUNC765 746 struct casession* casession = NULL; 766 747 … … 800 781 int caresaction(struct dvbdev* dvbnode, int sessionnr) 801 782 { 802 STARTFUNC803 783 struct casession* casession = NULL; 804 784 … … 860 840 int caresAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 861 841 { 862 STARTFUNC863 842 struct casession* casession = NULL; 864 843 … … 918 897 void caappmenu(struct dvbdev* dvbnode) 919 898 { 920 STARTFUNC921 899 //must be send to the app session 922 900 debug(620, "caappmenu"); … … 931 909 int caappaction(struct dvbdev* dvbnode, int sessionnr) 932 910 { 933 STARTFUNC934 911 struct casession* casession = NULL; 935 912 … … 962 939 int caappAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len) 963 940 { 964 STARTFUNC965 941 if(dvbnode == NULL || dvbnode->caslot == NULL) return 0; 966 942 … … 1031 1007 int getfreecasession(struct dvbdev* dvbnode, int type, int value) 1032 1008 { 1033 STARTFUNC1034 1009 int i; 1035 1010 … … 1070 1045 void casessiondel(struct dvbdev* dvbnode, int sessionnr) 1071 1046 { 1072 STARTFUNC1073 1047 if(dvbnode != NULL && dvbnode->caslot != NULL) 1074 1048 { … … 1083 1057 void casessionfree(struct dvbdev* dvbnode) 1084 1058 { 1085 STARTFUNC1086 1059 int i = 0; 1087 1060 … … 1092 1065 int casessionpoll(struct dvbdev* dvbnode) 1093 1066 { 1094 STARTFUNC1095 1067 int sessionnr = 0; 1096 1068 struct casession* casession = NULL; … … 1131 1103 struct casession* casessioncreate(struct dvbdev* dvbnode, unsigned char* resid, unsigned char status, unsigned long newtag) 1132 1104 { 1133 STARTFUNC1134 1105 unsigned long tag = 0; 1135 1106 int sessionnr = 0; … … 1218 1189 void casessionreceive(struct dvbdev* dvbnode, unsigned char *buf, size_t len) 1219 1190 { 1220 STARTFUNC1221 1191 unsigned char *pkt = buf; 1222 1192 unsigned char tag = *pkt++; … … 1366 1336 int cacreatetc(struct dvbdev* dvbnode) 1367 1337 { 1368 STARTFUNC1369 1338 int ret = 0; 1370 1339 unsigned char* buf = NULL; … … 1394 1363 void caslotfree(struct dvbdev* dvbnode) 1395 1364 { 1396 STARTFUNC1397 1365 if(dvbnode != NULL && dvbnode->caslot != NULL) 1398 1366 { … … 1410 1378 void processtpdu(struct dvbdev* dvbnode, unsigned char tpdutag, unsigned char* buf, int asnlen) 1411 1379 { 1412 STARTFUNC1413 1380 struct caslot* canode = NULL; 1414 1381 … … 1526 1493 void cacheck(struct stimerthread* self, struct dvbdev* dvbnode) 1527 1494 { 1528 STARTFUNC1529 1495 int ret = 0, len = MINMALLOC; 1530 1496 ca_slot_info_t info; … … 1714 1680 void cathread(struct stimerthread* self, struct dvbdev* dvbnode) 1715 1681 { 1716 STARTFUNC1717 1682 if(dvbnode == NULL || dvbnode->caslot == NULL) return; 1718 1683 debug(620, "CA thread start (slot %d)", dvbnode->devnr); … … 1732 1697 void castart() 1733 1698 { 1734 STARTFUNC1735 1699 struct dvbdev* dvbnode = dvbdev; 1736 1700 … … 1760 1724 int sendcapmttocam(struct dvbdev* dvbnode, struct service* node, unsigned char* buf, int len, int caservicenr, int cmdpos, int clear) 1761 1725 { 1762 STARTFUNC1763 1726 int i = 0; 1764 1727 char* tmpstr = NULL, *blacklist = NULL; -
titan/titan/cadev.h
r23095 r23206 4 4 struct dvbdev* caopen(int adapter) 5 5 { 6 STARTFUNC7 6 int fd = -1; 8 7 struct dvbdev* node = dvbdev; … … 34 33 int caopendirect(char *cadev) 35 34 { 36 STARTFUNC37 35 int fd = -1; 38 36 … … 48 46 void caclose(struct dvbdev* node, int fd) 49 47 { 50 STARTFUNC51 48 if(node != NULL) 52 49 { … … 60 57 int cagetcaps(struct dvbdev* node, struct ca_caps* caps) 61 58 { 62 STARTFUNC63 59 if(node == NULL) 64 60 { … … 84 80 int cagetmsg(struct dvbdev* node, struct ca_msg *msg) 85 81 { 86 STARTFUNC87 82 if(node == NULL) 88 83 { … … 103 98 int casendmsg(struct dvbdev* node, struct ca_msg *msg) 104 99 { 105 STARTFUNC106 100 if(node == NULL) 107 101 { … … 122 116 int cagetdesc(struct dvbdev* node, struct ca_descr *descr) 123 117 { 124 STARTFUNC125 118 if(node == NULL) 126 119 { … … 141 134 int casetdesc(struct dvbdev* node, struct ca_descr *descr) 142 135 { 143 STARTFUNC144 136 if(node == NULL) 145 137 { … … 160 152 int casetpid(struct dvbdev* node, struct ca_pid *pid) 161 153 { 162 STARTFUNC163 154 if(node == NULL) 164 155 { … … 179 170 int careset(struct dvbdev* node, int slot) 180 171 { 181 STARTFUNC182 172 if(node == NULL) 183 173 { … … 198 188 int cagetslotinfo(struct dvbdev* node, ca_slot_info_t* info) 199 189 { 200 STARTFUNC201 190 if(node == NULL) 202 191 { … … 223 212 void cainit(int fd) 224 213 { 225 STARTFUNC226 214 ca_descr_t cadescr; 227 215 unsigned char buf[8]; … … 244 232 int cagetdev() 245 233 { 246 STARTFUNC247 234 int i, y, fd = -1, count = 0; 248 235 char *buf = NULL, *cadev = NULL; -
titan/titan/cam.h
r23095 r23206 4 4 void debugcaservice() 5 5 { 6 STARTFUNC7 6 int i = 0; 8 7 … … 24 23 int getcaservicebyslot(struct caslot* caslot, int flag) 25 24 { 26 STARTFUNC27 25 int i = 0; 28 26 … … 49 47 int caserviceadd(struct service* snode, int flag) 50 48 { 51 STARTFUNC52 49 int i = 0, first = -1; 53 50 … … 90 87 void caservicedel(struct service* snode, struct caslot* caslot) 91 88 { 92 STARTFUNC93 89 int i = 0; 94 90 … … 131 127 void freecaservice() 132 128 { 133 STARTFUNC134 129 int i = 0; 135 130 … … 153 148 void dvbwritepmt(struct service* node, unsigned char* pmtbuf) 154 149 { 155 STARTFUNC156 150 int length; 157 151 FILE *fd; … … 195 189 void sendcapmttosock(struct service* node, unsigned char* buf, int pos, int caservicenr) 196 190 { 197 STARTFUNC198 191 int ret = 0, i = 0; 199 192 … … 219 212 int createcapmt(struct dvbdev* dvbnode, struct service* node, unsigned char* buf, int* lenbytes, int flag) 220 213 { 221 STARTFUNC222 214 if(buf == NULL || node == NULL || node->channel == NULL) return -1; 223 215 if(node->fedev == NULL || node->channel->pmt == NULL) return -1; … … 413 405 void sendcapmt(struct service* node, int clear, int flag) 414 406 { 415 STARTFUNC416 407 int len = 0, i = 0, caservicenr = 0, lenbytes = 0; 417 408 unsigned char* buf = NULL; … … 561 552 void checkcam() 562 553 { 563 STARTFUNC564 554 int i = 0; 565 555 … … 582 572 struct pmt* addpmt(struct channel* chnode, int programnumber, int versionnumber, int currentnextindicator) 583 573 { 584 STARTFUNC585 574 struct pmt *newnode = NULL; 586 575 … … 611 600 struct cadesc* addcadesc(struct channel* chnode, int pid, unsigned char* buf, struct cadesc* last) 612 601 { 613 STARTFUNC614 602 struct cadesc *newnode = NULL, *prev = NULL, *node = NULL; 615 603 … … 674 662 struct esinfo* addesinfo(struct channel* chnode, int streamtype, int pid, struct esinfo* last) 675 663 { 676 STARTFUNC677 664 struct esinfo *newnode = NULL, *prev = NULL, *node = NULL; 678 665 … … 723 710 void freepmt(struct channel* chnode) 724 711 { 725 STARTFUNC726 727 712 if(chnode == NULL || chnode->pmt == NULL) return; 728 713 … … 733 718 void freecadesc(struct channel* chnode) 734 719 { 735 STARTFUNC736 720 struct cadesc *node = NULL, *prev = NULL; 737 721 … … 758 742 void freeesinfo(struct channel* chnode) 759 743 { 760 STARTFUNC761 744 struct esinfo *node = NULL, *prev = NULL; 762 745 -
titan/titan/channel.h
r23095 r23206 4 4 void debugchannel() 5 5 { 6 STARTFUNC7 6 struct channel* node = channel; 8 7 … … 16 15 int channelnottunable(struct channel* node) 17 16 { 18 STARTFUNC19 17 if(node == NULL) return 1; 20 18 if(node->transponder == NULL) return 1; … … 42 40 struct channel* getlastchannel(struct channel* node, int flag) 43 41 { 44 STARTFUNC45 42 struct channel *prev = NULL; 46 43 … … 58 55 struct channel* gettmpchannel() 59 56 { 60 STARTFUNC61 62 57 m_lock(&status.channelmutex, 5); 63 58 struct channel *node = channel; … … 76 71 struct channel* getprevchannelbyservicetype(struct channel* node) 77 72 { 78 STARTFUNC79 73 struct channel* prev = NULL; 80 74 … … 97 91 struct channel* getnextchannelbyservicetype(struct channel* node) 98 92 { 99 STARTFUNC100 93 struct channel* next = NULL; 101 94 … … 119 112 int movechannelblockdown(struct channel* node) 120 113 { 121 STARTFUNC122 114 int i = 0, ret = 0; 123 115 struct channel* prev = NULL; … … 150 142 int movechanneldown(struct channel* node) 151 143 { 152 STARTFUNC153 144 struct channel* prev = NULL, *next = NULL; 154 145 … … 197 188 int movechannelblockup(struct channel* node) 198 189 { 199 STARTFUNC200 190 int i = 0, ret = 0; 201 191 struct channel* next = NULL; … … 220 210 int movechannelup(struct channel* node) 221 211 { 222 STARTFUNC223 212 struct channel* prev = NULL, *next = NULL, *last = NULL; 224 213 … … 269 258 struct channel* addchannel(char *line, int count, struct channel* last) 270 259 { 271 STARTFUNC272 260 struct channel *newnode = NULL, *prev = NULL, *node = NULL; 273 261 char *name = NULL; … … 351 339 struct channel* createchannel(char* name, uint64_t transponderid, int providerid, int serviceid, int servicetype, int flag, int videocodec, int audiocodec, int videopid, int audiopid, int protect) 352 340 { 353 STARTFUNC354 341 struct channel* chnode = NULL; 355 342 char* tmpstr = NULL; … … 385 372 int readchannel(const char* filename) 386 373 { 387 STARTFUNC388 374 FILE *fd = NULL; 389 375 char *fileline = NULL; … … 434 420 int delchannel(int serviceid, uint64_t transponderid, int flag) 435 421 { 436 STARTFUNC437 422 int ret = 1; 438 423 struct provider* providernode = NULL; … … 524 509 void delchannelbytransponder(uint64_t transponderid) 525 510 { 526 STARTFUNC527 511 struct channel *node = channel, *prev = channel; 528 512 … … 540 524 void freechannel(int flag) 541 525 { 542 STARTFUNC543 526 struct channel *node = channel, *prev = channel; 544 527 … … 555 538 struct channel* sortchannel() 556 539 { 557 STARTFUNC558 540 struct channel *node = channel; 559 541 struct channel *nodea = NULL, *nodeb = NULL, *nodec = NULL, *noded = NULL; … … 624 606 struct channel* sortchannel() 625 607 { 626 STARTFUNC627 608 struct channel* tmpnode[10] = {0}; 628 609 struct channel* node = channel, *tnode = NULL; … … 703 684 int writechannel(const char *filename) 704 685 { 705 STARTFUNC706 686 FILE *fd = NULL; 707 687 struct channel *node = NULL; -
titan/titan/channelbynr.h
r23095 r23206 4 4 void setchannelkeycode(struct skin* channelbynr, char* value) 5 5 { 6 STARTFUNC7 6 char* tmpstr = NULL; 8 7 … … 15 14 void screenchannelbynr(int rcret) 16 15 { 17 STARTFUNC18 16 struct skin* channelbynr = getscreen("channelbynr"); 19 17 struct bouquet* bouquetnode = NULL; -
titan/titan/channelcache.h
r23095 r23206 4 4 void debugchannelcache() 5 5 { 6 STARTFUNC7 6 int i, count = 0, maxcount = 0;; 8 7 struct channelcache* node = NULL; … … 25 24 struct channel* getchannel(int serviceid, uint64_t transponderid) 26 25 { 27 STARTFUNC28 26 unsigned int hash; 29 27 struct channelcache* node = NULL; … … 52 50 struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel* chnode) 53 51 { 54 STARTFUNC55 52 unsigned int hash; 56 53 struct channelcache* node = NULL, *newnode = NULL; … … 79 76 void delchannelcache(int serviceid, uint64_t transponderid) 80 77 { 81 STARTFUNC82 78 unsigned int hash; 83 79 struct channelcache *node = NULL, *prev = NULL; -
titan/titan/channelhistroy.h
r23095 r23206 4 4 void freechannelhistory() 5 5 { 6 STARTFUNC7 6 int i = 0; 8 7 … … 17 16 void delchannelhistory(struct channel* chnode) 18 17 { 19 STARTFUNC20 18 int i = 0; 21 19 if(chnode == NULL) return; … … 34 32 void addchannelhistory(struct channel* chnode, char* channellist) 35 33 { 36 STARTFUNC37 34 int i = 0; 38 35 struct channel* tmpchannel = NULL; … … 68 65 void screenchannelhistory() 69 66 { 70 STARTFUNC71 67 int rcret = -1, i = 0; 72 68 struct skin* chistory = getscreen("channelhistory"); -
titan/titan/channellist.h
r23095 r23206 4 4 int selectchannel(struct skin* listbox, int sid, uint64_t tid) 5 5 { 6 STARTFUNC7 6 struct skin* node = listbox; 8 7 struct channel* chnode = NULL; … … 51 50 void changechannelepg(struct channel* chnode, struct skin* node) 52 51 { 53 STARTFUNC54 52 struct epg* epgnode = NULL; 55 53 char* tmpstr = NULL; … … 67 65 void showallchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, int mode) 68 66 { 69 STARTFUNC70 67 struct skin* chnode = NULL; 71 68 struct channel* tmpchannel = channel; … … 118 115 void showbouquetchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct bouquet* firstbouquet, struct mainbouquet* mbouquet, int mode) 119 116 { 120 STARTFUNC121 117 struct skin* chnode = NULL; 122 118 struct bouquet* tmpbouquet = firstbouquet; … … 187 183 void showproviderchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct provider* providernode, int mode) 188 184 { 189 STARTFUNC190 185 struct skin* chnode = NULL; 191 186 struct channel* tmpchannel = channel; … … 241 236 void showprovider(struct skin* channellist, struct skin* listbox) 242 237 { 243 STARTFUNC244 238 struct provider *node = provider; 245 239 struct skin* providernode = NULL; … … 261 255 void showsatchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct sat* satnode, int mode) 262 256 { 263 STARTFUNC264 257 struct skin* chnode = NULL; 265 258 struct channel* tmpchannel = channel; … … 318 311 void showsat(struct skin* channellist, struct skin* listbox) 319 312 { 320 STARTFUNC321 313 int i = 0, treffer = 0; 322 314 struct sat *node = sat; … … 371 363 void showazchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, int character, int mode) 372 364 { 373 STARTFUNC374 365 struct skin* chnode = NULL; 375 366 struct channel* tmpchannel = channel; … … 425 416 void showaz(struct skin* channellist, struct skin* listbox) 426 417 { 427 STARTFUNC428 418 struct skin* node = NULL; 429 419 int i; … … 454 444 void showmainbouquet(struct skin* channellist, struct skin* listbox) 455 445 { 456 STARTFUNC457 446 struct mainbouquet *node = mainbouquet; 458 447 struct skin* bouquetnode = NULL; … … 477 466 void drawchannellist(struct skin* channellist, int list, struct skin* listbox) 478 467 { 479 STARTFUNC480 468 status.markedchannel = NULL; 481 469 if(list == ALLCHANNEL || list == SATCHANNEL || list == PROVIDERCHANNEL || list == AZCHANNEL || list == BOUQUETCHANNEL) … … 492 480 void recalclist(int list, void* aktlist, int listmode, struct skin* channellist, struct skin* listbox, struct skin* channeltimeline) 493 481 { 494 STARTFUNC495 482 if(list == ALLCHANNEL) 496 483 showallchannel(channellist, listbox, channeltimeline, listmode); … … 513 500 void changebutton(int listmode, struct skin* b1, struct skin* b2, struct skin* b3, struct skin* b4, struct skin* b5, struct skin* b6, struct skin* b7, struct skin* b8, struct skin* b9, struct skin* b10, struct skin* b11, struct skin* b12, struct skin* b13, struct skin* b14, struct skin* b15, int flag) 514 501 { 515 STARTFUNC516 502 if(listmode == NOMODE) 517 503 { … … 581 567 void changechanneltitle(struct skin* channellist, struct skin* listbox, int listmode, char** oldtitle, long* oldfontcol, long* oldbgcol) 582 568 { 583 STARTFUNC584 569 struct skin* titletext = getscreennode(channellist, "titletext"); 585 570 char* tmpstr = NULL; … … 645 630 void addscreenrcchannellist(struct skin* channellist, struct skin* listbox) 646 631 { 647 STARTFUNC648 632 addscreenrc(channellist, listbox); 649 633 … … 658 642 int screenchannellist(struct channel** retchannel, char** retchannellist, int flag) 659 643 { 660 STARTFUNC661 644 struct skin* channellist = getscreen("channellist"); 662 645 struct skin* titletext = getscreennode(channellist, "titletext"); -
titan/titan/channelslot.h
r23095 r23206 4 4 struct channelslot* addchannelslot(char *line, int count, struct channelslot* last) 5 5 { 6 STARTFUNC7 6 struct channelslot *newnode = NULL, *prev = NULL, *node = channelslot; 8 7 int ret = 0; … … 58 57 struct channelslot* getchannelslot(int serviceid, uint64_t transponderid) 59 58 { 60 STARTFUNC61 59 struct channelslot *node = channelslot; 62 60 … … 73 71 int readchannelslot(char* filename) 74 72 { 75 STARTFUNC76 73 FILE *fd = NULL; 77 74 char* fileline = NULL; … … 120 117 int delchannelslot(int serviceid, uint64_t transponderid) 121 118 { 122 STARTFUNC123 119 int ret = 1; 124 120 struct channelslot *node = channelslot, *prev = channelslot; … … 148 144 void freechannelslot() 149 145 { 150 STARTFUNC151 146 struct channelslot *node = channelslot, *prev = channelslot; 152 147 … … 162 157 int writechannelslot(char *filename) 163 158 { 164 STARTFUNC165 159 FILE *fd = NULL; 166 160 struct channelslot *node = channelslot; -
titan/titan/choicebox.h
r23128 r23206 4 4 int addchoicebox(struct skin* choicebox, char* value, char* text) 5 5 { 6 STARTFUNC7 6 char* tmp = NULL; 8 7 … … 71 70 int setchoiceboxselection(struct skin* choicebox, char* value) 72 71 { 73 STARTFUNC74 72 int treffer = 0; 75 73 char* pos = NULL, *epos = NULL, *end = NULL; -
titan/titan/cidev.h
r23095 r23206 4 4 struct dvbdev* ciopen(struct dvbdev* node) 5 5 { 6 STARTFUNC7 6 int fd = -1; 8 7 … … 26 25 int ciopendirect(char *cidev) 27 26 { 28 STARTFUNC29 27 int fd = -1; 30 28 … … 40 38 void ciclose(struct dvbdev* node, int fd) 41 39 { 42 STARTFUNC43 40 if(node != NULL) 44 41 { … … 52 49 int cigetdev() 53 50 { 54 STARTFUNC55 51 int i, y, fd = -1, count = 0; 56 52 char *buf = NULL, *cidev = NULL; -
titan/titan/colorpicker.h
r23095 r23206 4 4 char* screencolorpicker(char* color, int screencalc, int filelistview, int flag) 5 5 { 6 STARTFUNC7 6 int rcret = 0; 8 7 long col = 0; -
titan/titan/config.h
r23095 r23206 4 4 struct clist* addconfigtmp(char *key, char *value) 5 5 { 6 STARTFUNC7 6 return addlisttmp(config, key, value); 8 7 } … … 10 9 struct clist* addconfigdef(char *key, char *value) 11 10 { 12 STARTFUNC13 11 return addlistdef(config, key, value); 14 12 } … … 16 14 struct clist* addconfig(char *key, char *value) 17 15 { 18 STARTFUNC19 16 struct clist* node = NULL; 20 17 … … 28 25 struct clist* addconfigscreentmp(char *key, struct skin *node) 29 26 { 30 STARTFUNC31 27 struct clist* ret = NULL; 32 28 … … 44 40 struct clist* addconfigscreentmpcheck(char *key, struct skin *node, char* check) 45 41 { 46 STARTFUNC47 42 if(ostrcmp(node->ret, check) == 0) 48 43 return addconfigtmp(key, ""); … … 53 48 struct clist* addconfigscreen(char *key, struct skin *node) 54 49 { 55 STARTFUNC56 50 struct clist* ret = NULL; 57 51 … … 69 63 struct clist* addconfigscreencheck(char *key, struct skin *node, char* check) 70 64 { 71 STARTFUNC72 65 if(ostrcmp(node->ret, check) == 0) 73 66 delconfig(key); … … 80 73 struct clist* addconfiginttmp(char *key, int value) 81 74 { 82 STARTFUNC83 75 char* fileline = NULL; 84 76 struct clist* ret = NULL; … … 93 85 struct clist* addconfigllutmp(char *key, uint64_t value) 94 86 { 95 STARTFUNC96 87 char* fileline = NULL; 97 88 struct clist* ret = NULL; … … 106 97 struct clist* addconfiglutmp(char *key, unsigned long value) 107 98 { 108 STARTFUNC109 99 char* fileline = NULL; 110 100 struct clist* ret = NULL; … … 119 109 struct clist* addconfigint(char *key, int value) 120 110 { 121 STARTFUNC122 111 char* fileline = NULL; 123 112 struct clist* ret = NULL; … … 132 121 struct clist* addconfigllu(char *key, uint64_t value) 133 122 { 134 STARTFUNC135 123 char* fileline = NULL; 136 124 struct clist* ret = NULL; … … 145 133 struct clist* addconfiglu(char *key, unsigned long value) 146 134 { 147 STARTFUNC148 135 char* fileline = NULL; 149 136 struct clist* ret = NULL; … … 158 145 struct clist* addconfigintcheck(char *key, int value, int check) 159 146 { 160 STARTFUNC161 147 if(value == check) 162 148 delconfig(key); … … 169 155 int readconfig(const char *filename, struct clist** tmpconfig) 170 156 { 171 STARTFUNC172 157 FILE *fd = NULL; 173 158 char *fileline = NULL, *pos; … … 215 200 int writeconfigtmp() 216 201 { 217 STARTFUNC218 202 int ret = 0; 219 203 … … 226 210 int writeconfig(const char *filename) 227 211 { 228 STARTFUNC229 212 return writelist(config, filename); 230 213 } … … 232 215 char* getconfigbyval(char *value, char *ext) 233 216 { 234 STARTFUNC235 217 return getlistbyval(config, value, ext); 236 218 } … … 238 220 char* getconfignotmp(char *key, char *ext) 239 221 { 240 STARTFUNC241 222 return getlistnotmp(config, key, ext); 242 223 } … … 244 225 char* getconfig(char *key, char *ext) 245 226 { 246 STARTFUNC247 227 return getlist(config, key, ext); 248 228 } … … 250 230 int getconfigint(char *key, char *ext) 251 231 { 252 STARTFUNC253 232 char *ret = NULL; 254 233 … … 262 241 float getconfigfloat(char *key, char *ext) 263 242 { 264 STARTFUNC265 243 char *ret = NULL; 266 244 … … 274 252 uint64_t getconfigllu(char *key, char *ext) 275 253 { 276 STARTFUNC277 254 char *ret = NULL; 278 255 … … 286 263 unsigned long getconfiglu(char *key, char *ext) 287 264 { 288 STARTFUNC289 265 char *ret = NULL; 290 266 … … 298 274 void delconfigtmpall() 299 275 { 300 STARTFUNC301 276 dellisttmpall(config); 302 277 } … … 304 279 void delconfigtmp(char *key) 305 280 { 306 STARTFUNC307 281 dellisttmp(config, key); 308 282 } … … 310 284 void delconfig(char *key) 311 285 { 312 STARTFUNC313 286 status.writeconfig = 1; 314 287 dellist(config, key, 0); … … 317 290 void freeconfig() 318 291 { 319 STARTFUNC320 292 freelist(config); 321 293 } … … 323 295 int reloadconfig(char *filename) 324 296 { 325 STARTFUNC326 297 int ret = 0; 327 298 -
titan/titan/copyfile.h
r23095 r23206 4 4 int countfiles(char* dirname, int* count, int first) 5 5 { 6 STARTFUNC7 6 int ret = 0; 8 7 DIR *d; … … 88 87 int copyfilereal(char* from, char* to, struct copyfile* node, int flag) 89 88 { 90 STARTFUNC91 89 int fdfrom = -1, fdto = -1, ret = 0, readret = 0, writeret = 0; 92 90 off64_t count = 0, len = 0; … … 229 227 int copylink(char* from, char* to, struct copyfile* node, int flag) 230 228 { 231 STARTFUNC232 229 int ret = 0; 233 230 … … 282 279 int copyblk(char* from, char* to, struct copyfile* node, int flag) 283 280 { 284 STARTFUNC285 281 int ret = 0; 286 282 struct stat64 s; … … 325 321 int copychr(char* from, char* to, struct copyfile* node, int flag) 326 322 { 327 STARTFUNC328 323 int ret = 0; 329 324 struct stat64 s; … … 368 363 int copyfifo(char* from, char* to, struct copyfile* node, int flag) 369 364 { 370 STARTFUNC371 365 int ret = 0; 372 366 … … 403 397 int copydir(char* dirfrom, char* dirto, struct copyfile* node, int first, int flag) 404 398 { 405 STARTFUNC406 399 DIR *d; 407 400 char* tmpstr = NULL, *tmpstr1 = NULL; … … 661 654 int copyfile(char* from, char* to, struct copyfile* node, int flag) 662 655 { 663 STARTFUNC664 656 char* tmpto = NULL, *tmpstr = NULL, *bname = NULL; 665 657 int ret = 1, fromtype = 0, totype = 0; … … 726 718 void copyfilestruct(struct stimerthread* timernode, struct copyfile* node, int flag) 727 719 { 728 STARTFUNC729 720 if(node != NULL) 730 721 copyfile(node->from, node->to, node, 0); … … 733 724 void movefilestruct(struct stimerthread* timernode, struct copyfile* node, int flag) 734 725 { 735 STARTFUNC736 726 if(node != NULL) 737 727 copyfile(node->from, node->to, node, 1); … … 742 732 int screencopy(char* title, char* from, char* to, int flag) 743 733 { 744 STARTFUNC745 734 int rcret = -1, count = 0, ret = 0, fromthread = 0, sleeptime = 2; 746 735 struct skin* copyfile = getscreen("copyfile"); -
titan/titan/crc32.h
r23095 r23206 55 55 uint32_t dvbcrc32(const uint8_t *data, size_t len) 56 56 { 57 STARTFUNC58 57 int i; 59 58 uint32_t crc = 0xffffffff; -
titan/titan/defaults.h
r23097 r23206 4 4 void setdefaults() 5 5 { 6 STARTFUNC7 6 int i = 0; 8 7 char* tmpstr = NULL; -
titan/titan/dir.h
r23097 r23206 4 4 void readlabelext(struct skin* label, char* filename, char* ext) 5 5 { 6 STARTFUNC7 6 char *tmpstr = NULL, *tmpstr1 = NULL; 8 7 … … 27 26 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) 28 27 { 29 STARTFUNC30 28 int rcret = 0; 31 29 struct skin* dir = NULL; -
titan/titan/dirsort.h
r23097 r23206 4 4 int screendirsort() 5 5 { 6 STARTFUNC7 6 int tmpsort = 0; 8 7 int rcret = 0; -
titan/titan/diseqcconfig.h
r23097 r23206 4 4 int changeuncommittedcmd(struct skin* cmdorder, char* type) 5 5 { 6 STARTFUNC7 6 if(type == NULL || ostrcmp(type, "0") == 0) 8 7 { … … 28 27 void changediseqcmode(struct skin* committedcmd, struct skin* cmdorder, struct skin* uncommittedcmd, struct skin* rotorpos, struct skin* diseqcrepeat, char *type) 29 28 { 30 STARTFUNC31 29 committedcmd->hidden = YES; 32 30 cmdorder->hidden = YES; … … 50 48 void changediseqc(struct skin* diseqcmode, struct skin* toneburst, struct skin* committedcmd, struct skin* cmdorder, struct skin* uncommittedcmd, struct skin* diseqcrepeat, struct skin* rotorpos, char* feshortname, char *diseqcnr) 51 49 { 52 STARTFUNC53 50 char* tmpstr = NULL, *tmpnr = NULL; 54 51 int i = 0; … … 106 103 void screendiseqc(char* feshortname, char* diseqcnr) 107 104 { 108 STARTFUNC109 105 int rcret = 0; 110 106 struct skin* diseqcscreen = getscreen("diseqcscreen"); … … 237 233 void screenownpos() 238 234 { 239 STARTFUNC240 235 int rcret = 0; 241 236 struct skin* ownpos = getscreen("ownpos"); -
titan/titan/dmxdev.h
r23129 r23206 14 14 struct dvbdev* dmxgetlast(int adapter) 15 15 { 16 STARTFUNC17 16 struct dvbdev* node = dvbdev; 18 17 struct dvbdev* lastnode = NULL; … … 30 29 struct dvbdev* dmxopen(struct dvbdev* fenode) 31 30 { 32 STARTFUNC33 31 int fd = -1; 34 32 … … 66 64 int dmxopendirect(char *dmxdev) 67 65 { 68 STARTFUNC69 66 int fd = -1; 70 67 … … 82 79 void dmxclose(struct dvbdev* node, int fd) 83 80 { 84 STARTFUNC85 81 if(node != NULL) 86 82 { … … 94 90 int dmxstop(struct dvbdev* node) 95 91 { 96 STARTFUNC97 92 if(node == NULL) 98 93 { … … 112 107 int dmxstart(struct dvbdev* node) 113 108 { 114 STARTFUNC115 109 if(node == NULL) 116 110 { … … 130 124 int dmxsetbuffersize(struct dvbdev* node, unsigned long size) 131 125 { 132 STARTFUNC133 126 if(node == NULL) 134 127 { … … 152 145 int dmxsetfilter(struct dvbdev* node, int pid, int secnr, int flag) 153 146 { 154 STARTFUNC155 147 struct dmx_sct_filter_params sctflt; 156 148 … … 382 374 int dmxaddpid(struct dvbdev* node, int pid) 383 375 { 384 STARTFUNC385 376 if(node == NULL) 386 377 { … … 412 403 int dmxremovepid(struct dvbdev* node, int pid) 413 404 { 414 STARTFUNC415 405 if(node == NULL) 416 406 { … … 442 432 int dmxgetstc(struct dvbdev* node, int64_t* stc) 443 433 { 444 STARTFUNC445 434 struct dmx_stc dmxstc; 446 435 … … 469 458 int dmxsetsource(struct dvbdev* node, int source) 470 459 { 471 STARTFUNC472 460 if(node == NULL) 473 461 { … … 487 475 int dmxsetpesfilterfd(int fd, int pid, int input, int output, int pestype, int nostart) 488 476 { 489 STARTFUNC490 477 struct dmx_pes_filter_params pesflt; 491 478 memset(&pesflt, 0, sizeof(pesflt)); … … 519 506 int dmxsetpesfilter(struct dvbdev* node, int pid, int input, int output, int pestype, int nostart) 520 507 { 521 STARTFUNC522 508 if(node == NULL) 523 509 { … … 530 516 int dmxgetdev() 531 517 { 532 STARTFUNC533 518 int i, y, z, fd = -1, count = 0; 534 519 char *buf = NULL, *dmxdev = NULL; -
titan/titan/download.h
r23097 r23206 4 4 int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int timeout, int flag) 5 5 { 6 STARTFUNC7 6 int rcret = -1, count = 0, ret = 0, fromthread = 0, sleeptime = 2; 8 7 struct skin* download = getscreen("download"); -
titan/titan/dvb.h
r23102 r23206 4 4 int dvbwrite(int fd, unsigned char* buf, int count, int tout) 5 5 { 6 STARTFUNC7 6 struct timeval timeout; 8 7 int ret = 0, usec = 0, sec = 0, tmpcount = count; … … 56 55 int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag) 57 56 { 58 STARTFUNC59 57 struct timeval timeout; 60 58 int ret = 0, usec = 0, sec = 0; … … 123 121 int dvbread(struct dvbdev* node, unsigned char *buf, int pos, int count, int tout) 124 122 { 125 STARTFUNC126 123 if(node == NULL) return -2; 127 124 return dvbreadfd(node->fd, buf, pos, count, tout, 0); … … 130 127 int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize) 131 128 { 132 STARTFUNC133 129 off_t pos = 0; 134 130 int left = 5 * 1024 * 1024; … … 198 194 int dvbgetpmtpid(unsigned char *buf, int serviceid) 199 195 { 200 STARTFUNC201 196 if(buf == NULL) return 1; 202 197 … … 223 218 char* dvbgethbbtvurl(unsigned char* buf) 224 219 { 225 STARTFUNC226 220 //int seclen = 0; 227 221 int pos = 0; … … 313 307 unsigned char* dvbget(struct dvbdev* fenode, int pid, int type, int secnr, int timeout) 314 308 { 315 STARTFUNC316 309 int length = -1; 317 310 struct dvbdev* dmxnode = NULL; … … 358 351 unsigned char* dvbgetait(struct dvbdev* fenode, int pid, int secnr, int timeout) 359 352 { 360 STARTFUNC361 353 return dvbget(fenode, pid, 14, secnr, timeout); 362 354 } … … 364 356 unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout) 365 357 { 366 STARTFUNC367 358 return dvbget(fenode, 0x11, 11, secnr, timeout); 368 359 } … … 370 361 unsigned char* dvbgetpat(struct dvbdev* fenode, int timeout) 371 362 { 372 STARTFUNC373 363 return dvbget(fenode, 0, 1, 0, timeout); 374 364 } … … 376 366 unsigned char* dvbgetnit(struct dvbdev* fenode, int secnr, int timeout) 377 367 { 378 STARTFUNC379 368 return dvbget(fenode, 0x10, 4, secnr, timeout); 380 369 } … … 384 373 unsigned char* dvbgetpmt(struct dvbdev* fenode, unsigned char* patbuf, int serviceid, int16_t* pmtpid, int* pmtlen, int timeout, int flag) 385 374 { 386 STARTFUNC387 375 int length = -1, i; 388 376 struct dvbdev* dmxnode = NULL; … … 470 458 int dvbgetinfo(unsigned char* pmtbuf, struct channel* chnode) 471 459 { 472 STARTFUNC473 460 int i, sectionlength, programinfolength, esinfolength, ret = 0; 474 461 unsigned short pos, descriptortag, descriptorlength; … … 722 709 void dvbgetpmtthread() 723 710 { 724 STARTFUNC725 711 int len = 0, change = 0; 726 712 unsigned char* pmtbuf = NULL; … … 781 767 time_t dvbconvertdate(unsigned char *buf, int flag) 782 768 { 783 STARTFUNC784 769 int i = 0; 785 770 long mjd; … … 822 807 int dvbgetdate(time_t* time, int timeout) 823 808 { 824 STARTFUNC825 809 int length = -1, sectionlength; 826 810 struct dvbdev* dmxnode = NULL; … … 880 864 int getpts(int fd, off64_t offset, int spid, int left, unsigned long long *pts, off64_t *findpos, int dir, int tssize) 881 865 { 882 STARTFUNC883 866 int first = 1; 884 867 … … 1063 1046 unsigned long long fixuppts(unsigned long long start, unsigned long long end) 1064 1047 { 1065 STARTFUNC1066 1048 //pts can wrap to 0 in the middle 1067 1049 if(end < start) … … 1072 1054 unsigned long long gettsbitrate(unsigned long long start, unsigned long long end, off64_t startfindpos, off64_t endfindpos) 1073 1055 { 1074 STARTFUNC1075 1056 unsigned long long bitrate = 0; 1076 1057 unsigned long long diff = 0; … … 1088 1069 int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize) 1089 1070 { 1090 STARTFUNC1091 1071 int ret = 0; 1092 1072 unsigned long long start = 0, end = 0; … … 1119 1099 int getptspos(int fd, off64_t startfind, unsigned long long* pts, off64_t* findpos, int dir, int tssize) 1120 1100 { 1121 STARTFUNC1122 1101 int ret = 0; 1123 1102 unsigned long long pts1 = 0; … … 1136 1115 int findcodec(unsigned char* buf, int len, int tssize) 1137 1116 { 1138 STARTFUNC1139 1117 int i,i1; 1140 1118 int rc = 2; … … 1161 1139 int findframeHD(unsigned char* buf, int len, int start, int tssize, int flag) 1162 1140 { 1163 STARTFUNC1164 1141 int position = -1; 1165 1142 int i = 0; … … 1222 1199 //flag=2 -> ende Frame 1223 1200 int findframe(unsigned char* buf, int len, int start, int tssize, int flag) 1224 { 1225 STARTFUNC 1226 1201 { 1227 1202 //#define SEQ_START_CODE 0x000001b3 1228 1203 //#define GOP_START_CODE 0x000001b8 … … 1281 1256 int findandposrew(int fd, int tssize, int skip) 1282 1257 { 1283 STARTFUNC1284 1258 int i; 1285 1259 int ret = 0; -
titan/titan/dvbdev.h
r23097 r23206 6 6 struct dvbdev* adddvbdev(char *dev, int adapter, int devnr, int fd, int type, struct dvb_frontend_info* feinfo, struct dvbdev* last, int flag) 7 7 { 8 STARTFUNC9 8 struct dvbdev *newnode = NULL, *node = NULL; 10 9 char* tmp = NULL, *tmp1 = NULL; … … 99 98 void deldvbdev(char *dev, int flag) 100 99 { 101 STARTFUNC102 100 struct dvbdev *node = NULL, *prev = NULL; 103 101 … … 158 156 void freedvbdev(int flag) 159 157 { 160 STARTFUNC161 158 struct dvbdev *node = NULL, *prev = NULL; 162 159 -
titan/titan/dvdplayer.h
r23097 r23206 16 16 int dvd_calc_y_fbscreen() 17 17 { 18 STARTFUNC19 18 int y_offset = 0; 20 19 int dvd_aspect = 0; … … 50 49 int dvd_calc_x_fbscreen() 51 50 { 52 STARTFUNC53 51 int x_offset = 0; 54 52 int dvd_aspect = 0; … … 83 81 int dvdblit() 84 82 { 85 STARTFUNC86 83 #ifdef DVDPLAYER 87 84 int x_offset = dvd_calc_x_fbscreen(); … … 151 148 void dvdchangevideo() 152 149 { 153 STARTFUNC154 150 #ifdef DVDPLAYER 155 151 char* tmpstr = NULL; … … 188 184 void dvdcleanup() 189 185 { 190 STARTFUNC191 186 #ifdef DVDPLAYER 192 187 ddvdconfig = NULL; … … 205 200 void dvdthread() 206 201 { 207 STARTFUNC208 202 debug(333, "dvd thread start"); 209 203 … … 223 217 int dvdstart(char* filename) 224 218 { 225 STARTFUNC226 219 #ifdef DVDPLAYER 227 220 char* tmpstr = NULL; … … 296 289 int dvdmenuopen() 297 290 { 298 STARTFUNC299 291 #ifdef DVDPLAYER 300 292 return dvdmenu; … … 306 298 void dvdgotmessage() 307 299 { 308 STARTFUNC309 300 #ifdef DVDPLAYER 310 301 if(ddvdconfig == NULL) return; … … 467 458 int dvdisplaying() 468 459 { 469 STARTFUNC470 460 #ifdef DVDPLAYER 471 461 if(dvdtimerthread == NULL) … … 477 467 void dvdafterend() 478 468 { 479 STARTFUNC480 469 } 481 470 482 471 int dvdstop() 483 472 { 484 STARTFUNC485 473 #ifdef DVDPLAYER 486 474 debug(333, "dvd stop"); … … 503 491 int dvdgetnumaudiotracks() 504 492 { 505 STARTFUNC506 493 unsigned int i = 0; 507 494 … … 516 503 int dvdgetcuraudiotrack() 517 504 { 518 STARTFUNC519 505 int audioid = -1; 520 506 … … 532 518 int dvdchangeaudiotrack(unsigned int i) 533 519 { 534 STARTFUNC535 520 #ifdef DVDPLAYER 536 521 if(ddvdconfig != NULL) … … 543 528 char* dvdgetaudiotrackinfo(unsigned int audioid) 544 529 { 545 STARTFUNC546 530 char* tmpstr = NULL; 547 531 … … 583 567 int dvdgetnumsputracks() 584 568 { 585 STARTFUNC586 569 unsigned int i = 0; 587 570 … … 596 579 int dvdgetcursputrack() 597 580 { 598 STARTFUNC599 581 int spuid = -1; 600 582 … … 611 593 int dvdchangesputrack(unsigned int i) 612 594 { 613 STARTFUNC614 595 #ifdef DVDPLAYER 615 596 if(ddvdconfig != NULL) … … 622 603 char* dvdgetsputrackinfo(unsigned int spuid) 623 604 { 624 STARTFUNC625 605 char* tmpstr = NULL; 626 606 … … 641 621 int dvdgetangelinfo() 642 622 { 643 STARTFUNC644 623 #ifdef DVDPLAYER 645 624 int current = 0, num = 0; … … 655 634 int dvdff(int speed) 656 635 { 657 STARTFUNC658 636 #ifdef DVDPLAYER 659 637 if(ddvdconfig == NULL) return 1; … … 669 647 int dvdfr(int speed) 670 648 { 671 STARTFUNC672 649 #ifdef DVDPLAYER 673 650 if(ddvdconfig == NULL) return 1; … … 683 660 int dvdpause() 684 661 { 685 STARTFUNC686 662 debug(333, "dvd pause"); 687 663 … … 696 672 int dvdplay() 697 673 { 698 STARTFUNC699 674 debug(333, "dvd play"); 700 675 … … 709 684 int dvdcontinue() 710 685 { 711 STARTFUNC712 686 return dvdplay(); 713 687 } … … 715 689 int dvdgetinfo(int flag) 716 690 { 717 STARTFUNC718 691 #ifdef DVDPLAYER 719 692 if(ddvdconfig == NULL) return 1; … … 759 732 int dvdsetfb() 760 733 { 761 STARTFUNC762 734 #ifdef DVDPLAYER 763 735 int width = 720, height = 576, colbytes = 4; … … 780 752 unsigned long long dvdgetlength() 781 753 { 782 STARTFUNC783 754 unsigned long long len = 0; 784 755 … … 801 772 int dvdsetresume() 802 773 { 803 STARTFUNC804 774 #ifdef DVDPLAYER 805 775 if(ddvdconfig != NULL) … … 814 784 int dvdgetresume() 815 785 { 816 STARTFUNC817 786 #ifdef DVDPLAYER 818 787 if(ddvdconfig != NULL) … … 827 796 int dvdseek(int sec) 828 797 { 829 STARTFUNC830 798 #ifdef DVDPLAYER 831 799 if(ddvdconfig != NULL) … … 840 808 unsigned long long dvdgetpts() 841 809 { 842 STARTFUNC843 810 unsigned long long pts = 0; 844 811 … … 862 829 int dvdseektitle(int title) 863 830 { 864 STARTFUNC865 831 debug(333, "seek title %d", title); 866 832 … … 875 841 int dvdseekchapter(int chapter) 876 842 { 877 STARTFUNC878 843 debug(333, "seek chapter %d", chapter); 879 844 … … 888 853 int dvdkeypress(int key) 889 854 { 890 STARTFUNC891 855 #ifdef DVDPLAYER 892 856 if(ddvdconfig == NULL) return 1; -
titan/titan/dvrdev.h
r23097 r23206 4 4 struct dvbdev* dvropen(struct dvbdev* fenode) 5 5 { 6 STARTFUNC7 6 int fd = -1; 8 7 struct dvbdev* node = dvbdev; … … 37 36 int dvropendirect(char *dvrdev) 38 37 { 39 STARTFUNC40 38 int fd = -1; 41 39 … … 51 49 void dvrclose(struct dvbdev* node, int fd) 52 50 { 53 STARTFUNC54 51 if(node != NULL) 55 52 { … … 63 60 int dvrgetdev() 64 61 { 65 STARTFUNC66 62 int i, y, fd = -1, count = 0; 67 63 char *buf = NULL, *dvrdev = NULL;
Note: See TracChangeset
for help on using the changeset viewer.