Merge pull request #748 in FS/freeswitch from ~RAVENOX/freeswitch:FS-8936 to master
* commit '73684796e6229836d7fae82ad114c3f163a087de': FS-8936 - Added swig typemap for "const char **" for fix invocation problems, reswig
This commit is contained in:
commit
6c63fd2ddd
|
@ -1,6 +1,6 @@
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
* 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
|
* 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
|
* 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 EventConsumer::pop;
|
||||||
%newobject Session;
|
%newobject Session;
|
||||||
%newobject CoreSession;
|
%newobject CoreSession;
|
||||||
|
|
Loading…
Reference in New Issue