mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
Do not generate Python wrapper for *_destroy(), *_ref() and *_unref() functions.
This commit is contained in:
parent
22e7418bf4
commit
7ead063d7f
1 changed files with 5 additions and 1 deletions
|
|
@ -195,6 +195,7 @@ class MethodDefinition:
|
|||
|
||||
class LinphoneModule(object):
|
||||
def __init__(self, tree, blacklisted_functions):
|
||||
self.internal_instance_method_names = ['destroy', 'ref', 'unref']
|
||||
self.enums = []
|
||||
xml_enums = tree.findall("./enums/enum")
|
||||
for xml_enum in xml_enums:
|
||||
|
|
@ -243,8 +244,11 @@ class LinphoneModule(object):
|
|||
method_name = xml_instance_method.get('name')
|
||||
if method_name in blacklisted_functions:
|
||||
continue
|
||||
method_name = method_name.replace(c['class_c_function_prefix'], '')
|
||||
if method_name in self.internal_instance_method_names:
|
||||
continue
|
||||
m = {}
|
||||
m['method_name'] = method_name.replace(c['class_c_function_prefix'], '')
|
||||
m['method_name'] = method_name
|
||||
m['method_body'] = self.__format_method_body(xml_instance_method, c)
|
||||
c['class_instance_methods'].append(m)
|
||||
c['class_properties'] = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue