Changeset 32345


Ignore:
Timestamp:
01/11/15 23:19:41 (8 years ago)
Author:
tobayer
Message:

[titan] add getredbutton and getbluebutton

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r32164 r32345  
    261261        if(ostrcmp("getpowerofftime", value) == 0)
    262262                return &getpowerofftime;
     263        if(ostrcmp("getredbutton", value) == 0)
     264                return &getredbutton;
     265        if(ostrcmp("getbluebutton", value) == 0)
     266                return &getbluebutton;
    263267
    264268        return 0;
  • titan/titan/skinfunc.h

    r32202 r32345  
    13261326}
    13271327
     1328char* getredbutton(struct skin* node)
     1329{
     1330        char* tmpstr = getconfig("redkey", NULL);
     1331
     1332        if(tmpstr == NULL) tmpstr = ostrcat(tmpstr, "Extensions List", 0, 0);
     1333
     1334        debug(10, "redbutton=%s", tmpstr);
     1335
     1336        return tmpstr;
     1337}
     1338
     1339char* getbluebutton(struct skin* node)
     1340{
     1341        char* tmpstr = getconfig("bluekey", NULL);
     1342
     1343        if(tmpstr == NULL) tmpstr = ostrcat(tmpstr, "TV / Radio Switch", 0, 0);
     1344
     1345        debug(10, "bluebutton=%s", tmpstr);
     1346
     1347        return tmpstr;
     1348}
     1349
    13281350#endif
Note: See TracChangeset for help on using the changeset viewer.