提交 6c63fd2d authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #748 in FS/freeswitch from ~RAVENOX/freeswitch:FS-8936 to master

* commit '73684796':
  FS-8936 - Added swig typemap for "const char **" for fix invocation problems, reswig
/* ----------------------------------------------------------------------------
* 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
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论