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
cdc8c66f
Commit
cdc8c66f
authored
Dec 13, 2012
by
Yann Diorcet
Browse files
Fix xml2lpc tool
parent
50279dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
tools/xml2lpc.c
tools/xml2lpc.c
+7
-5
No files found.
tools/xml2lpc.c
View file @
cdc8c66f
...
...
@@ -64,12 +64,12 @@ void xml2lpc_context_destroy(xml2lpc_context *ctx) {
free
(
ctx
);
}
void
xml2lpc_context_clear_logs
(
xml2lpc_context
*
ctx
)
{
static
void
xml2lpc_context_clear_logs
(
xml2lpc_context
*
ctx
)
{
ctx
->
errorBuffer
[
0
]
=
'\0'
;
ctx
->
warningBuffer
[
0
]
=
'\0'
;
}
void
xml2lpc_log
(
xml2lpc_context
*
xmlCtx
,
int
level
,
const
char
*
fmt
,
...)
{
static
void
xml2lpc_log
(
xml2lpc_context
*
xmlCtx
,
int
level
,
const
char
*
fmt
,
...)
{
va_list
args
;
va_start
(
args
,
fmt
);
if
(
xmlCtx
->
cbf
!=
NULL
)
{
...
...
@@ -78,7 +78,7 @@ void xml2lpc_log(xml2lpc_context *xmlCtx, int level, const char *fmt, ...) {
va_end
(
args
);
}
void
xml2lpc_genericxml_error
(
void
*
ctx
,
const
char
*
fmt
,
...)
{
static
void
xml2lpc_genericxml_error
(
void
*
ctx
,
const
char
*
fmt
,
...)
{
xml2lpc_context
*
xmlCtx
=
(
xml2lpc_context
*
)
ctx
;
int
sl
=
strlen
(
xmlCtx
->
errorBuffer
);
va_list
args
;
...
...
@@ -87,7 +87,7 @@ void xml2lpc_genericxml_error(void *ctx, const char *fmt, ...) {
va_end
(
args
);
}
void
xml2lpc_genericxml_warning
(
void
*
ctx
,
const
char
*
fmt
,
...)
{
static
void
xml2lpc_genericxml_warning
(
void
*
ctx
,
const
char
*
fmt
,
...)
{
xml2lpc_context
*
xmlCtx
=
(
xml2lpc_context
*
)
ctx
;
int
sl
=
strlen
(
xmlCtx
->
warningBuffer
);
va_list
args
;
...
...
@@ -96,6 +96,7 @@ void xml2lpc_genericxml_warning(void *ctx, const char *fmt, ...) {
va_end
(
args
);
}
#if 0
static void dumpNodes(int level, xmlNode * a_node, xml2lpc_context *ctx) {
xmlNode *cur_node = NULL;
...
...
@@ -109,6 +110,7 @@ static void dumpNodes(int level, xmlNode * a_node, xml2lpc_context *ctx) {
dumpNodes(level + 1, cur_node->children, ctx);
}
}
#endif
static
void
dumpNode
(
xmlNode
*
node
,
xml2lpc_context
*
ctx
)
{
...
...
@@ -338,4 +340,4 @@ int xml2lpc_set_xsd_string(xml2lpc_context* xmlCtx, const char *content) {
return
-
1
;
}
return
0
;
}
\ No newline at end of file
}
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