]> sjero.net Git - linphone/blobdiff - coreapi/lpconfig.c
add automatic tone user indications
[linphone] / coreapi / lpconfig.c
index 4608beecfff09cde860a8d0d3b4b19ec477ab8f4..db4e5de5c932b713ea968f80c5aa1c796cb276ee 100644 (file)
@@ -190,6 +190,7 @@ void lp_config_parse(LpConfig *lpconfig, FILE *file){
 
                                        if (pos2-pos1>=0){
                                                /* found a pair key,value */
+                                               
                                                if (cur!=NULL){
                                                        LpItem *item=lp_section_find_item(cur,key);
                                                        if (item==NULL){
@@ -198,7 +199,7 @@ void lp_config_parse(LpConfig *lpconfig, FILE *file){
                                                                ms_free(item->value);
                                                                item->value=strdup(pos1);
                                                        }
-                                                       /*printf("Found %s %s={%s}\n",cur->name,key,pos1);*/
+                                                       /*ms_message("Found %s=%s",key,pos1);*/
                                                }else{
                                                        ms_warning("found key,item but no sections");
                                                }
@@ -212,6 +213,7 @@ void lp_config_parse(LpConfig *lpconfig, FILE *file){
 LpConfig * lp_config_new(const char *filename){
        LpConfig *lpconfig=lp_new0(LpConfig,1);
        if (filename!=NULL){
+               ms_message("Using (r/w) config information from %s", filename);
                lpconfig->filename=ortp_strdup(filename);
                lpconfig->file=fopen(filename,"rw");
                if (lpconfig->file!=NULL){
@@ -237,6 +239,7 @@ LpConfig * lp_config_new(const char *filename){
 int lp_config_read_file(LpConfig *lpconfig, const char *filename){
        FILE* f=fopen(filename,"r");
        if (f!=NULL){
+               ms_message("Reading config information from %s", filename);
                lp_config_parse(lpconfig,f);
                fclose(f);
                return 0;