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:
Mike Jerris 2016-03-15 10:36:30 -05:00
commit 6c63fd2ddd
3 changed files with 7904 additions and 7757 deletions

View File

@ -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

View File

@ -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;