Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
affdb49e
Commit
affdb49e
authored
Jul 11, 2014
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include type and complete type for arguments in the generated XML file of the API.
parent
4abe3b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/genapixml.py
tools/genapixml.py
+2
-2
No files found.
tools/genapixml.py
View file @
affdb49e
...
...
@@ -583,13 +583,13 @@ class Generator:
if
f
.
location
is
not
None
:
functionAttributes
[
'location'
]
=
f
.
location
functionNode
=
ET
.
SubElement
(
parentNode
,
nodeName
,
functionAttributes
)
returnValueAttributes
=
{
'type'
:
f
.
returnArgument
.
completeType
}
returnValueAttributes
=
{
'type'
:
f
.
returnArgument
.
ctype
,
'completetype'
:
f
.
returnArgument
.
completeType
}
returnValueNode
=
ET
.
SubElement
(
functionNode
,
'return'
,
returnValueAttributes
)
if
f
.
returnArgument
.
description
is
not
None
:
returnValueNode
.
append
(
f
.
returnArgument
.
description
)
argumentsNode
=
ET
.
SubElement
(
functionNode
,
'arguments'
)
for
arg
in
f
.
arguments
:
argumentNodeAttributes
=
{
'name'
:
arg
.
name
,
'type'
:
arg
.
completeType
}
argumentNodeAttributes
=
{
'name'
:
arg
.
name
,
'type'
:
arg
.
ctype
,
'completetype'
:
arg
.
completeType
}
argumentNode
=
ET
.
SubElement
(
argumentsNode
,
'argument'
,
argumentNodeAttributes
)
if
arg
.
description
is
not
None
:
argumentNode
.
append
(
arg
.
description
)
...
...
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