Changeset 24056


Ignore:
Timestamp:
10/04/13 14:20:24 (9 years ago)
Author:
nit
Message:

[titan] add new plugindir system

Location:
titan/plugins
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/autotimer/autotimer.c

    r23790 r24056  
    375375        char* tmpstr = NULL;
    376376        pluginaktiv = 1;
    377         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/autotimer/skin.xml", 0, 0);
     377        tmpstr = createpluginpath("/autotimer/skin.xml", 0);
    378378        readscreen(tmpstr, 120, 1);
    379379        free(tmpstr); tmpstr = NULL;
  • titan/plugins/callmonitor1/callmon_main.h

    r23633 r24056  
    99        char* tmpstr = NULL;
    1010       
    11         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/fritzbox_msg_new.sh stop", 0, 0);
     11        tmpstr = createpluginpath("/callmonitor1/fritzbox_msg_new.sh", 0);
     12        tmpstr = ostrcat(tmpstr, " stop", 1, 0);
    1213        system(tmpstr);
    1314        free(tmpstr); tmpstr = NULL;
     
    1819                sleep(1);
    1920       
    20         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/fritzbox_msg_new.sh start", 0, 0);
     21        tmpstr = createpluginpath("/callmonitor1/fritzbox_msg_new.sh", 0);
     22        tmpstr = ostrcat(tmpstr, " start", 1, 0);
    2123        system(tmpstr);
    2224        free(tmpstr); tmpstr = NULL;
     
    4648        struct clist *myconfig[LISTHASHSIZE] = {NULL};
    4749        char* callconf = NULL;
    48         callconf = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/callmon.conf", 0, 0);
     50        callconf = createpluginpath("/callmonitor1/callmon.conf", 0);
    4951        readconfig(callconf, myconfig);
    5052               
     
    173175                if(hgreen == 1 || hblue == 1)
    174176                {       
    175                         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/fritzbox_msg_new.sh stop", 0, 0);
     177                        tmpstr = createpluginpath("/callmonitor1/fritzbox_msg_new.sh", 0);
     178                        tmpstr = ostrcat(tmpstr, " stop", 1, 0);
    176179                        system(tmpstr);
    177180                        free(tmpstr); tmpstr = NULL;
     
    200203                        if(hblue == 1 && ostrcmp(getlist(myconfig, "usePhoneBook", NULL), "1")  == 0)
    201204                        {
    202                                 tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/fritzbox_msg_new.sh loadPhoneBook", 0, 0);
     205                                tmpstr = createpluginpath("/callmonitor1/fritzbox_msg_new.sh", 0);
     206                                tmpstr = ostrcat(tmpstr, " loadPhoneBook", 1, 0);
    203207                                system(tmpstr);
    204208                                free(tmpstr); tmpstr = NULL;
  • titan/plugins/callmonitor1/callmonitor1.c

    r17097 r24056  
    2121        coldstart = 1;
    2222       
    23         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/skin.xml", 0, 0);
     23        tmpstr = createpluginpath("/callmonitor1/skin.xml", 0);
    2424        readscreen(tmpstr, 121, 1);
    2525        free(tmpstr); tmpstr = NULL;
     
    3636        char* tmpstr = NULL;
    3737
    38         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/callmonitor1/fritzbox_msg_new.sh stop", 0, 0);
     38        tmpstr = createpluginpath("/callmonitor1/fritzbox_msg_new.sh", 0);
     39        tmpstr = ostrcat(tmpstr, " stop", 1, 0);
    3940        system(tmpstr);
    4041        pluginaktiv = 0;
  • titan/plugins/dlna/dlna.c

    r17097 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/dlna/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/dlna/skin.xml", 0);
    1919        readscreen(tmpstr, 207, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/facebook/facebook.c

    r17407 r24056  
    1717        char* tmpstr = NULL;
    1818
    19         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/facebook/skin.xml", 0, 0);
     19        tmpstr = createpluginpath("/facebook/skin.xml", 0);
    2020        readscreen(tmpstr, 242, 1);
    2121        free(tmpstr); tmpstr = NULL;
  • titan/plugins/filemanager/filemanager.c

    r22562 r24056  
    1919        char* tmpstr = NULL;
    2020       
    21         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/filemanager/skin.xml", 0, 0);
     21        tmpstr = createpluginpath("/filemanager/skin.xml", 0);
    2222        readscreen(tmpstr, 240, 1);
    2323        free(tmpstr); tmpstr = NULL;
  • titan/plugins/gmediarender/gmediarender.c

    r18894 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/gmediarender/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/gmediarender/skin.xml", 0);
    1919        readscreen(tmpstr, 279, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/imdb/imdb.c

    r23090 r24056  
    3030
    3131        pluginmenu = child;
    32         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/imdb/skin.xml", 0, 0);
     32        tmpstr = createpluginpath("/imdb/skin.xml", 0);
    3333        readscreen(tmpstr, 201, 1);
    3434        free(tmpstr); tmpstr = NULL;
  • titan/plugins/imdbapi/imdbapi.c

    r23090 r24056  
    3030
    3131        pluginmenu = child;
    32         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/imdbapi/skin.xml", 0, 0);
     32        tmpstr = createpluginpath("/imdbapi/skin.xml", 0);
    3333        readscreen(tmpstr, 201, 1);
    3434        free(tmpstr); tmpstr = NULL;
  • titan/plugins/instar/instar.c

    r17097 r24056  
    1818void init(void)
    1919{
     20        char* tmpstr = NULL;
    2021        pluginaktiv = 1;
    21         char* tmpstr = NULL;
    22         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/instar/skin.xml", 0, 0);
     22       
     23        tmpstr = createpluginpath("/instar/skin.xml", 0);
    2324        readscreen(tmpstr, 118, 1);
     25        free(tmpstr); tmpstr = NULL;
    2426
    2527        debug(10, "INSTAR Plugin loadet !!!");
  • titan/plugins/instar/instar.h

    r18514 r24056  
    261261        int rcode = 0;
    262262
    263         instarconf = ostrcat(getconfig("pluginpath", NULL), "/instar/instar.conf", 0, 0);
     263        instarconf = createpluginpath("/instar/instar.conf", 0);
    264264        readconfig(instarconf, myconfig);
    265265       
  • titan/plugins/keylock/keylock.c

    r17097 r24056  
    5151        pluginaktiv = 1;
    5252       
    53         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/keylock/skin.xml", 0, 0);
     53        tmpstr = createpluginpath("/keylock/skin.xml", 0);
    5454        readscreen(tmpstr, 117, 1);
    5555        free(tmpstr); tmpstr = NULL;
  • titan/plugins/lcdpearl1/lcdpearl1.c

    r21594 r24056  
    3232{
    3333        int count = 0;
    34         char* startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdpearl1/start.sh", 0, 0);
     34        char* startlcd = createpluginpath("/lcdpearl1/start.sh", 0);
    3535
    3636        if(LCD_Pearl1thread == NULL)
     
    4747                }
    4848        }
    49         free(startlcd);startlcd=NULL;   
     49        free(startlcd); startlcd=NULL; 
    5050}
    5151
     
    112112        int put = 0, typemerk = 0, type = 0;
    113113        int standby = 0;
    114         char* fbgrab = ostrcat(getconfig("pluginpath", NULL), "/lcdpearl1/fbgrab -f /tmp/titanlcd.raw -w 320 -h 240 -b 32 -i /tmp/.titanlcd1.png > /dev/null", 0, 0);
    115         char* startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdpearl1/start.sh", 0, 0);
     114       
     115        char* fbgrab = createpluginpath("/lcdpearl1/fbgrab", 0);
     116        fbgrab = ostrcat(fbgrab, " -f /tmp/titanlcd.raw -w 320 -h 240 -b 32 -i /tmp/.titanlcd1.png > /dev/null", 1, 0);
     117       
     118        char* startlcd = createpluginpath("/lcdpearl1/start.sh", 0);
    116119
    117120        unsigned long long int pos = 0, len = 0, reverse = 0;
     
    399402        {
    400403                char* tmpstr = NULL;
    401                 tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
    402                 tmpstr = ostrcat(tmpstr, "/lcdpearl1/start.png", 1, 0);
     404               
     405                tmpstr = createpluginpath("/lcdpearl1/start.png", 0);
     406                tmpstr = ostrcat("cp ", tmpstr, 0, 1);
    403407                tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.png", 1, 0);
     408               
    404409                system(tmpstr);
    405410                free(tmpstr); tmpstr=NULL;
     
    429434        firststart = 1;
    430435       
    431         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/lcdpearl1/skin.xml", 0, 0);
     436        tmpstr = createpluginpath("/lcdpearl1/skin.xml", 0);
    432437        readscreen(tmpstr, 116, 1);
    433438        free(tmpstr); tmpstr = NULL;
  • titan/plugins/lcdsamsung/lcdsamsung.c

    r21594 r24056  
    3434       
    3535        if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf75h") == 0)
    36                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 1", 0, 0);
     36        {
     37                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     38                startlcd = ostrcat(startlcd, " 1", 1, 0);
     39        }
    3740        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf83h") == 0)
    38                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 6", 0, 0);
     41        {
     42                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     43                startlcd = ostrcat(startlcd, " 6", 1, 0);
     44        }
    3945        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf87hold") == 0)
    40                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 3", 0, 0);
     46        {
     47                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     48                startlcd = ostrcat(startlcd, " 3", 1, 0);
     49        }
    4150        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf87h") == 0)
    42                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 2", 0, 0);
     51        {
     52                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     53                startlcd = ostrcat(startlcd, " 2", 1, 0);
     54        }
    4355        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf105p") == 0)
    44                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 5", 0, 0);
     56        {
     57                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     58                startlcd = ostrcat(startlcd, " 5", 1, 0);
     59        }
    4560        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf107h") == 0)
    46                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 4", 0, 0);
     61        {
     62                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     63                startlcd = ostrcat(startlcd, " 4", 1, 0);
     64        }
    4765        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf72h") == 0)
    48                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 7", 0, 0);
     66        {
     67                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     68                startlcd = ostrcat(startlcd, " 7", 1, 0);
     69        }
    4970        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf85h") == 0)
    50                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 8", 0, 0);
     71        {
     72                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     73                startlcd = ostrcat(startlcd, " 8", 1, 0);
     74        }
    5175        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf85p") == 0)
    52                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 9", 0, 0);
     76        {
     77                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     78                startlcd = ostrcat(startlcd, " 9", 1, 0);
     79        }
    5380        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "none") == 0)
    54                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 99", 0, 0);
     81        {
     82                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     83                startlcd = ostrcat(startlcd, " 99", 1, 0);
     84        }
    5585        else
    56                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 2", 0, 0);
     86        {
     87                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     88                startlcd = ostrcat(startlcd, " 2", 1, 0);
     89        }
    5790       
    5891       
     
    255288               
    256289        if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf75h") == 0)
    257                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 1", 0, 0);
     290        {
     291                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     292                startlcd = ostrcat(startlcd, " 1", 1, 0);
     293        }
    258294        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf83h") == 0)
    259                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 6", 0, 0);
     295        {
     296                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     297                startlcd = ostrcat(startlcd, " 6", 1, 0);
     298        }
    260299        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf87hold") == 0)
    261                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 3", 0, 0);
     300        {
     301                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     302                startlcd = ostrcat(startlcd, " 3", 1, 0);
     303        }
    262304        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf87h") == 0)
    263                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 2", 0, 0);
     305        {
     306                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     307                startlcd = ostrcat(startlcd, " 2", 1, 0);
     308        }
    264309        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf105p") == 0)
    265                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 5", 0, 0);
     310        {
     311                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     312                startlcd = ostrcat(startlcd, " 5", 1, 0);
     313        }
    266314        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf107h") == 0)
    267                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 4", 0, 0);
     315        {
     316                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     317                startlcd = ostrcat(startlcd, " 4", 1, 0);
     318        }
    268319        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf72h") == 0)
    269                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 7", 0, 0);
     320        {
     321                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     322                startlcd = ostrcat(startlcd, " 7", 1, 0);
     323        }
    270324        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf85h") == 0)
    271                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 8", 0, 0);
     325        {
     326                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     327                startlcd = ostrcat(startlcd, " 8", 1, 0);
     328        }
    272329        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "spf85p") == 0)
    273                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 9", 0, 0);
     330        {
     331                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     332                startlcd = ostrcat(startlcd, " 9", 1, 0);
     333        }
    274334        else if(ostrcmp(getconfig("lcd_samsung_plugin_type", NULL), "none") == 0)
    275                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 99", 0, 0);
     335        {
     336                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     337                startlcd = ostrcat(startlcd, " 99", 1, 0);
     338        }
    276339        else
    277                 startlcd = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/start.sh 2", 0, 0);
     340        {
     341                startlcd = createpluginpath("/lcdsamsung/start.sh", 0);
     342                startlcd = ostrcat(startlcd, " 2", 1, 0);
     343        }
    278344       
    279345       
     
    408474                                else
    409475                                {
    410                                         tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
    411                                         tmpstr = ostrcat(tmpstr, "/lcdsamsung/standby.jpg", 1, 0);
    412                                         tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.jpg", 1, 0);
     476                                        tmpstr = createpluginpath("/lcdsamsung/standby.jpg", 0);
     477                                        tmpstr = ostrcat("cp ", tmpstr, 0, 1);
     478                                        tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.png", 1, 0);
    413479                                        system(tmpstr);
    414480                                        free(tmpstr); tmpstr=NULL;
    415481                                        sleep(3);
    416                                         tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
    417                                         tmpstr = ostrcat(tmpstr, "/lcdsamsung/black.jpg", 1, 0);
    418                                         tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.jpg", 1, 0);
     482                                       
     483                                        tmpstr = createpluginpath("/lcdsamsung/black.jpg", 0);
     484                                        tmpstr = ostrcat("cp ", tmpstr, 0, 1);
     485                                        tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.png", 1, 0);
    419486                                        system(tmpstr);
    420487                                        sleep(2);
     
    796863        {
    797864                char* tmpstr = NULL;
    798                 tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
    799                 tmpstr = ostrcat(tmpstr, "/lcdsamsung/start.jpg", 1, 0);
    800                 tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.jpg", 1, 0);
     865               
     866                tmpstr = createpluginpath("/lcdsamsung/start.png", 0);
     867                tmpstr = ostrcat("cp ", tmpstr, 0, 1);
     868                tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.png", 1, 0);
    801869                system(tmpstr);
    802870                free(tmpstr); tmpstr=NULL;
     
    822890        firststart = 1;
    823891       
    824         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/lcdsamsung/skin.xml", 0, 0);
     892        tmpstr = createpluginpath("/lcdsamsung/skin.xml", 0);
    825893        readscreen(tmpstr, 119, 1);
    826894        free(tmpstr); tmpstr = NULL;
    827         tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
    828         tmpstr = ostrcat(tmpstr, "/lcdsamsung/black.jpg", 1, 0);
     895       
     896        tmpstr = createpluginpath("/lcdsamsung/black.jpg", 0);
     897        tmpstr = ostrcat("cp ", tmpstr, 0, 1);
    829898        tmpstr = ostrcat(tmpstr, " /tmp/fbreadstop.jpg", 1, 0);
     899               
    830900        system(tmpstr);
    831901        free(tmpstr); tmpstr = NULL;
     
    835905        if(ostrcmp(tmpstr, "yes") == 0)
    836906                LCD_Samsung1_main();
    837         tmpstr=NULL;
     907        tmpstr = NULL;
    838908}
    839909
  • titan/plugins/mboxinfo/mboxinfo.c

    r17097 r24056  
    1515        char* tmpstr = NULL;
    1616
    17         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/mboxinfo/skin.xml", 0, 0);
     17        tmpstr = createpluginpath("/mboxinfo/skin.xml", 0);
    1818        readscreen(tmpstr, 194, 1);
    1919        free(tmpstr); tmpstr = NULL;
  • titan/plugins/mc/mc_main.h

    r21229 r24056  
    133133
    134134        char* tmpstr = NULL;
    135         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/mc/skin.xml", 0, 0);
     135        tmpstr = createpluginpath("/mc/skin.xml", 0);
    136136        readscreen(tmpstr, 101, 1);
    137137        free(tmpstr); tmpstr = NULL;
  • titan/plugins/networkbrowser/networkbrowser.c

    r23090 r24056  
    3333        pluginmenu = child;
    3434
    35         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/networkbrowser/skin.xml", 0, 0);
     35        tmpstr = createpluginpath("/networkbrowser/skin.xml", 0);
    3636        readscreen(tmpstr, 100, 1);
    3737        free(tmpstr); tmpstr = NULL;
  • titan/plugins/optimize/optimize.c

    r17097 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/optimize/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/optimize/skin.xml", 0);
    1919        readscreen(tmpstr, 198, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/panel/panel.c

    r23090 r24056  
    3737
    3838        //pluginmenu = child;
    39         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/panel/skin.xml", 0, 0);
     39        tmpstr = createpluginpath("/panel/skin.xml", 0);
    4040        readscreen(tmpstr, 107, 1);
    4141        free(tmpstr); tmpstr = NULL;
  • titan/plugins/permtime/permtime.c

    r20784 r24056  
    7373        pluginaktiv = 1;
    7474       
    75         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/permtime/skin.xml", 0, 0);
     75        tmpstr = createpluginpath("/permtime/skin.xml", 0);
    7676        readscreen(tmpstr, 115, 1);
    7777        free(tmpstr); tmpstr = NULL;
  • titan/plugins/readerconfig/readerconfig.c

    r19851 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/readerconfig/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/readerconfig/skin.xml", 0);
    1919        readscreen(tmpstr, 243, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/rgui/rgui.c

    r17097 r24056  
    2323        char* tmpstr = NULL;
    2424
    25         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/rgui/skin.xml", 0, 0);
     25        tmpstr = createpluginpath("/rgui/skin.xml", 0);
    2626        readscreen(tmpstr, 197, 1);
    2727        free(tmpstr); tmpstr = NULL;
  • titan/plugins/stock/stock.c

    r17097 r24056  
    1919        char* tmpstr = NULL;
    2020       
    21         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/stock/skin.xml", 0, 0);
     21        tmpstr = createpluginpath("/stock/skin.xml", 0);
    2222        readscreen(tmpstr, 220, 1);
    2323        free(tmpstr); tmpstr = NULL;
  • titan/plugins/stopifnotused/stopifnotused.c

    r19943 r24056  
    6161        pluginaktiv = 1;
    6262       
    63         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/stopifnotused/skin.xml", 0, 0);
     63        tmpstr = createpluginpath("/stopifnotused/skin.xml", 0);
    6464        readscreen(tmpstr, 117, 1);
    6565        free(tmpstr); tmpstr = NULL;
  • titan/plugins/streaminfo/streaminfo.c

    r17097 r24056  
    1919        char* tmpstr = NULL;
    2020       
    21         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/streaminfo/skin.xml", 0, 0);
     21        tmpstr = createpluginpath("/streaminfo/skin.xml", 0);
    2222        readscreen(tmpstr, 225, 1);
    2323        free(tmpstr); tmpstr = NULL;
  • titan/plugins/tinews/tinews.c

    r20766 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/news/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/news/skin.xml", 0);
    1919        readscreen(tmpstr, 210, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/tithek/tithek.c

    r24002 r24056  
    3636        char* tmpstr = NULL;
    3737
    38         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tithek/skin.xml", 0, 0);
     38        tmpstr = createpluginpath("/tithek/skin.xml", 0);
    3939        readscreen(tmpstr, 195, 1);
    4040        free(tmpstr); tmpstr = NULL;
  • titan/plugins/tiwakeup/tiwakeup.c

    r20616 r24056  
    2323        char* tmpstr = NULL;
    2424
    25         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tiwakeup/skin.xml", 0, 0);
     25        tmpstr = createpluginpath("/tiwakeup/skin.xml", 0);
    2626        readscreen(tmpstr, 280, 1);
    2727        free(tmpstr); tmpstr = NULL;
  • titan/plugins/tmc/tmc.c

    r17097 r24056  
    1919        char* tmpstr = NULL;
    2020       
    21         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tmc/skin.xml", 0, 0);
     21        tmpstr = createpluginpath("/tmc/skin.xml", 0);
    2222        readscreen(tmpstr, 230, 1);
    2323        free(tmpstr); tmpstr = NULL;
  • titan/plugins/tmdb/tmdb.c

    r23090 r24056  
    3030
    3131        pluginmenu = child;
    32         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/tmdb/skin.xml", 0, 0);
     32        tmpstr = createpluginpath("/tmdb/skin.xml", 0);
    3333        readscreen(tmpstr, 201, 1);
    3434        free(tmpstr); tmpstr = NULL;
  • titan/plugins/weather/weather.c

    r17097 r24056  
    1616        char* tmpstr = NULL;
    1717
    18         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/weather/skin.xml", 0, 0);
     18        tmpstr = createpluginpath("/weather/skin.xml", 0);
    1919        readscreen(tmpstr, 208, 1);
    2020        free(tmpstr); tmpstr = NULL;
  • titan/plugins/wins3/wins3.c

    r17097 r24056  
    2323        char* tmpstr = NULL;
    2424
    25         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/wins3/skin.xml", 0, 0);
     25        tmpstr = createpluginpath("/wins3/skin.xml", 0);
    2626        readscreen(tmpstr, 196, 1);
    2727        free(tmpstr); tmpstr = NULL;
  • titan/plugins/zapback/zapback.c

    r19842 r24056  
    159159        char* tmpstr = NULL;
    160160        pluginaktiv = 1;
    161         tmpstr = ostrcat(getconfig("pluginpath", NULL), "/zapback/skin.xml", 0, 0);
     161        tmpstr = createpluginpath("/zapback/skin.xml", 0);
    162162        readscreen(tmpstr, 115, 1);
    163163        free(tmpstr); tmpstr = NULL;
Note: See TracChangeset for help on using the changeset viewer.