Changeset 23206


Ignore:
Timestamp:
09/02/13 09:46:47 (11 years ago)
Author:
nit
Message:

[titan] revert

Location:
titan/titan
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/about.h

    r23095 r23206  
    44int screenabout(void)
    55{
    6         STARTFUNC
    76        char *text = NULL, *tmpstr = NULL;
    87        struct dvbdev* dvbnode = dvbdev;
  • titan/titan/adjust.h

    r23095 r23206  
    44void screenadjust()
    55{
    6         STARTFUNC
    76        int rcret = 0;
    87        char* tmpstr = NULL;
  • titan/titan/audiodev.h

    r23129 r23206  
    44struct dvbdev* audioopen(int adapter)
    55{
    6         STARTFUNC
    76        int fd = -1;
    87        struct dvbdev* node = dvbdev;
     
    3433int audioopendirect(char *audiodev)
    3534{
    36         STARTFUNC
    3735        int fd = -1;
    3836
     
    4846void audioclose(struct dvbdev* node, int fd)
    4947{
    50         STARTFUNC
    5148        if(node != NULL)
    5249        {
     
    6057int audiostop(struct dvbdev* node)
    6158{
    62         STARTFUNC
    6359        if(node == NULL)
    6460        {
     
    7975int audioplay(struct dvbdev* node)
    8076{
    81         STARTFUNC
    8277        if(node == NULL)
    8378        {
     
    9893int audiopause(struct dvbdev* node)
    9994{
    100         STARTFUNC
    10195        if(node == NULL)
    10296        {
     
    117111int audiogetpts(struct dvbdev* node, uint64_t* pts)
    118112{
    119         STARTFUNC
    120113        if(node == NULL)
    121114        {
     
    136129int audioselectsource(struct dvbdev* node, audio_stream_source_t source)
    137130{
    138         STARTFUNC
    139131        if(node == NULL)
    140132        {
     
    155147int audiosetmute(struct dvbdev* node, int state)
    156148{
    157         STARTFUNC
    158149        if(node == NULL)
    159150        {
     
    173164int audiosetavsync(struct dvbdev* node, int state)
    174165{
    175         STARTFUNC
    176166        if(node == NULL)
    177167        {
     
    191181
    192182int audiosetbypassmode(struct dvbdev* node, int mode)
    193 {
    194         STARTFUNC       
     183{       
    195184        if(node == NULL)
    196185        {
     
    226215int audiochannelselect(struct dvbdev* node, audio_channel_select_t channel)
    227216{
    228         STARTFUNC
    229217        if(node == NULL)
    230218        {
     
    245233int audioclearbuffer(struct dvbdev* node)
    246234{
    247         STARTFUNC
    248235        if(node == NULL)
    249236        {
     
    263250int audiosetid(struct dvbdev* node, int id)
    264251{
    265         STARTFUNC
    266252        if(node == NULL)
    267253        {
     
    282268int audiosetstreamtype(struct dvbdev* node, int type)
    283269{
    284         STARTFUNC
    285270        if(node == NULL)
    286271        {
     
    301286int audiogetdev()
    302287{
    303         STARTFUNC
    304288        int i, y, fd = -1, count = 0;
    305289        char *buf = NULL, *audiodev = NULL;
  • titan/titan/audiotrack.h

    r23095 r23206  
    44struct audiotrack* checkaudiotrack(struct channel* chnode, struct audiotrack* atrack)
    55{
    6         STARTFUNC
    76        struct audiotrack* node = NULL;
    87
     
    2221void screenaudiotrack()
    2322{
    24         STARTFUNC
    2523        int rcret = 0, treffer = 0;
    2624        struct skin* audiotrack = getscreen("audiotrack");
     
    9795struct audiotrack* addaudiotrack(struct channel* chnode, char* langdesc, int pid, int audiocodec, struct audiotrack* last)
    9896{
    99         STARTFUNC
    10097        struct audiotrack *newnode = NULL, *prev = NULL, *node = NULL;
    10198        char *tmpstr = NULL;
     
    161158void freeaudiotrack(struct channel* chnode)
    162159{
    163         STARTFUNC
    164160        struct audiotrack *node = NULL, *prev = NULL;
    165161
  • titan/titan/autores.h

    r23095 r23206  
    44void screenautores(char* text, int timeout, int flag)
    55{
    6         STARTFUNC
    76        int rcret = -1, fromthread = 0;
    87        struct skin* autores = getscreen("autores");
     
    6160void autoresthreadfunc(struct stimerthread* self, char* text, int timeout)
    6261{
    63         STARTFUNC
    6462        screenautores(text, timeout, 0);
    6563}
  • titan/titan/avsettings.h

    r23095 r23206  
    66void screenavsettings(int flag)
    77{
    8         STARTFUNC
    98        int rcret = 0;
    109        char* ret = NULL;
  • titan/titan/bgdownload.h

    r23095 r23206  
    66void delbgdownload(int nr, int flag)
    77{
    8         STARTFUNC
    98        if(nr >= MAXBGDOWNLOAD) return;
    109       
     
    5150void freebgdownload()
    5251{
    53         STARTFUNC
    5452        int i = 0;
    5553       
     
    6260void screenbgdownload(int flag)
    6361{
    64         STARTFUNC
    6562        int rcret = -1, i = 0;
    6663        struct skin* screenbgdownload = getscreen("bgdownload");
     
    213210int startbgdownload(char* host, char* page, int port, char* filename, char* auth, int timeout, int flag)
    214211{
    215         STARTFUNC
    216212        int i = 0;
    217213        struct download* dnode = NULL;
  • titan/titan/blindscanadjust.h

    r23095 r23206  
    44void blindcalc()
    55{       
    6         STARTFUNC
    76        unsigned int blindmax = 0, cblindmax = 0, tblindmax = 0;
    87        char* tmpstr = NULL;
     
    3029void 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)
    3130{       
    32         STARTFUNC
    3331        minfrequency->hidden = YES;
    3432        maxfrequency->hidden = YES;
     
    8684
    8785void screenblindscanadjust()
    88 {       
    89         STARTFUNC
     86{
    9087        int rcret = 0;
    9188        struct skin* blindscan = getscreen("blindscanadjust");
  • titan/titan/bouquets.h

    r23095 r23206  
    33
    44void debugbouquet()
    5 {
    6         STARTFUNC       
     5{       
    76        struct mainbouquet* mainbouquetnode = mainbouquet;
    87        struct bouquet* bouquetnode = NULL;
     
    2322struct bouquet* getlastbouquet(struct bouquet* node)
    2423{
    25         STARTFUNC
    2624        struct bouquet *prev = NULL;
    2725
     
    3735struct bouquet* getprevbouquetbyservicetype(struct bouquet* first, struct bouquet* node)
    3836{
    39         STARTFUNC
    4037        struct bouquet* prev = NULL;
    4138
     
    5855struct bouquet* getnextbouquetbyservicetype(struct bouquet* first, struct bouquet* node)
    5956{
    60         STARTFUNC
    6157        struct bouquet* next = NULL;
    6258
     
    8076int movebouquetblockdown(struct bouquet* node)
    8177{
    82         STARTFUNC
    8378        int i = 0, ret = 0;
    8479        struct bouquet* prev = NULL;
     
    119114int movebouquetdown(struct bouquet* node)
    120115{
    121         STARTFUNC
    122116        struct bouquet* prev = NULL, *next = NULL;
    123117        struct mainbouquet* mainbouquetnode = NULL;
     
    173167int movebouquetblockup(struct bouquet* node)
    174168{
    175         STARTFUNC
    176169        int i = 0, ret = 0;
    177170        struct bouquet* next = NULL;
     
    204197int movebouquetup(struct bouquet* node)
    205198{
    206         STARTFUNC
    207199        struct bouquet* prev = NULL, *next = NULL, *last = NULL;
    208200        struct mainbouquet* mainbouquetnode = NULL;
     
    260252struct bouquet* getbouquetbychannel(struct bouquet* node, int serviceid, uint64_t transponderid)
    261253{
    262         STARTFUNC
    263254        while(node != NULL)
    264255        {
     
    272263struct bouquet* getbouquetbynr(int nr)
    273264{
    274         STARTFUNC
    275265        struct mainbouquet* mainbouquetnode = mainbouquet;
    276266        struct bouquet* bouquetnode = NULL;
     
    294284struct bouquet* addbouquet(struct bouquet **firstnode, char *line, int type, int count, struct bouquet* last)
    295285{
    296         STARTFUNC
    297286        struct bouquet *newnode = NULL, *prev = NULL, *node = *firstnode;
    298287        int ret = 0;
     
    365354void recalcbouquetnr()
    366355{
    367         STARTFUNC
    368356        int i;
    369357        struct mainbouquet* node = mainbouquet;
     
    391379int readbouquet(char* filename, struct bouquet** firstnode, int type)
    392380{
    393         STARTFUNC
    394381        FILE *fd = NULL;
    395382        char *fileline = NULL;
     
    438425void delbouquet(int serviceid, uint64_t transponderid, struct bouquet** firstnode)
    439426{
    440         STARTFUNC
    441427        struct bouquet *node = *firstnode, *prev = *firstnode;
    442428
     
    471457void setbouquetchanneltonullmain(int serviceid, uint64_t transponderid)
    472458{
    473         STARTFUNC
    474459        struct mainbouquet* node = mainbouquet;
    475460        struct bouquet* bouquetnode = NULL;
     
    490475void delbouquetbychannel(int serviceid, uint64_t transponderid)
    491476{
    492         STARTFUNC
    493477        struct mainbouquet* node = mainbouquet;
    494478
     
    505489void delunusedbouquetchannels(int flag)
    506490{
    507         STARTFUNC
    508491        struct mainbouquet* mainbouquetnode = mainbouquet;
    509492        struct bouquet *node = NULL, *prev = NULL;
     
    530513void freebouquet(struct bouquet** firstnode)
    531514{
    532         STARTFUNC
    533515        struct bouquet *node = *firstnode, *prev = *firstnode;
    534516
     
    544526struct bouquet* sortbouquet(struct bouquet **nodeaddr)
    545527{
    546         STARTFUNC
    547528        struct bouquet *nodea = NULL, *nodeb = NULL, *nodec = NULL, *noded = NULL;
    548529        struct bouquet *nodetmp = NULL;
     
    619600struct bouquet* sortbouquet(struct bouquet **nodeaddr)
    620601{
    621         STARTFUNC
    622602        struct bouquet *tmpnode[10] = {0};
    623603        struct bouquet *tnode = NULL;
     
    703683int writebouquet(const char *filename, struct bouquet *node)
    704684{
    705         STARTFUNC
    706685        FILE *fd = NULL;
    707686        int ret = 0;
  • titan/titan/ca.h

    r23095 r23206  
    55void cawait(struct stimerthread* self, struct dvbdev* dvbnode, int tout)
    66{
    7         STARTFUNC
    87        unsigned int i = 0;
    98        ca_slot_info_t info;
     
    3130void careseting(struct stimerthread* self, struct dvbdev* dvbnode, int flag)
    3231{
    33         STARTFUNC
    3432        if(dvbnode != NULL)
    3533        {
     
    6159int caread(struct dvbdev* dvbnode, unsigned char* buf, int* len)
    6260{
    63         STARTFUNC
    6461        int ret = 0, c = 0;
    6562        struct pollfd fds;
     
    128125int cawrite(struct dvbdev* dvbnode, int fd, unsigned char* buf, int count, int flag, int tout)
    129126{
    130         STARTFUNC
    131127        int ret = 0;
    132128
     
    154150int casend(struct dvbdev* dvbnode, unsigned char* buf, int len)
    155151{
    156         STARTFUNC
    157152        unsigned char *tmpbuf = NULL;
    158153        int flag = 0;
     
    211206void sendSPDU(struct dvbdev* dvbnode, unsigned char tag, void *data, int len, int sessionnr, void *apdu, int alen)
    212207{
    213         STARTFUNC
    214208        unsigned char* buf = NULL;
    215209        unsigned char *tmpbuf = NULL;
     
    243237void sendAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    244238{
    245         STARTFUNC
    246239        debug(620, "send APDU, nr %d", sessionnr);
    247240
     
    258251int parselenfield(unsigned char *buf, int* len)
    259252{
    260         STARTFUNC
    261253        int i;
    262254
     
    280272int asn1decode(uint16_t* lenret, unsigned char* asn1array, uint32_t asn1arraylen)
    281273{
    282         STARTFUNC
    283274        uint8_t len;
    284275
     
    312303int cammistop(struct dvbdev* dvbnode, int sessionnr)
    313304{
    314         STARTFUNC
    315305        debug(620, "cammistop");
    316306
     
    324314int cammianswer(struct dvbdev* dvbnode, int sessionnr, int answer)
    325315{
    326         STARTFUNC
    327316        debug(620, "cammianswer: %d", answer);
    328317
     
    337326int cammianswerenq(struct dvbdev* dvbnode, int sessionnr, char *answer, int len)
    338327{
    339         STARTFUNC
    340328        debug(620, "cammianswerenq (%d): %s", len, answer);
    341329
     
    352340int cammicancelenq(struct dvbdev* dvbnode, int sessionnr)
    353341{
    354         STARTFUNC
    355342        debug(620, "cammicancelenq");
    356343
     
    364351int cammiaction(struct dvbdev* dvbnode, int sessionnr)
    365352{
    366         STARTFUNC
    367353        struct casession* casession = NULL;
    368354
     
    409395int cammiAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    410396{
    411         STARTFUNC
    412397        char* tmpstr = NULL, *tmpstr1 = NULL;
    413398        struct casession* casession = NULL;
     
    634619int cacaaction(struct dvbdev* dvbnode, int sessionnr)
    635620{
    636         STARTFUNC
    637621        struct casession* casession = NULL;
    638622
     
    661645int cacaAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    662646{
    663         STARTFUNC
    664647        int i = 0;
    665648        struct casession* casession = NULL;
     
    732715int cadatetimeaction(struct dvbdev* dvbnode, int sessionnr)
    733716{
    734         STARTFUNC
    735717        struct casession* casession = NULL;
    736718
     
    762744int cadatetimeAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    763745{
    764         STARTFUNC
    765746        struct casession* casession = NULL;
    766747
     
    800781int caresaction(struct dvbdev* dvbnode, int sessionnr)
    801782{
    802         STARTFUNC
    803783        struct casession* casession = NULL;
    804784
     
    860840int caresAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    861841{
    862         STARTFUNC
    863842        struct casession* casession = NULL;
    864843
     
    918897void caappmenu(struct dvbdev* dvbnode)
    919898{
    920         STARTFUNC
    921899        //must be send to the app session
    922900        debug(620, "caappmenu");
     
    931909int caappaction(struct dvbdev* dvbnode, int sessionnr)
    932910{
    933         STARTFUNC
    934911        struct casession* casession = NULL;
    935912
     
    962939int caappAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    963940{
    964         STARTFUNC
    965941        if(dvbnode == NULL || dvbnode->caslot == NULL) return 0;
    966942
     
    10311007int getfreecasession(struct dvbdev* dvbnode, int type, int value)
    10321008{
    1033         STARTFUNC
    10341009        int i;
    10351010
     
    10701045void casessiondel(struct dvbdev* dvbnode, int sessionnr)
    10711046{
    1072         STARTFUNC
    10731047        if(dvbnode != NULL && dvbnode->caslot != NULL)
    10741048        {
     
    10831057void casessionfree(struct dvbdev* dvbnode)
    10841058{
    1085         STARTFUNC
    10861059        int i = 0;
    10871060
     
    10921065int casessionpoll(struct dvbdev* dvbnode)
    10931066{
    1094         STARTFUNC
    10951067        int sessionnr = 0;
    10961068        struct casession* casession = NULL;
     
    11311103struct casession* casessioncreate(struct dvbdev* dvbnode, unsigned char* resid, unsigned char status, unsigned long newtag)
    11321104{
    1133         STARTFUNC
    11341105        unsigned long tag = 0;
    11351106        int sessionnr = 0;
     
    12181189void casessionreceive(struct dvbdev* dvbnode, unsigned char *buf, size_t len)
    12191190{
    1220         STARTFUNC
    12211191        unsigned char *pkt = buf;
    12221192        unsigned char tag = *pkt++;
     
    13661336int cacreatetc(struct dvbdev* dvbnode)
    13671337{
    1368         STARTFUNC
    13691338        int ret = 0;
    13701339        unsigned char* buf = NULL;
     
    13941363void caslotfree(struct dvbdev* dvbnode)
    13951364{
    1396         STARTFUNC
    13971365        if(dvbnode != NULL && dvbnode->caslot != NULL)
    13981366        {
     
    14101378void processtpdu(struct dvbdev* dvbnode, unsigned char tpdutag, unsigned char* buf, int asnlen)
    14111379{
    1412         STARTFUNC
    14131380        struct caslot* canode = NULL;
    14141381
     
    15261493void cacheck(struct stimerthread* self, struct dvbdev* dvbnode)
    15271494{
    1528         STARTFUNC
    15291495        int ret = 0, len = MINMALLOC;
    15301496        ca_slot_info_t info;
     
    17141680void cathread(struct stimerthread* self, struct dvbdev* dvbnode)
    17151681{
    1716         STARTFUNC
    17171682        if(dvbnode == NULL || dvbnode->caslot == NULL) return;
    17181683        debug(620, "CA thread start (slot %d)", dvbnode->devnr);
     
    17321697void castart()
    17331698{
    1734         STARTFUNC
    17351699        struct dvbdev* dvbnode = dvbdev;
    17361700
     
    17601724int sendcapmttocam(struct dvbdev* dvbnode, struct service* node, unsigned char* buf, int len, int caservicenr, int cmdpos, int clear)
    17611725{
    1762         STARTFUNC
    17631726        int i = 0;
    17641727        char* tmpstr = NULL, *blacklist = NULL;
  • titan/titan/cadev.h

    r23095 r23206  
    44struct dvbdev* caopen(int adapter)
    55{
    6         STARTFUNC
    76        int fd = -1;
    87        struct dvbdev* node = dvbdev;
     
    3433int caopendirect(char *cadev)
    3534{
    36         STARTFUNC
    3735        int fd = -1;
    3836
     
    4846void caclose(struct dvbdev* node, int fd)
    4947{
    50         STARTFUNC
    5148        if(node != NULL)
    5249        {
     
    6057int cagetcaps(struct dvbdev* node, struct ca_caps* caps)
    6158{
    62         STARTFUNC
    6359        if(node == NULL)
    6460        {
     
    8480int cagetmsg(struct dvbdev* node, struct ca_msg *msg)
    8581{
    86         STARTFUNC
    8782        if(node == NULL)
    8883        {
     
    10398int casendmsg(struct dvbdev* node, struct ca_msg *msg)
    10499{
    105         STARTFUNC
    106100        if(node == NULL)
    107101        {
     
    122116int cagetdesc(struct dvbdev* node, struct ca_descr *descr)
    123117{
    124         STARTFUNC
    125118        if(node == NULL)
    126119        {
     
    141134int casetdesc(struct dvbdev* node, struct ca_descr *descr)
    142135{
    143         STARTFUNC
    144136        if(node == NULL)
    145137        {
     
    160152int casetpid(struct dvbdev* node, struct ca_pid *pid)
    161153{
    162         STARTFUNC
    163154        if(node == NULL)
    164155        {
     
    179170int careset(struct dvbdev* node, int slot)
    180171{
    181         STARTFUNC
    182172        if(node == NULL)
    183173        {
     
    198188int cagetslotinfo(struct dvbdev* node, ca_slot_info_t* info)
    199189{
    200         STARTFUNC
    201190        if(node == NULL)
    202191        {
     
    223212void cainit(int fd)
    224213{
    225         STARTFUNC
    226214        ca_descr_t cadescr;
    227215        unsigned char buf[8];
     
    244232int cagetdev()
    245233{
    246         STARTFUNC
    247234        int i, y, fd = -1, count = 0;
    248235        char *buf = NULL, *cadev = NULL;
  • titan/titan/cam.h

    r23095 r23206  
    44void debugcaservice()
    55{
    6         STARTFUNC
    76        int i = 0;
    87
     
    2423int getcaservicebyslot(struct caslot* caslot, int flag)
    2524{
    26         STARTFUNC
    2725        int i = 0;
    2826
     
    4947int caserviceadd(struct service* snode, int flag)
    5048{
    51         STARTFUNC
    5249        int i = 0, first = -1;
    5350
     
    9087void caservicedel(struct service* snode, struct caslot* caslot)
    9188{
    92         STARTFUNC
    9389        int i = 0;
    9490
     
    131127void freecaservice()
    132128{
    133         STARTFUNC
    134129        int i = 0;
    135130
     
    153148void dvbwritepmt(struct service* node, unsigned char* pmtbuf)
    154149{
    155         STARTFUNC
    156150        int length;
    157151        FILE *fd;
     
    195189void sendcapmttosock(struct service* node, unsigned char* buf, int pos, int caservicenr)
    196190{
    197         STARTFUNC
    198191        int ret = 0, i = 0;
    199192
     
    219212int createcapmt(struct dvbdev* dvbnode, struct service* node, unsigned char* buf, int* lenbytes, int flag)
    220213{
    221         STARTFUNC
    222214        if(buf == NULL || node == NULL || node->channel == NULL) return -1;
    223215        if(node->fedev == NULL || node->channel->pmt == NULL) return -1;
     
    413405void sendcapmt(struct service* node, int clear, int flag)
    414406{
    415         STARTFUNC
    416407        int len = 0, i = 0, caservicenr = 0, lenbytes = 0;
    417408        unsigned char* buf = NULL;
     
    561552void checkcam()
    562553{
    563         STARTFUNC
    564554        int i = 0;
    565555
     
    582572struct pmt* addpmt(struct channel* chnode, int programnumber, int versionnumber, int currentnextindicator)
    583573{
    584         STARTFUNC
    585574        struct pmt *newnode = NULL;
    586575
     
    611600struct cadesc* addcadesc(struct channel* chnode, int pid, unsigned char* buf, struct cadesc* last)
    612601{
    613         STARTFUNC
    614602        struct cadesc *newnode = NULL, *prev = NULL, *node = NULL;
    615603
     
    674662struct esinfo* addesinfo(struct channel* chnode, int streamtype, int pid, struct esinfo* last)
    675663{
    676         STARTFUNC
    677664        struct esinfo *newnode = NULL, *prev = NULL, *node = NULL;
    678665
     
    723710void freepmt(struct channel* chnode)
    724711{
    725         STARTFUNC
    726 
    727712        if(chnode == NULL || chnode->pmt == NULL) return;
    728713
     
    733718void freecadesc(struct channel* chnode)
    734719{
    735         STARTFUNC
    736720        struct cadesc *node = NULL, *prev = NULL;
    737721
     
    758742void freeesinfo(struct channel* chnode)
    759743{
    760         STARTFUNC
    761744        struct esinfo *node = NULL, *prev = NULL;
    762745
  • titan/titan/channel.h

    r23095 r23206  
    44void debugchannel()
    55{
    6         STARTFUNC
    76        struct channel* node = channel;
    87
     
    1615int channelnottunable(struct channel* node)
    1716{
    18         STARTFUNC
    1917        if(node == NULL) return 1;
    2018        if(node->transponder == NULL) return 1;
     
    4240struct channel* getlastchannel(struct channel* node, int flag)
    4341{
    44         STARTFUNC
    4542        struct channel *prev = NULL;
    4643
     
    5855struct channel* gettmpchannel()
    5956{
    60         STARTFUNC
    61 
    6257        m_lock(&status.channelmutex, 5);
    6358  struct channel *node = channel;
     
    7671struct channel* getprevchannelbyservicetype(struct channel* node)
    7772{
    78         STARTFUNC
    7973        struct channel* prev = NULL;
    8074
     
    9791struct channel* getnextchannelbyservicetype(struct channel* node)
    9892{
    99         STARTFUNC
    10093        struct channel* next = NULL;
    10194
     
    119112int movechannelblockdown(struct channel* node)
    120113{
    121         STARTFUNC
    122114        int i = 0, ret = 0;
    123115        struct channel* prev = NULL;
     
    150142int movechanneldown(struct channel* node)
    151143{
    152         STARTFUNC
    153144        struct channel* prev = NULL, *next = NULL;
    154145
     
    197188int movechannelblockup(struct channel* node)
    198189{
    199         STARTFUNC
    200190        int i = 0, ret = 0;
    201191        struct channel* next = NULL;
     
    220210int movechannelup(struct channel* node)
    221211{
    222         STARTFUNC
    223212        struct channel* prev = NULL, *next = NULL, *last = NULL;
    224213
     
    269258struct channel* addchannel(char *line, int count, struct channel* last)
    270259{
    271         STARTFUNC
    272260        struct channel *newnode = NULL, *prev = NULL, *node = NULL;
    273261        char *name = NULL;
     
    351339struct 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)
    352340{
    353         STARTFUNC
    354341        struct channel* chnode = NULL;
    355342        char* tmpstr = NULL;
     
    385372int readchannel(const char* filename)
    386373{
    387         STARTFUNC
    388374        FILE *fd = NULL;
    389375        char *fileline = NULL;
     
    434420int delchannel(int serviceid, uint64_t transponderid, int flag)
    435421{
    436         STARTFUNC
    437422        int ret = 1;
    438423        struct provider* providernode = NULL;
     
    524509void delchannelbytransponder(uint64_t transponderid)
    525510{
    526         STARTFUNC
    527511        struct channel *node = channel, *prev = channel;
    528512
     
    540524void freechannel(int flag)
    541525{
    542         STARTFUNC
    543526        struct channel *node = channel, *prev = channel;
    544527
     
    555538struct channel* sortchannel()
    556539{
    557         STARTFUNC
    558540        struct channel *node = channel;
    559541        struct channel *nodea = NULL, *nodeb = NULL, *nodec = NULL, *noded = NULL;
     
    624606struct channel* sortchannel()
    625607{
    626         STARTFUNC
    627608        struct channel* tmpnode[10] = {0};
    628609        struct channel* node = channel, *tnode = NULL;
     
    703684int writechannel(const char *filename)
    704685{
    705         STARTFUNC
    706686        FILE *fd = NULL;
    707687        struct channel *node = NULL;
  • titan/titan/channelbynr.h

    r23095 r23206  
    44void setchannelkeycode(struct skin* channelbynr, char* value)
    55{
    6         STARTFUNC
    76        char* tmpstr = NULL;
    87
     
    1514void screenchannelbynr(int rcret)
    1615{
    17         STARTFUNC
    1816        struct skin* channelbynr = getscreen("channelbynr");
    1917        struct bouquet* bouquetnode = NULL;
  • titan/titan/channelcache.h

    r23095 r23206  
    44void debugchannelcache()
    55{
    6         STARTFUNC
    76        int i, count = 0, maxcount = 0;;
    87        struct channelcache* node = NULL;
     
    2524struct channel* getchannel(int serviceid, uint64_t transponderid)
    2625{
    27         STARTFUNC
    2826        unsigned int hash;
    2927        struct channelcache* node = NULL;
     
    5250struct channelcache* modifychannelcache(int serviceid, uint64_t transponderid, struct channel* chnode)
    5351{
    54         STARTFUNC
    5552        unsigned int hash;
    5653        struct channelcache* node = NULL, *newnode = NULL;
     
    7976void delchannelcache(int serviceid, uint64_t transponderid)
    8077{
    81         STARTFUNC
    8278        unsigned int hash;
    8379        struct channelcache *node = NULL, *prev = NULL;
  • titan/titan/channelhistroy.h

    r23095 r23206  
    44void freechannelhistory()
    55{
    6         STARTFUNC
    76        int i = 0;
    87
     
    1716void delchannelhistory(struct channel* chnode)
    1817{
    19         STARTFUNC
    2018        int i = 0;
    2119        if(chnode == NULL) return;
     
    3432void addchannelhistory(struct channel* chnode, char* channellist)
    3533{
    36         STARTFUNC
    3734        int i = 0;
    3835        struct channel* tmpchannel = NULL;
     
    6865void screenchannelhistory()
    6966{
    70         STARTFUNC
    7167        int rcret = -1, i = 0;
    7268        struct skin* chistory = getscreen("channelhistory");
  • titan/titan/channellist.h

    r23095 r23206  
    44int selectchannel(struct skin* listbox, int sid, uint64_t tid)
    55{
    6         STARTFUNC
    76        struct skin* node = listbox;
    87        struct channel* chnode = NULL;
     
    5150void changechannelepg(struct channel* chnode, struct skin* node)
    5251{
    53         STARTFUNC
    5452        struct epg* epgnode = NULL;
    5553        char* tmpstr = NULL;
     
    6765void showallchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, int mode)
    6866{
    69         STARTFUNC
    7067        struct skin* chnode = NULL;
    7168        struct channel* tmpchannel = channel;
     
    118115void showbouquetchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct bouquet* firstbouquet, struct mainbouquet* mbouquet, int mode)
    119116{
    120         STARTFUNC
    121117        struct skin* chnode = NULL;
    122118        struct bouquet* tmpbouquet = firstbouquet;
     
    187183void showproviderchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct provider* providernode, int mode)
    188184{
    189         STARTFUNC
    190185        struct skin* chnode = NULL;
    191186        struct channel* tmpchannel = channel;
     
    241236void showprovider(struct skin* channellist, struct skin* listbox)
    242237{
    243         STARTFUNC
    244238        struct provider *node = provider;
    245239        struct skin* providernode = NULL;
     
    261255void showsatchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, struct sat* satnode, int mode)
    262256{
    263         STARTFUNC
    264257        struct skin* chnode = NULL;
    265258        struct channel* tmpchannel = channel;
     
    318311void showsat(struct skin* channellist, struct skin* listbox)
    319312{
    320         STARTFUNC
    321313        int i = 0, treffer = 0;
    322314        struct sat *node = sat;
     
    371363void showazchannel(struct skin* channellist, struct skin* listbox, struct skin* channeltimeline, int character, int mode)
    372364{
    373         STARTFUNC
    374365        struct skin* chnode = NULL;
    375366        struct channel* tmpchannel = channel;
     
    425416void showaz(struct skin* channellist, struct skin* listbox)
    426417{
    427         STARTFUNC
    428418        struct skin* node = NULL;
    429419        int i;
     
    454444void showmainbouquet(struct skin* channellist, struct skin* listbox)
    455445{
    456         STARTFUNC
    457446        struct mainbouquet *node = mainbouquet;
    458447        struct skin* bouquetnode = NULL;
     
    477466void drawchannellist(struct skin* channellist, int list, struct skin* listbox)
    478467{
    479         STARTFUNC
    480468        status.markedchannel = NULL;
    481469        if(list == ALLCHANNEL || list == SATCHANNEL || list == PROVIDERCHANNEL || list == AZCHANNEL || list == BOUQUETCHANNEL)
     
    492480void recalclist(int list, void* aktlist, int listmode, struct skin* channellist, struct skin* listbox, struct skin* channeltimeline)
    493481{
    494         STARTFUNC
    495482        if(list == ALLCHANNEL)
    496483                showallchannel(channellist, listbox, channeltimeline, listmode);
     
    513500void 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)
    514501{
    515         STARTFUNC
    516502        if(listmode == NOMODE)
    517503        {
     
    581567void changechanneltitle(struct skin* channellist, struct skin* listbox, int listmode, char** oldtitle, long* oldfontcol, long* oldbgcol)
    582568{
    583         STARTFUNC
    584569        struct skin* titletext = getscreennode(channellist, "titletext");
    585570        char* tmpstr = NULL;
     
    645630void addscreenrcchannellist(struct skin* channellist, struct skin* listbox)
    646631{
    647         STARTFUNC
    648632        addscreenrc(channellist, listbox);
    649633
     
    658642int screenchannellist(struct channel** retchannel, char** retchannellist, int flag)
    659643{
    660         STARTFUNC
    661644        struct skin* channellist = getscreen("channellist");
    662645        struct skin* titletext = getscreennode(channellist, "titletext");
  • titan/titan/channelslot.h

    r23095 r23206  
    44struct channelslot* addchannelslot(char *line, int count, struct channelslot* last)
    55{
    6         STARTFUNC
    76        struct channelslot *newnode = NULL, *prev = NULL, *node = channelslot;
    87        int ret = 0;
     
    5857struct channelslot* getchannelslot(int serviceid, uint64_t transponderid)
    5958{
    60         STARTFUNC
    6159        struct channelslot *node = channelslot;
    6260       
     
    7371int readchannelslot(char* filename)
    7472{
    75         STARTFUNC
    7673        FILE *fd = NULL;
    7774        char* fileline = NULL;
     
    120117int delchannelslot(int serviceid, uint64_t transponderid)
    121118{
    122         STARTFUNC
    123119        int ret = 1;
    124120        struct channelslot *node = channelslot, *prev = channelslot;
     
    148144void freechannelslot()
    149145{
    150         STARTFUNC
    151146        struct channelslot *node = channelslot, *prev = channelslot;
    152147
     
    162157int writechannelslot(char *filename)
    163158{
    164         STARTFUNC
    165159        FILE *fd = NULL;
    166160        struct channelslot *node = channelslot;
  • titan/titan/choicebox.h

    r23128 r23206  
    44int addchoicebox(struct skin* choicebox, char* value, char* text)
    55{
    6         STARTFUNC
    76        char* tmp = NULL;
    87
     
    7170int setchoiceboxselection(struct skin* choicebox, char* value)
    7271{
    73         STARTFUNC
    7472        int treffer = 0;
    7573        char* pos = NULL, *epos = NULL, *end = NULL;
  • titan/titan/cidev.h

    r23095 r23206  
    44struct dvbdev* ciopen(struct dvbdev* node)
    55{
    6         STARTFUNC
    76        int fd = -1;
    87
     
    2625int ciopendirect(char *cidev)
    2726{
    28         STARTFUNC
    2927        int fd = -1;
    3028
     
    4038void ciclose(struct dvbdev* node, int fd)
    4139{
    42         STARTFUNC
    4340        if(node != NULL)
    4441        {
     
    5249int cigetdev()
    5350{
    54         STARTFUNC
    5551        int i, y, fd = -1, count = 0;
    5652        char *buf = NULL, *cidev = NULL;
  • titan/titan/colorpicker.h

    r23095 r23206  
    44char* screencolorpicker(char* color, int screencalc, int filelistview, int flag)
    55{
    6         STARTFUNC
    76        int rcret = 0;
    87        long col = 0;
  • titan/titan/config.h

    r23095 r23206  
    44struct clist* addconfigtmp(char *key, char *value)
    55{
    6         STARTFUNC
    76        return addlisttmp(config, key, value);
    87}
     
    109struct clist* addconfigdef(char *key, char *value)
    1110{
    12         STARTFUNC
    1311        return addlistdef(config, key, value);
    1412}
     
    1614struct clist* addconfig(char *key, char *value)
    1715{
    18         STARTFUNC
    1916        struct clist* node = NULL;
    2017
     
    2825struct clist* addconfigscreentmp(char *key, struct skin *node)
    2926{
    30         STARTFUNC
    3127        struct clist* ret = NULL;
    3228
     
    4440struct clist* addconfigscreentmpcheck(char *key, struct skin *node, char* check)
    4541{
    46         STARTFUNC
    4742        if(ostrcmp(node->ret, check) == 0)
    4843                return addconfigtmp(key, "");
     
    5348struct clist* addconfigscreen(char *key, struct skin *node)
    5449{
    55         STARTFUNC
    5650        struct clist* ret = NULL;
    5751
     
    6963struct clist* addconfigscreencheck(char *key, struct skin *node, char* check)
    7064{
    71         STARTFUNC
    7265        if(ostrcmp(node->ret, check) == 0)
    7366                delconfig(key);
     
    8073struct clist* addconfiginttmp(char *key, int value)
    8174{
    82         STARTFUNC
    8375        char* fileline = NULL;
    8476        struct clist* ret = NULL;
     
    9385struct clist* addconfigllutmp(char *key, uint64_t value)
    9486{
    95         STARTFUNC
    9687        char* fileline = NULL;
    9788        struct clist* ret = NULL;
     
    10697struct clist* addconfiglutmp(char *key, unsigned long value)
    10798{
    108         STARTFUNC
    10999        char* fileline = NULL;
    110100        struct clist* ret = NULL;
     
    119109struct clist* addconfigint(char *key, int value)
    120110{
    121         STARTFUNC
    122111        char* fileline = NULL;
    123112        struct clist* ret = NULL;
     
    132121struct clist* addconfigllu(char *key, uint64_t value)
    133122{
    134         STARTFUNC
    135123        char* fileline = NULL;
    136124        struct clist* ret = NULL;
     
    145133struct clist* addconfiglu(char *key, unsigned long value)
    146134{
    147         STARTFUNC
    148135        char* fileline = NULL;
    149136        struct clist* ret = NULL;
     
    158145struct clist* addconfigintcheck(char *key, int value, int check)
    159146{
    160         STARTFUNC
    161147        if(value == check)
    162148                delconfig(key);
     
    169155int readconfig(const char *filename, struct clist** tmpconfig)
    170156{
    171         STARTFUNC
    172157        FILE *fd = NULL;
    173158        char *fileline = NULL, *pos;
     
    215200int writeconfigtmp()
    216201{
    217         STARTFUNC
    218202        int ret = 0;
    219203
     
    226210int writeconfig(const char *filename)
    227211{
    228         STARTFUNC
    229212        return writelist(config, filename);
    230213}
     
    232215char* getconfigbyval(char *value, char *ext)
    233216{
    234         STARTFUNC
    235217        return getlistbyval(config, value, ext);
    236218}
     
    238220char* getconfignotmp(char *key, char *ext)
    239221{
    240         STARTFUNC
    241222        return getlistnotmp(config, key, ext);
    242223}
     
    244225char* getconfig(char *key, char *ext)
    245226{
    246         STARTFUNC
    247227        return getlist(config, key, ext);
    248228}
     
    250230int getconfigint(char *key, char *ext)
    251231{
    252         STARTFUNC
    253232        char *ret = NULL;
    254233
     
    262241float getconfigfloat(char *key, char *ext)
    263242{
    264         STARTFUNC
    265243        char *ret = NULL;
    266244
     
    274252uint64_t getconfigllu(char *key, char *ext)
    275253{
    276         STARTFUNC
    277254        char *ret = NULL;
    278255
     
    286263unsigned long getconfiglu(char *key, char *ext)
    287264{
    288         STARTFUNC
    289265        char *ret = NULL;
    290266
     
    298274void delconfigtmpall()
    299275{
    300         STARTFUNC
    301276        dellisttmpall(config);
    302277}
     
    304279void delconfigtmp(char *key)
    305280{
    306         STARTFUNC
    307281        dellisttmp(config, key);
    308282}
     
    310284void delconfig(char *key)
    311285{
    312         STARTFUNC
    313286        status.writeconfig = 1;
    314287        dellist(config, key, 0);
     
    317290void freeconfig()
    318291{
    319         STARTFUNC
    320292        freelist(config);
    321293}
     
    323295int reloadconfig(char *filename)
    324296{
    325         STARTFUNC
    326297        int ret = 0;
    327298
  • titan/titan/copyfile.h

    r23095 r23206  
    44int countfiles(char* dirname, int* count, int first)
    55{
    6         STARTFUNC
    76        int ret = 0;
    87        DIR *d;
     
    8887int copyfilereal(char* from, char* to, struct copyfile* node, int flag)
    8988{
    90         STARTFUNC
    9189        int fdfrom = -1, fdto = -1, ret = 0, readret = 0, writeret = 0;
    9290        off64_t count = 0, len = 0;
     
    229227int copylink(char* from, char* to, struct copyfile* node, int flag)
    230228{
    231         STARTFUNC
    232229        int ret = 0;
    233230       
     
    282279int copyblk(char* from, char* to, struct copyfile* node, int flag)
    283280{
    284         STARTFUNC
    285281        int ret = 0;
    286282        struct stat64 s;
     
    325321int copychr(char* from, char* to, struct copyfile* node, int flag)
    326322{
    327         STARTFUNC
    328323        int ret = 0;
    329324        struct stat64 s;
     
    368363int copyfifo(char* from, char* to, struct copyfile* node, int flag)
    369364{
    370         STARTFUNC
    371365        int ret = 0;
    372366       
     
    403397int copydir(char* dirfrom, char* dirto, struct copyfile* node, int first, int flag)
    404398{
    405         STARTFUNC
    406399        DIR *d;
    407400        char* tmpstr = NULL, *tmpstr1 = NULL;
     
    661654int copyfile(char* from, char* to, struct copyfile* node, int flag)
    662655{
    663         STARTFUNC
    664656        char* tmpto = NULL, *tmpstr = NULL, *bname = NULL;
    665657        int ret = 1, fromtype = 0, totype = 0;
     
    726718void copyfilestruct(struct stimerthread* timernode, struct copyfile* node, int flag)
    727719{
    728         STARTFUNC
    729720        if(node != NULL)
    730721                copyfile(node->from, node->to, node, 0);
     
    733724void movefilestruct(struct stimerthread* timernode, struct copyfile* node, int flag)
    734725{
    735         STARTFUNC
    736726        if(node != NULL)
    737727                copyfile(node->from, node->to, node, 1);
     
    742732int screencopy(char* title, char* from, char* to, int flag)
    743733{
    744         STARTFUNC
    745734        int rcret = -1, count = 0, ret = 0, fromthread = 0, sleeptime = 2;
    746735        struct skin* copyfile = getscreen("copyfile");
  • titan/titan/crc32.h

    r23095 r23206  
    5555uint32_t dvbcrc32(const uint8_t *data, size_t len)
    5656{
    57         STARTFUNC
    5857        int i;
    5958        uint32_t crc = 0xffffffff;
  • titan/titan/defaults.h

    r23097 r23206  
    44void setdefaults()
    55{
    6         STARTFUNC
    76        int i = 0;
    87        char* tmpstr = NULL;
  • titan/titan/dir.h

    r23097 r23206  
    44void readlabelext(struct skin* label, char* filename, char* ext)
    55{
    6         STARTFUNC
    76        char *tmpstr = NULL, *tmpstr1 = NULL;
    87
     
    2726char* 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)
    2827{
    29         STARTFUNC
    3028        int rcret = 0;
    3129        struct skin* dir = NULL;
  • titan/titan/dirsort.h

    r23097 r23206  
    44int screendirsort()
    55{
    6         STARTFUNC
    76        int tmpsort = 0;
    87        int rcret = 0;
  • titan/titan/diseqcconfig.h

    r23097 r23206  
    44int changeuncommittedcmd(struct skin* cmdorder, char* type)
    55{
    6         STARTFUNC
    76        if(type == NULL || ostrcmp(type, "0") == 0)
    87        {
     
    2827void changediseqcmode(struct skin* committedcmd, struct skin* cmdorder, struct skin* uncommittedcmd, struct skin* rotorpos, struct skin* diseqcrepeat, char *type)
    2928{
    30         STARTFUNC
    3129        committedcmd->hidden = YES;
    3230        cmdorder->hidden = YES;
     
    5048void 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)
    5149{
    52         STARTFUNC
    5350        char* tmpstr = NULL, *tmpnr = NULL;
    5451        int i = 0;
     
    106103void screendiseqc(char* feshortname, char* diseqcnr)
    107104{
    108         STARTFUNC
    109105        int rcret = 0;
    110106        struct skin* diseqcscreen = getscreen("diseqcscreen");
     
    237233void screenownpos()
    238234{
    239         STARTFUNC
    240235        int rcret = 0;
    241236        struct skin* ownpos = getscreen("ownpos");
  • titan/titan/dmxdev.h

    r23129 r23206  
    1414struct dvbdev* dmxgetlast(int adapter)
    1515{
    16         STARTFUNC
    1716        struct dvbdev* node = dvbdev;
    1817        struct dvbdev* lastnode = NULL;
     
    3029struct dvbdev* dmxopen(struct dvbdev* fenode)
    3130{
    32         STARTFUNC
    3331        int fd = -1;
    3432
     
    6664int dmxopendirect(char *dmxdev)
    6765{
    68         STARTFUNC
    6966        int fd = -1;
    7067       
     
    8279void dmxclose(struct dvbdev* node, int fd)
    8380{
    84         STARTFUNC
    8581        if(node != NULL)
    8682        {
     
    9490int dmxstop(struct dvbdev* node)
    9591{
    96         STARTFUNC
    9792        if(node == NULL)
    9893        {
     
    112107int dmxstart(struct dvbdev* node)
    113108{
    114         STARTFUNC
    115109        if(node == NULL)
    116110        {
     
    130124int dmxsetbuffersize(struct dvbdev* node, unsigned long size)
    131125{
    132         STARTFUNC
    133126        if(node == NULL)
    134127        {
     
    152145int dmxsetfilter(struct dvbdev* node, int pid, int secnr, int flag)
    153146{
    154         STARTFUNC
    155147        struct dmx_sct_filter_params sctflt;
    156148
     
    382374int dmxaddpid(struct dvbdev* node, int pid)
    383375{
    384         STARTFUNC
    385376        if(node == NULL)
    386377        {
     
    412403int dmxremovepid(struct dvbdev* node, int pid)
    413404{
    414         STARTFUNC
    415405        if(node == NULL)
    416406        {
     
    442432int dmxgetstc(struct dvbdev* node, int64_t* stc)
    443433{
    444         STARTFUNC
    445434        struct dmx_stc dmxstc;
    446435
     
    469458int dmxsetsource(struct dvbdev* node, int source)
    470459{
    471         STARTFUNC
    472460        if(node == NULL)
    473461        {
     
    487475int dmxsetpesfilterfd(int fd, int pid, int input, int output, int pestype, int nostart)
    488476{
    489         STARTFUNC
    490477        struct dmx_pes_filter_params pesflt;
    491478        memset(&pesflt, 0, sizeof(pesflt));
     
    519506int dmxsetpesfilter(struct dvbdev* node, int pid, int input, int output, int pestype, int nostart)
    520507{
    521         STARTFUNC
    522508        if(node == NULL)
    523509        {
     
    530516int dmxgetdev()
    531517{
    532         STARTFUNC
    533518        int i, y, z, fd = -1, count = 0;
    534519        char *buf = NULL, *dmxdev = NULL;
  • titan/titan/download.h

    r23097 r23206  
    44int screendownload(char* title, char* host, char* page, int port, char* filename, char* auth, int timeout, int flag)
    55{
    6         STARTFUNC
    76        int rcret = -1, count = 0, ret = 0, fromthread = 0, sleeptime = 2;
    87        struct skin* download = getscreen("download");
  • titan/titan/dvb.h

    r23102 r23206  
    44int dvbwrite(int fd, unsigned char* buf, int count, int tout)
    55{
    6         STARTFUNC
    76        struct timeval timeout;
    87        int ret = 0, usec = 0, sec = 0, tmpcount = count;
     
    5655int dvbreadfd(int fd, unsigned char *buf, int pos, int count, int tout, int flag)
    5756{
    58         STARTFUNC
    5957        struct timeval timeout;
    6058        int ret = 0, usec = 0, sec = 0;
     
    123121int dvbread(struct dvbdev* node, unsigned char *buf, int pos, int count, int tout)
    124122{
    125         STARTFUNC
    126123        if(node == NULL) return -2;
    127124        return dvbreadfd(node->fd, buf, pos, count, tout, 0);
     
    130127int dvbfindpmtpid(int fd, int16_t *pmtpid, int *serviceid, int tssize)
    131128{
    132         STARTFUNC
    133129        off_t pos = 0;
    134130        int left = 5 * 1024 * 1024;
     
    198194int dvbgetpmtpid(unsigned char *buf, int serviceid)
    199195{
    200         STARTFUNC
    201196        if(buf == NULL) return 1;
    202197
     
    223218char* dvbgethbbtvurl(unsigned char* buf)
    224219{
    225         STARTFUNC
    226220        //int seclen = 0;
    227221        int pos = 0;
     
    313307unsigned char* dvbget(struct dvbdev* fenode, int pid, int type, int secnr, int timeout)
    314308{
    315         STARTFUNC
    316309        int length = -1;
    317310        struct dvbdev* dmxnode = NULL;
     
    358351unsigned char* dvbgetait(struct dvbdev* fenode, int pid, int secnr, int timeout)
    359352{
    360         STARTFUNC
    361353        return dvbget(fenode, pid, 14, secnr, timeout);
    362354}
     
    364356unsigned char* dvbgetsdt(struct dvbdev* fenode, int secnr, int timeout)
    365357{
    366         STARTFUNC
    367358        return dvbget(fenode, 0x11, 11, secnr, timeout);
    368359}
     
    370361unsigned char* dvbgetpat(struct dvbdev* fenode, int timeout)
    371362{
    372         STARTFUNC
    373363        return dvbget(fenode, 0, 1, 0, timeout);
    374364}
     
    376366unsigned char* dvbgetnit(struct dvbdev* fenode, int secnr, int timeout)
    377367{
    378         STARTFUNC
    379368        return dvbget(fenode, 0x10, 4, secnr, timeout);
    380369}
     
    384373unsigned char* dvbgetpmt(struct dvbdev* fenode, unsigned char* patbuf, int serviceid, int16_t* pmtpid, int* pmtlen, int timeout, int flag)
    385374{
    386         STARTFUNC
    387375        int length = -1, i;
    388376        struct dvbdev* dmxnode = NULL;
     
    470458int dvbgetinfo(unsigned char* pmtbuf, struct channel* chnode)
    471459{
    472         STARTFUNC
    473460        int i, sectionlength, programinfolength, esinfolength, ret = 0;
    474461        unsigned short pos, descriptortag, descriptorlength;
     
    722709void dvbgetpmtthread()
    723710{
    724         STARTFUNC
    725711        int len = 0, change = 0;
    726712        unsigned char* pmtbuf = NULL;
     
    781767time_t dvbconvertdate(unsigned char *buf, int flag)
    782768{
    783         STARTFUNC
    784769        int i = 0;
    785770        long mjd;
     
    822807int dvbgetdate(time_t* time, int timeout)
    823808{
    824         STARTFUNC
    825809        int length = -1, sectionlength;
    826810        struct dvbdev* dmxnode = NULL;
     
    880864int getpts(int fd, off64_t offset, int spid, int left, unsigned long long *pts, off64_t *findpos, int dir, int tssize)
    881865{
    882         STARTFUNC
    883866        int first = 1;
    884867       
     
    10631046unsigned long long fixuppts(unsigned long long start, unsigned long long end)
    10641047{
    1065         STARTFUNC
    10661048                //pts can wrap to 0 in the middle
    10671049                if(end < start)
     
    10721054unsigned long long gettsbitrate(unsigned long long start, unsigned long long end, off64_t startfindpos, off64_t endfindpos)
    10731055{
    1074         STARTFUNC
    10751056        unsigned long long bitrate = 0;
    10761057        unsigned long long diff = 0;
     
    10881069int gettsinfo(int fd, unsigned long long* lenpts, unsigned long long* startpts, unsigned long long* endpts, unsigned long long* bitrate, int tssize)
    10891070{
    1090         STARTFUNC
    10911071        int ret = 0;
    10921072        unsigned long long start = 0, end = 0;
     
    11191099int getptspos(int fd, off64_t startfind, unsigned long long* pts, off64_t* findpos, int dir, int tssize)
    11201100{
    1121         STARTFUNC
    11221101        int ret = 0;
    11231102        unsigned long long pts1 = 0;
     
    11361115int findcodec(unsigned char* buf, int len, int tssize)
    11371116{
    1138         STARTFUNC
    11391117        int i,i1;
    11401118        int rc = 2;
     
    11611139int findframeHD(unsigned char* buf, int len, int start, int tssize, int flag)
    11621140{
    1163         STARTFUNC
    11641141        int position = -1;
    11651142        int i = 0;
     
    12221199//flag=2 -> ende Frame
    12231200int findframe(unsigned char* buf, int len, int start, int tssize, int flag)
    1224 {
    1225         STARTFUNC
    1226        
     1201{       
    12271202        //#define       SEQ_START_CODE          0x000001b3
    12281203        //#define GOP_START_CODE          0x000001b8
     
    12811256int findandposrew(int fd, int tssize, int skip)
    12821257{
    1283         STARTFUNC
    12841258        int i;
    12851259        int ret = 0;
  • titan/titan/dvbdev.h

    r23097 r23206  
    66struct dvbdev* adddvbdev(char *dev, int adapter, int devnr, int fd, int type, struct dvb_frontend_info* feinfo, struct dvbdev* last, int flag)
    77{
    8         STARTFUNC
    98        struct dvbdev *newnode = NULL, *node = NULL;
    109        char* tmp = NULL, *tmp1 = NULL;
     
    9998void deldvbdev(char *dev, int flag)
    10099{
    101         STARTFUNC
    102100        struct dvbdev *node = NULL, *prev = NULL;
    103101
     
    158156void freedvbdev(int flag)
    159157{
    160         STARTFUNC
    161158        struct dvbdev *node = NULL, *prev = NULL;
    162159
  • titan/titan/dvdplayer.h

    r23097 r23206  
    1616int dvd_calc_y_fbscreen()
    1717{
    18         STARTFUNC
    1918        int y_offset = 0;
    2019        int dvd_aspect = 0;
     
    5049int dvd_calc_x_fbscreen()
    5150{
    52         STARTFUNC
    5351        int x_offset = 0;
    5452        int dvd_aspect = 0;
     
    8381int dvdblit()
    8482{
    85         STARTFUNC
    8683#ifdef DVDPLAYER
    8784        int x_offset = dvd_calc_x_fbscreen();
     
    151148void dvdchangevideo()
    152149{
    153         STARTFUNC
    154150#ifdef DVDPLAYER
    155151        char* tmpstr = NULL;
     
    188184void dvdcleanup()
    189185{
    190         STARTFUNC
    191186#ifdef DVDPLAYER
    192187        ddvdconfig = NULL;
     
    205200void dvdthread()
    206201{
    207         STARTFUNC
    208202        debug(333, "dvd thread start");
    209203
     
    223217int dvdstart(char* filename)
    224218{
    225         STARTFUNC
    226219#ifdef DVDPLAYER
    227220        char* tmpstr = NULL;
     
    296289int dvdmenuopen()
    297290{
    298         STARTFUNC
    299291#ifdef DVDPLAYER
    300292        return dvdmenu;
     
    306298void dvdgotmessage()
    307299{
    308         STARTFUNC
    309300#ifdef DVDPLAYER
    310301        if(ddvdconfig == NULL) return;
     
    467458int dvdisplaying()
    468459{
    469         STARTFUNC
    470460#ifdef DVDPLAYER
    471461        if(dvdtimerthread == NULL)
     
    477467void dvdafterend()
    478468{
    479         STARTFUNC
    480469}
    481470
    482471int dvdstop()
    483472{
    484         STARTFUNC
    485473#ifdef DVDPLAYER
    486474        debug(333, "dvd stop");
     
    503491int dvdgetnumaudiotracks()
    504492{
    505         STARTFUNC
    506493        unsigned int i = 0;
    507494
     
    516503int dvdgetcuraudiotrack()
    517504{
    518         STARTFUNC
    519505        int audioid = -1;
    520506
     
    532518int dvdchangeaudiotrack(unsigned int i)
    533519{
    534         STARTFUNC
    535520#ifdef DVDPLAYER
    536521        if(ddvdconfig != NULL)
     
    543528char* dvdgetaudiotrackinfo(unsigned int audioid)
    544529{
    545         STARTFUNC
    546530        char* tmpstr = NULL;
    547531
     
    583567int dvdgetnumsputracks()
    584568{
    585         STARTFUNC
    586569        unsigned int i = 0;
    587570
     
    596579int dvdgetcursputrack()
    597580{
    598         STARTFUNC
    599581        int spuid = -1;
    600582
     
    611593int dvdchangesputrack(unsigned int i)
    612594{
    613         STARTFUNC
    614595#ifdef DVDPLAYER
    615596        if(ddvdconfig != NULL)
     
    622603char* dvdgetsputrackinfo(unsigned int spuid)
    623604{
    624         STARTFUNC
    625605        char* tmpstr = NULL;
    626606
     
    641621int dvdgetangelinfo()
    642622{
    643         STARTFUNC
    644623#ifdef DVDPLAYER
    645624        int current = 0, num = 0;
     
    655634int dvdff(int speed)
    656635{
    657         STARTFUNC
    658636#ifdef DVDPLAYER
    659637        if(ddvdconfig == NULL) return 1;
     
    669647int dvdfr(int speed)
    670648{
    671         STARTFUNC
    672649#ifdef DVDPLAYER
    673650        if(ddvdconfig == NULL) return 1;
     
    683660int dvdpause()
    684661{
    685         STARTFUNC
    686662        debug(333, "dvd pause");
    687663
     
    696672int dvdplay()
    697673{
    698         STARTFUNC
    699674        debug(333, "dvd play");
    700675
     
    709684int dvdcontinue()
    710685{
    711         STARTFUNC
    712686        return dvdplay();
    713687}
     
    715689int dvdgetinfo(int flag)
    716690{
    717         STARTFUNC
    718691#ifdef DVDPLAYER
    719692        if(ddvdconfig == NULL) return 1;
     
    759732int dvdsetfb()
    760733{
    761         STARTFUNC
    762734#ifdef DVDPLAYER
    763735        int width = 720, height = 576, colbytes = 4;
     
    780752unsigned long long dvdgetlength()
    781753{
    782         STARTFUNC
    783754        unsigned long long len = 0;
    784755
     
    801772int dvdsetresume()
    802773{
    803         STARTFUNC
    804774#ifdef DVDPLAYER
    805775        if(ddvdconfig != NULL)
     
    814784int dvdgetresume()
    815785{
    816         STARTFUNC
    817786#ifdef DVDPLAYER
    818787        if(ddvdconfig != NULL)
     
    827796int dvdseek(int sec)
    828797{
    829         STARTFUNC
    830798#ifdef DVDPLAYER
    831799        if(ddvdconfig != NULL)
     
    840808unsigned long long dvdgetpts()
    841809{
    842         STARTFUNC
    843810        unsigned long long pts = 0;
    844811
     
    862829int dvdseektitle(int title)
    863830{
    864         STARTFUNC
    865831        debug(333, "seek title %d", title);
    866832
     
    875841int dvdseekchapter(int chapter)
    876842{
    877         STARTFUNC
    878843        debug(333, "seek chapter %d", chapter);
    879844
     
    888853int dvdkeypress(int key)
    889854{
    890         STARTFUNC
    891855#ifdef DVDPLAYER
    892856        if(ddvdconfig == NULL) return 1;
  • titan/titan/dvrdev.h

    r23097 r23206  
    44struct dvbdev* dvropen(struct dvbdev* fenode)
    55{
    6         STARTFUNC
    76        int fd = -1;
    87        struct dvbdev* node = dvbdev;
     
    3736int dvropendirect(char *dvrdev)
    3837{
    39         STARTFUNC
    4038        int fd = -1;
    4139
     
    5149void dvrclose(struct dvbdev* node, int fd)
    5250{
    53         STARTFUNC
    5451        if(node != NULL)
    5552        {
     
    6360int dvrgetdev()
    6461{
    65         STARTFUNC
    6662        int i, y, fd = -1, count = 0;
    6763        char *buf = NULL, *dvrdev = NULL;
Note: See TracChangeset for help on using the changeset viewer.