Changeset 38723


Ignore:
Timestamp:
09/11/16 17:59:53 (7 years ago)
Author:
obi
Message:

change ci caid names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/moduleconfig.h

    r34050 r38723  
    153153                                tmp->type = CHOICEBOX;
    154154
     155                                // show caid in hex
     156                                int caid_int = 0;
     157                                char* caid = ostrcat(ret[i].part, NULL, 0, 0);
     158                                sscanf(caid, "%X", &caid_int);
     159                                caid_int = strtol(caid , NULL, 16);
     160                                free(caid), caid = NULL;
     161
     162                                char* caid_hex = malloc(50);
     163                                if(caid_hex != NULL)
     164                                        sprintf(caid_hex, "%d", caid_int);
     165
    155166                                if(checkdoublecaid(dvbnode, ret[i].part) == 1)
    156167                                {
    157168                                        tmpstr = ostrcat(tmpstr, ret[i].part, 1, 0);
    158                                         tmpstr = ostrcat(tmpstr, " (", 1, 0);
     169                                        if(caid_hex != NULL)
     170                                        {
     171                                                tmpstr = ostrcat(tmpstr, " (", 1, 0);
     172                                                tmpstr = ostrcat(tmpstr, caid_hex, 1, 0);
     173                                                tmpstr = ostrcat(tmpstr, ") (", 1, 0);
     174                                        }
     175                                        else
     176                                                tmpstr = ostrcat(tmpstr, " (", 1, 0);
     177
    159178                                        tmpstr = ostrcat(tmpstr, _("double"), 1, 0);
    160179                                        tmpstr = ostrcat(tmpstr, ")", 1, 0);
    161180                                }
    162181                                else
     182                                {
    163183                                        tmpstr = ostrcat(tmpstr, ret[i].part, 1, 0);
     184                                        if(caid_hex != NULL)
     185                                        {
     186                                                tmpstr = ostrcat(tmpstr, " (", 1, 0);
     187                                                tmpstr = ostrcat(tmpstr, caid_hex, 1, 0);
     188                                                tmpstr = ostrcat(tmpstr, ")", 1, 0);
     189                                        }
     190                                }
     191                                free(caid_hex);
    164192
    165193                                changetext(tmp, tmpstr);
Note: See TracChangeset for help on using the changeset viewer.