]> sjero.net Git - linphone/blobdiff - tools/lpc2xml.c
Fix upnp forgotten retain
[linphone] / tools / lpc2xml.c
index 97262861cbbfbb98689c18f083587125db704c9c..39fd62b0e36f693a318cbc38228f97dc2784a93f 100644 (file)
@@ -81,6 +81,7 @@ static void lpc2xml_genericxml_error(void *ctx, const char *fmt, ...) {
        va_end(args);
 }
 
+/*
 static void lpc2xml_genericxml_warning(void *ctx, const char *fmt, ...) {
        lpc2xml_context *xmlCtx = (lpc2xml_context *)ctx;
        int sl = strlen(xmlCtx->warningBuffer);
@@ -89,6 +90,7 @@ static void lpc2xml_genericxml_warning(void *ctx, const char *fmt, ...) {
        vsnprintf(xmlCtx->warningBuffer + sl, LPC2XML_BZ-sl, fmt, args);
        va_end(args);
 }
+*/
 
 static int processEntry(const char *section, const char *entry, xmlNode *node, lpc2xml_context *ctx) {
        const char *content = lp_config_get_string(ctx->lpc, section, entry, NULL);
@@ -96,6 +98,8 @@ static int processEntry(const char *section, const char *entry, xmlNode *node, l
                lpc2xml_log(ctx->ctx, LPC2XML_ERROR, "Issue when reading the lpc");
                return -1;
        }
+       
+       lpc2xml_log(ctx, LPC2XML_MESSAGE, "Set %s|%s = %s", section, entry, content);
        xmlNodeSetContent(node, (const xmlChar *) content);
        return 0;
 }
@@ -121,6 +125,7 @@ static void processSection_cb(const char *entry, struct __processSectionCtx *ctx
                        ctx->ret = -1;
                        return;
                }
+       
                ctx->ret = processEntry(ctx->section, entry, node, ctx->ctx);
        }
 }