mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-8936 - Added swig typemap for "const char **" for fix invocation problems, reswig
This commit is contained in:
parent
d46f77ad97
commit
73684796e6
@ -1,6 +1,6 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.12
|
||||
* Version 2.0.11
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user