mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 06:08:07 +00:00
Fix search of *_get_user_data function in the Python wrapper.
This commit is contained in:
parent
b36e61414a
commit
b7cf077e3f
1 changed files with 3 additions and 2 deletions
|
|
@ -153,8 +153,9 @@ class MethodDefinition:
|
|||
if self.return_complete_type != 'void':
|
||||
if self.build_value_format == 'O':
|
||||
stripped_return_type = strip_leading_linphone(self.return_type)
|
||||
if self.class_['class_has_user_data']:
|
||||
get_user_data_function = self.__find_class_definition(self.return_type)['class_c_function_prefix'] + "get_user_data"
|
||||
return_type_class = self.__find_class_definition(self.return_type)
|
||||
if return_type_class['class_has_user_data']:
|
||||
get_user_data_function = return_type_class['class_c_function_prefix'] + "get_user_data"
|
||||
self.body += "\tif ((cresult != NULL) && (" + get_user_data_function + "(cresult) != NULL)) {\n"
|
||||
self.body += "\t\treturn (PyObject *)" + get_user_data_function + "(cresult);\n"
|
||||
self.body += "\t}\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue