mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Handle void* type in Java wrapper
This commit is contained in:
parent
ab2f157821
commit
27c271e46e
1 changed files with 5 additions and 1 deletions
|
|
@ -151,6 +151,10 @@ class JavaTranslator(object):
|
|||
if jni:
|
||||
return 'jchar'
|
||||
return 'char'
|
||||
elif _type.name == 'void':
|
||||
if jni:
|
||||
return 'jobject'
|
||||
return 'Object'
|
||||
return _type.name
|
||||
|
||||
def translate_argument(self, _arg, native=False, jni=False):
|
||||
|
|
@ -186,7 +190,7 @@ class JavaTranslator(object):
|
|||
|
||||
methodDict['enumCast'] = type(_method.returnType) is AbsApi.EnumType
|
||||
methodDict['classCast'] = type(_method.returnType) is AbsApi.ClassType
|
||||
|
||||
|
||||
methodDict['params'] = ''
|
||||
methodDict['native_params'] = 'long nativePtr'
|
||||
methodDict['static_native_params'] = ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue