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

[titan] add new plugindir system

Location:
titan/plugins/callmonitor1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.