Changeset 24223
- Timestamp:
- 10/12/13 11:13:07 (9 years ago)
- Location:
- titan/titan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/channellist.h
r23672 r24223 910 910 if(list == PROVIDERLIST) 911 911 { 912 if(provider2bouquet(((struct provider*)listbox->select->handle1)->providerid ) == 0)912 if(provider2bouquet(((struct provider*)listbox->select->handle1)->providerid, 0) == 0) 913 913 textbox(_("Message"), _("Copy providerlist successfull"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 914 914 else … … 917 917 else if(list == SATLIST) 918 918 { 919 if(sat2bouquet(((struct sat*)listbox->select->handle1)->orbitalpos ) == 0)919 if(sat2bouquet(((struct sat*)listbox->select->handle1)->orbitalpos, 0) == 0) 920 920 textbox(_("Message"), _("Copy satlist successfull"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 921 921 else -
titan/titan/provider.h
r23980 r24223 393 393 } 394 394 395 int provider2bouquet(int providerid) 396 { 395 //flag 0: add all provider 396 //flag 1: add only provider with channel 397 int provider2bouquet(int providerid, int flag) 398 { 399 int treffer = 0; 397 400 struct provider* pnode = NULL; 398 401 struct mainbouquet* mnode = NULL; … … 430 433 } 431 434 free(tmpstr); tmpstr = NULL; 432 free(path); path = NULL;433 435 434 436 if(mnode != NULL) … … 441 443 tmpstr = ostrcat(tmpstr, "#", 1, 0); 442 444 tmpstr = ostrcat(tmpstr, ollutoa(chnode->transponderid), 1, 1); 445 treffer = 1; 443 446 addbouquet(&mnode->bouquet, tmpstr, status.servicetype, 1, NULL); 444 447 free(tmpstr); tmpstr = NULL; … … 447 450 } 448 451 } 449 452 453 if(treffer == 0 && flag == 1) 454 delmainbouquet(path, 1); 455 456 free(path); path = NULL; 450 457 return 0; 451 458 } -
titan/titan/sat.h
r23662 r24223 472 472 } 473 473 474 int sat2bouquet(int orbitalpos) 475 { 474 //flag 0: add all provider 475 //flag 1: add only provider with channel 476 int sat2bouquet(int orbitalpos, int flag) 477 { 478 int treffer = 0; 476 479 struct sat* snode = NULL; 477 480 struct mainbouquet* mnode = NULL; … … 509 512 } 510 513 free(tmpstr); tmpstr = NULL; 511 free(path); path = NULL;512 514 513 515 if(mnode != NULL) … … 520 522 tmpstr = ostrcat(tmpstr, "#", 1, 0); 521 523 tmpstr = ostrcat(tmpstr, ollutoa(chnode->transponderid), 1, 1); 524 treffer = 1; 522 525 addbouquet(&mnode->bouquet, tmpstr, status.servicetype, 1, NULL); 523 526 free(tmpstr); tmpstr = NULL; … … 526 529 } 527 530 } 528 531 532 if(treffer == 0 && flag == 1) 533 delmainbouquet(path, 1); 534 535 free(path); path = NULL; 529 536 return 0; 530 537 } -
titan/titan/scan.h
r24222 r24223 1648 1648 while(pnode != NULL) 1649 1649 { 1650 provider2bouquet(pnode->providerid );1650 provider2bouquet(pnode->providerid, 1); 1651 1651 pnode = pnode->next; 1652 1652 }
Note: See TracChangeset
for help on using the changeset viewer.