mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fixed content_get_buffer and content_set_buffer methods in Java wrapper
This commit is contained in:
parent
88ef203bc7
commit
a9e3caf17f
1 changed files with 9 additions and 1 deletions
|
|
@ -249,9 +249,17 @@ class JavaTranslator(object):
|
|||
return 'char'
|
||||
elif _type.name == 'void':
|
||||
if isReturn:
|
||||
if _type.isref and jni:
|
||||
return 'jbyteArray'
|
||||
if _type.isref:
|
||||
return 'byte[]'
|
||||
return 'void'
|
||||
if jni:
|
||||
if _type.isref and _type.isconst:
|
||||
return 'jbyteArray'
|
||||
return 'jobject'
|
||||
if _type.isref and _type.isconst:
|
||||
return 'byte[]'
|
||||
return 'Object'
|
||||
return _type.name
|
||||
|
||||
|
|
@ -415,7 +423,7 @@ class JavaTranslator(object):
|
|||
methodDict['params_impl'] += '(' + argCType + ') ' + argname
|
||||
|
||||
elif type(arg.type) is AbsApi.BaseType:
|
||||
if arg.type.name == 'integer' and arg.type.size is not None and arg.type.isref:
|
||||
if (arg.type.name == 'integer' and arg.type.size is not None and arg.type.isref) or (arg.type.name == 'void' and arg.type.isref and arg.type.isconst):
|
||||
methodDict['bytes'].append({'bytesargname': argname, 'bytesargtype' : self.translate_as_c_base_type(arg.type)})
|
||||
methodDict['params_impl'] += 'c_' + argname
|
||||
elif arg.type.name == 'string':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue