mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
FS-8936 - Added swig typemap for "const char **" for fix invocation problems, reswig
This commit is contained in:
1 parent
d46f77ad97
commit
73684796e6
3 files changed
+7904
-7757
No files matched your search
@@ -29,6 +29,17 @@ typedef unsigned long in_addr_t;
|
||||
}
|
||||
%}
|
||||
|
||||
// const char ** -> out string
|
||||
%typemap(imtype, out="string") const char ** "ref global::System.IntPtr"
|
||||
%typemap(cstype, out="string") const char ** "out string"
|
||||
%typemap(csin,
|
||||
pre="var $csinput_ptr = global::System.IntPtr.Zero;",
|
||||
post="if($csinput_ptr != global::System.IntPtr.Zero)\n"
|
||||
"\t$csinput = global::System.Runtime.InteropServices.Marshal.PtrToStringAnsi($csinput_ptr);\n"
|
||||
"else\n"
|
||||
"\t$csinput = null;"
|
||||
) const char ** "ref $csinput_ptr"
|
||||
|
||||
%newobject EventConsumer::pop;
|
||||
%newobject Session;
|
||||
%newobject CoreSession;
|
||||
|
||||
Reference in new issue
Block a user