Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
b58f81db
Commit
b58f81db
authored
Apr 27, 2016
by
Sylvain Berfini
🐮
Browse files
Fixed lpc2xml_test programm
parent
ad382a06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
coreapi/lpc2xml.c
coreapi/lpc2xml.c
+2
-0
tools/lpc2xml_test.c
tools/lpc2xml_test.c
+1
-1
No files found.
coreapi/lpc2xml.c
View file @
b58f81db
...
...
@@ -169,6 +169,7 @@ static void processSection_cb(const char *entry, struct __processSectionCtx *ctx
if
(
lp_config_get_skip_flag_for_entry
(
ctx
->
ctx
->
lpc
,
ctx
->
section
,
entry
))
{
lpc2xml_log
(
ctx
->
ctx
,
LPC2XML_WARNING
,
"Skipped entry %s"
,
entry
);
ctx
->
ret
=
0
;
return
;
}
...
...
@@ -210,6 +211,7 @@ static void processConfig_cb(const char *section, struct __processConfigCtx *ctx
if
(
lp_config_get_skip_flag_for_section
(
ctx
->
ctx
->
lpc
,
section
))
{
lpc2xml_log
(
ctx
->
ctx
,
LPC2XML_WARNING
,
"Skipped section %s"
,
section
);
ctx
->
ret
=
0
;
return
;
}
...
...
tools/lpc2xml_test.c
View file @
b58f81db
...
...
@@ -56,8 +56,8 @@ int main(int argc, char *argv[]) {
lpc
=
lp_config_new
(
argv
[
2
]);
if
(
strcmp
(
"convert"
,
argv
[
1
])
==
0
&&
argc
==
4
)
{
ctx
=
lpc2xml_context_new
(
cb_function
,
NULL
);
lpc2xml_convert_file
(
ctx
,
argv
[
3
]);
lpc2xml_set_lpc
(
ctx
,
lpc
);
lpc2xml_convert_file
(
ctx
,
argv
[
3
]);
lpc2xml_context_destroy
(
ctx
);
}
else
if
(
strcmp
(
"dump"
,
argv
[
1
])
==
0
&&
argc
==
3
)
{
char
*
dump
=
lp_config_dump_as_xml
(
lpc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment