Commit 9e5eeafc authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Workarounded java wrapper issue with callback using bctbx_list as arg

parent 09a4f837
......@@ -559,6 +559,12 @@ class JavaTranslator(object):
methodDict['jparams'] += 'L' + self.jni_path + self.translate_java_jni_enum_name(arg.type.desc) + ';'
methodDict['params_impl'] += 'j_' + argname
methodDict['jenums'].append({'enumName': argname, 'cEnumPrefix': 'linphone_' + arg.type.desc.name.to_snake_case()})
elif type(arg.type) is AbsApi.ListType:
#TODO #FIXME handle bctbx_list_t as callback param
methodDict['params'] += 'const bctbx_list_t *' + argname
methodDict['jparams'] += '[L' + self.jni_path + arg.type.containedTypeDesc.name + ';'
methodDict['params_impl'] += 'NULL'
#methodDict['jobjects'].append({'objectName': argname, 'className': arg.type.containedTypeDesc.name, })
methodDict['jparams'] += ')'
if (methodDict['return'] == 'void'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment