Changeset 23702


Ignore:
Timestamp:
09/13/13 08:43:12 (10 years ago)
Author:
nit
Message:

[titan] cleanup

Location:
titan/titan
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/textbox.h

    r20654 r23702  
    77int textbox(char* title, char* text, char* b1, int rc1, char* b2, int rc2, char* b3, int rc3, char* b4, int rc4, int width, int height, int timeout, int flag)
    88{
    9         debug(1000, "in");
    109        int rcret = -1, fromthread = 0;
    1110        struct skin* messagebox = getscreen("messagebox");
     
    146145        changetitle(messagebox, NULL);
    147146        changetext(textbox, NULL);
    148         debug(1000, "out");
    149147
    150148        m_unlock(&status.textboxmutex, 22);
  • titan/titan/textinput.h

    r20654 r23702  
    44char* textinput(char* title, char* text)
    55{
    6         debug(1000, "in");
    76        int rcret = -1, fromthread = 0, height = 0;
    87        struct skin* textinput = getscreen("textinput");
     
    6968
    7069        textinput->height = height;
    71         debug(1000, "out");
    7270        return ret;
    7371}
  • titan/titan/textinputhist.h

    r20184 r23702  
    110110char* textinputhist(char* title, char* text, char* histname)
    111111{
    112         debug(1000, "in");
    113112        int rcret = -1, fromthread = 0, height = 0;
    114113        struct skin* textinputhist = getscreen("textinputhist");
     
    229228        textinputhist->height = height;
    230229        delmarkedscreennodes(textinputhist, 1);
    231         debug(1000, "out");
    232         printf("ret: %s\n",ret);
    233230        return ret;
    234231}
  • titan/titan/timerthread.h

    r23185 r23702  
    44struct stimerthread* gettimerbythread(pthread_t thread)
    55{
    6         //debug(1000, "in");
    76        struct stimerthread *node = NULL;
    87
     
    1413                {
    1514                        m_unlock(&status.timerthreadmutex, 6);
    16                         //debug(1000, "out");
    1715                        return node;
    1816                }
     
    2220
    2321        m_unlock(&status.timerthreadmutex, 6);
    24         //debug(1000, "out");
    2522        return NULL;
    2623}
     
    2825struct stimerthread* gettimer(struct stimerthread* timernode)
    2926{
    30         //debug(1000, "in");
    3127        struct stimerthread *node = NULL;
    3228
     
    3834                {
    3935                        m_unlock(&status.timerthreadmutex, 6);
    40                         //debug(1000, "out");
    4136                        return node;
    4237                }
     
    5247struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last)
    5348{
    54         debug(1000, "in");
    5549        struct stimerthread *newnode = NULL, *prev = NULL, *node = NULL;
    5650
     
    9387
    9488        m_unlock(&status.timerthreadmutex, 6);
    95         debug(1000, "out");
    9689        return newnode;
    9790}
     
    10194void deltimer(struct stimerthread *tnode, int flag)
    10295{
    103         debug(1000, "in");
    10496        int i = 0;
    10597        void* threadstatus;
     
    146138
    147139        if(flag == 0) m_unlock(&status.timerthreadmutex, 6);
    148         debug(1000, "out");
    149140}
    150141
     
    153144void freetimer(int flag)
    154145{
    155         debug(1000, "in");
    156146        struct stimerthread *node = stimerthread, *prev = stimerthread;
    157147
     
    168158                }
    169159        }
    170         debug(1000, "out");
    171160}
    172161
    173162void* timerthreadsubfunc(void *param)
    174163{
    175         debug(1000, "in");
    176164        int count = 0;
    177165        struct stimerthread* node = (struct stimerthread*)param;
     
    179167        if(param == NULL)
    180168        {
    181                 debug(1000, "out -> NULL detect");
     169                err("NULL detect");
    182170                pthread_exit(NULL);
    183171        }
     
    215203        node->status = DEACTIVE;
    216204
    217         debug(1000, "out");
    218205        pthread_exit(NULL);
    219206}
     
    221208void* timerthreadfunc(void *param)
    222209{
    223         debug(1000, "in");
    224210        int ret = 0;
    225211        struct stimerthread* node = NULL;
     
    276262        status.timerthreadstatus = DEACTIVE;
    277263
    278         debug(1000, "out");
    279264        pthread_exit(NULL);
    280265}
  • titan/titan/timezone.h

    r16511 r23702  
    44int readtimezone(struct skin* timezone, struct skin* listbox)
    55{
    6         debug(1000, "in");
    76        FILE *fd = NULL;
    87        char *fileline = NULL, *filename = NULL;
     
    6766        fclose(fd);
    6867        free(fileline);
    69         debug(1000, "out");
    7068        return 0;
    7169}
  • titan/titan/titan.c

    r23275 r23702  
    278278void oshutdown(int exitcode, int flag)
    279279{
    280         debug(1000, "in");
    281280        struct dvbdev* dvbnode = dvbdev;
    282281        struct service* servicenode = service;
     
    489488        }
    490489
    491         debug(1000, "out");
    492490        exit(exitcode);
    493491}
     
    495493int main(int argc, char *argv[])
    496494{
    497         debug(1000, "in");
    498495        int ret = 0, serviceret = 0, skincheck = 0;
    499496        char* tmpstr = NULL;
     
    10701067                free(mmapfb); mmapfb=NULL;
    10711068        }
    1072         debug(1000, "out");
    10731069        oshutdown(1, 1);
    10741070        return 0;
Note: See TracChangeset for help on using the changeset viewer.