Commit 6ae8a1d8 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed lists not being supported as parameter in listeners in C# wrapper

parent 7229c77f
Pipeline #188 failed with stage
in 0 seconds
......@@ -278,6 +278,11 @@ class CsharpTranslator(object):
listenerDict['delegate']['params'] += "fromNativePtr<" + normalType + ">(" + argName + ")"
elif self.is_linphone_type(arg.type, True, dllImport=False) and type(arg.type) is AbsApi.EnumType:
listenerDict['delegate']['params'] += "(" + normalType + ")" + argName + ""
elif type(arg.type) is AbsApi.ListType:
if normalType == "string":
listenerDict['delegate']['params'] += "MarshalStringArray(" + argName + ")"
else:
listenerDict['delegate']['params'] += "MarshalBctbxList<" + self.get_class_array_type(normalType) + ">(" + argName + ")"
else:
print 'Not supported yet: ' + delegate_name_public
return {}
......
......@@ -318,7 +318,7 @@ namespace Linphone
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate void {{name_private}}({{params_private}});
public delegate void {{name_public}}({{params_public}});
public delegate void {{name_public}}({{{params_public}}});
private {{name_private}} {{var_private}};
private {{name_public}} {{var_public}};
......
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