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
c2283874
Commit
c2283874
authored
Jul 10, 2014
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not include empty classes to the XML file generated by the genapixml tool.
parent
03a7fe29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tools/genapixml.py
tools/genapixml.py
+6
-0
No files found.
tools/genapixml.py
View file @
c2283874
...
...
@@ -593,6 +593,11 @@ class Generator:
functionNode
.
append
(
f
.
detailedDescription
)
def
__generateClass
(
self
,
cclass
,
classesNode
):
# Do not include classes that contain nothing
if
len
(
cclass
.
events
)
==
0
and
len
(
cclass
.
classMethods
)
==
0
and
\
len
(
cclass
.
instanceMethods
)
==
0
and
len
(
cclass
.
properties
)
==
0
:
return
# Check the capabilities of the class
has_ref_method
=
False
has_unref_method
=
False
has_destroy_method
=
False
...
...
@@ -617,6 +622,7 @@ class Generator:
'refcountable'
:
str
(
refcountable
).
lower
(),
'destroyable'
:
str
(
destroyable
).
lower
()
}
# Generate the XML node for the class
classNode
=
ET
.
SubElement
(
classesNode
,
'class'
,
classNodeAttributes
)
if
len
(
cclass
.
events
)
>
0
:
eventsNode
=
ET
.
SubElement
(
classNode
,
'events'
)
...
...
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