提交 177d03cb authored 作者: Brian West's avatar Brian West

need a swigall

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16652 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a5afd7cd
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 1.3.35
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ESL { public class ESL {
public static void eslSetLogLevel(int level) { public static void eslSetLogLevel(int level) {
ESLPINVOKE.eslSetLogLevel(level); ESLPINVOKE.eslSetLogLevel(level);
} }
} }
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 1.3.35
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ESLconnection : IDisposable { public class ESLconnection : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ESLconnection(IntPtr cPtr, bool cMemoryOwn) { internal ESLconnection(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ESLconnection obj) { internal static HandleRef getCPtr(ESLconnection obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ESLconnection() { ~ESLconnection() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
if (swigCMemOwn) { swigCMemOwn = false;
swigCMemOwn = false; ESLPINVOKE.delete_ESLconnection(swigCPtr);
ESLPINVOKE.delete_ESLconnection(swigCPtr); }
} swigCPtr = new HandleRef(null, IntPtr.Zero);
swigCPtr = new HandleRef(null, IntPtr.Zero); GC.SuppressFinalize(this);
} }
GC.SuppressFinalize(this); }
}
} public ESLconnection(string host, string port, string user, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_0(host, port, user, password), true) {
}
public ESLconnection(string host, string port, string user, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_0(host, port, user, password), true) {
} public ESLconnection(string host, string port, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_1(host, port, password), true) {
}
public ESLconnection(string host, string port, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_1(host, port, password), true) {
} public ESLconnection(int socket) : this(ESLPINVOKE.new_ESLconnection__SWIG_2(socket), true) {
}
public ESLconnection(int socket) : this(ESLPINVOKE.new_ESLconnection__SWIG_2(socket), true) {
} public int SocketDescriptor() {
int ret = ESLPINVOKE.ESLconnection_SocketDescriptor(swigCPtr);
public int SocketDescriptor() { return ret;
int ret = ESLPINVOKE.ESLconnection_SocketDescriptor(swigCPtr); }
return ret;
} public int Connected() {
int ret = ESLPINVOKE.ESLconnection_Connected(swigCPtr);
public int Connected() { return ret;
int ret = ESLPINVOKE.ESLconnection_Connected(swigCPtr); }
return ret;
} public ESLevent GetInfo() {
IntPtr cPtr = ESLPINVOKE.ESLconnection_GetInfo(swigCPtr);
public ESLevent GetInfo() { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_GetInfo(swigCPtr); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public int Send(string cmd) {
int ret = ESLPINVOKE.ESLconnection_Send(swigCPtr, cmd);
public int Send(string cmd) { return ret;
int ret = ESLPINVOKE.ESLconnection_Send(swigCPtr, cmd); }
return ret;
} public ESLevent SendRecv(string cmd) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_SendRecv(swigCPtr, cmd);
public ESLevent SendRecv(string cmd) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_SendRecv(swigCPtr, cmd); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public ESLevent Api(string cmd, string arg) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_Api(swigCPtr, cmd, arg);
public ESLevent Api(string cmd, string arg) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_Api(swigCPtr, cmd, arg); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public ESLevent Bgapi(string cmd, string arg) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_Bgapi(swigCPtr, cmd, arg);
public ESLevent Bgapi(string cmd, string arg) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_Bgapi(swigCPtr, cmd, arg); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public int SendEvent(ESLevent send_me) {
int ret = ESLPINVOKE.ESLconnection_SendEvent(swigCPtr, ESLevent.getCPtr(send_me));
public int SendEvent(ESLevent send_me) { return ret;
int ret = ESLPINVOKE.ESLconnection_SendEvent(swigCPtr, ESLevent.getCPtr(send_me)); }
return ret;
} public ESLevent RecvEvent() {
IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEvent(swigCPtr);
public ESLevent RecvEvent() { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEvent(swigCPtr); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public ESLevent RecvEventTimed(int ms) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEventTimed(swigCPtr, ms);
public ESLevent RecvEventTimed(int ms) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEventTimed(swigCPtr, ms); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public ESLevent Filter(string header, string value) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_Filter(swigCPtr, header, value);
public ESLevent Filter(string header, string value) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_Filter(swigCPtr, header, value); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public int Events(string etype, string value) {
int ret = ESLPINVOKE.ESLconnection_Events(swigCPtr, etype, value);
public int Events(string etype, string value) { return ret;
int ret = ESLPINVOKE.ESLconnection_Events(swigCPtr, etype, value); }
return ret;
} public ESLevent Execute(string app, string arg, string uuid) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_Execute(swigCPtr, app, arg, uuid);
public ESLevent Execute(string app, string arg, string uuid) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_Execute(swigCPtr, app, arg, uuid); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public ESLevent ExecuteAsync(string app, string arg, string uuid) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_ExecuteAsync(swigCPtr, app, arg, uuid);
public ESLevent ExecuteAsync(string app, string arg, string uuid) { ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
IntPtr cPtr = ESLPINVOKE.ESLconnection_ExecuteAsync(swigCPtr, app, arg, uuid); return ret;
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true); }
return ret;
} public int SetAsyncExecute(string val) {
int ret = ESLPINVOKE.ESLconnection_SetAsyncExecute(swigCPtr, val);
public int SetAsyncExecute(string val) { return ret;
int ret = ESLPINVOKE.ESLconnection_SetAsyncExecute(swigCPtr, val); }
return ret;
} public int SetEventLock(string val) {
int ret = ESLPINVOKE.ESLconnection_SetEventLock(swigCPtr, val);
public int SetEventLock(string val) { return ret;
int ret = ESLPINVOKE.ESLconnection_SetEventLock(swigCPtr, val); }
return ret;
} public int Disconnect() {
int ret = ESLPINVOKE.ESLconnection_Disconnect(swigCPtr);
public int Disconnect() { return ret;
int ret = ESLPINVOKE.ESLconnection_Disconnect(swigCPtr); }
return ret;
} }
}
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 1.3.35
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class ESLevent : IDisposable { public class ESLevent : IDisposable {
private HandleRef swigCPtr; private HandleRef swigCPtr;
protected bool swigCMemOwn; protected bool swigCMemOwn;
internal ESLevent(IntPtr cPtr, bool cMemoryOwn) { internal ESLevent(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn; swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
internal static HandleRef getCPtr(ESLevent obj) { internal static HandleRef getCPtr(ESLevent obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
~ESLevent() { ~ESLevent() {
Dispose(); Dispose();
} }
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) { if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
if (swigCMemOwn) { swigCMemOwn = false;
swigCMemOwn = false; ESLPINVOKE.delete_ESLevent(swigCPtr);
ESLPINVOKE.delete_ESLevent(swigCPtr); }
} swigCPtr = new HandleRef(null, IntPtr.Zero);
swigCPtr = new HandleRef(null, IntPtr.Zero); GC.SuppressFinalize(this);
} }
GC.SuppressFinalize(this); }
}
} public SWIGTYPE_p_esl_event_t Event {
set {
public SWIGTYPE_p_esl_event_t Event { ESLPINVOKE.ESLevent_Event_set(swigCPtr, SWIGTYPE_p_esl_event_t.getCPtr(value));
set { }
ESLPINVOKE.ESLevent_Event_set(swigCPtr, SWIGTYPE_p_esl_event_t.getCPtr(value)); get {
} IntPtr cPtr = ESLPINVOKE.ESLevent_Event_get(swigCPtr);
get { SWIGTYPE_p_esl_event_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_esl_event_t(cPtr, false);
IntPtr cPtr = ESLPINVOKE.ESLevent_Event_get(swigCPtr); return ret;
SWIGTYPE_p_esl_event_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_esl_event_t(cPtr, false); }
return ret; }
}
} public string SerializedString {
set {
public string SerializedString { ESLPINVOKE.ESLevent_SerializedString_set(swigCPtr, value);
set { }
ESLPINVOKE.ESLevent_SerializedString_set(swigCPtr, value); get {
} string ret = ESLPINVOKE.ESLevent_SerializedString_get(swigCPtr);
get { return ret;
string ret = ESLPINVOKE.ESLevent_SerializedString_get(swigCPtr); }
return ret; }
}
} public int Mine {
set {
public int Mine { ESLPINVOKE.ESLevent_Mine_set(swigCPtr, value);
set { }
ESLPINVOKE.ESLevent_Mine_set(swigCPtr, value); get {
} int ret = ESLPINVOKE.ESLevent_Mine_get(swigCPtr);
get { return ret;
int ret = ESLPINVOKE.ESLevent_Mine_get(swigCPtr); }
return ret; }
}
} public ESLevent(string type, string subclass_name) : this(ESLPINVOKE.new_ESLevent__SWIG_0(type, subclass_name), true) {
}
public ESLevent(string type, string subclass_name) : this(ESLPINVOKE.new_ESLevent__SWIG_0(type, subclass_name), true) {
} public ESLevent(SWIGTYPE_p_esl_event_t wrap_me, int free_me) : this(ESLPINVOKE.new_ESLevent__SWIG_1(SWIGTYPE_p_esl_event_t.getCPtr(wrap_me), free_me), true) {
}
public ESLevent(SWIGTYPE_p_esl_event_t wrap_me, int free_me) : this(ESLPINVOKE.new_ESLevent__SWIG_1(SWIGTYPE_p_esl_event_t.getCPtr(wrap_me), free_me), true) {
} public ESLevent(ESLevent me) : this(ESLPINVOKE.new_ESLevent__SWIG_2(ESLevent.getCPtr(me)), true) {
}
public ESLevent(ESLevent me) : this(ESLPINVOKE.new_ESLevent__SWIG_2(ESLevent.getCPtr(me)), true) {
} public string Serialize(string format) {
string ret = ESLPINVOKE.ESLevent_Serialize(swigCPtr, format);
public string Serialize(string format) { return ret;
string ret = ESLPINVOKE.ESLevent_Serialize(swigCPtr, format); }
return ret;
} public bool SetPriority(SWIGTYPE_p_esl_priority_t priority) {
bool ret = ESLPINVOKE.ESLevent_SetPriority(swigCPtr, SWIGTYPE_p_esl_priority_t.getCPtr(priority));
public bool SetPriority(SWIGTYPE_p_esl_priority_t priority) { if (ESLPINVOKE.SWIGPendingException.Pending) throw ESLPINVOKE.SWIGPendingException.Retrieve();
bool ret = ESLPINVOKE.ESLevent_SetPriority(swigCPtr, SWIGTYPE_p_esl_priority_t.getCPtr(priority)); return ret;
if (ESLPINVOKE.SWIGPendingException.Pending) throw ESLPINVOKE.SWIGPendingException.Retrieve(); }
return ret;
} public string GetHeader(string header_name) {
string ret = ESLPINVOKE.ESLevent_GetHeader(swigCPtr, header_name);
public string GetHeader(string header_name) { return ret;
string ret = ESLPINVOKE.ESLevent_GetHeader(swigCPtr, header_name); }
return ret;
} public string GetBody() {
string ret = ESLPINVOKE.ESLevent_GetBody(swigCPtr);
public string GetBody() { return ret;
string ret = ESLPINVOKE.ESLevent_GetBody(swigCPtr); }
return ret;
} public string getType() {
string ret = ESLPINVOKE.ESLevent_getType(swigCPtr);
public string getType() { return ret;
string ret = ESLPINVOKE.ESLevent_getType(swigCPtr); }
return ret;
} public bool AddBody(string value) {
bool ret = ESLPINVOKE.ESLevent_AddBody(swigCPtr, value);
public bool AddBody(string value) { return ret;
bool ret = ESLPINVOKE.ESLevent_AddBody(swigCPtr, value); }
return ret;
} public bool AddHeader(string header_name, string value) {
bool ret = ESLPINVOKE.ESLevent_AddHeader(swigCPtr, header_name, value);
public bool AddHeader(string header_name, string value) { return ret;
bool ret = ESLPINVOKE.ESLevent_AddHeader(swigCPtr, header_name, value); }
return ret;
} public bool DelHeader(string header_name) {
bool ret = ESLPINVOKE.ESLevent_DelHeader(swigCPtr, header_name);
public bool DelHeader(string header_name) { return ret;
bool ret = ESLPINVOKE.ESLevent_DelHeader(swigCPtr, header_name); }
return ret;
} public string FirstHeader() {
string ret = ESLPINVOKE.ESLevent_FirstHeader(swigCPtr);
public string FirstHeader() { return ret;
string ret = ESLPINVOKE.ESLevent_FirstHeader(swigCPtr); }
return ret;
} public string NextHeader() {
string ret = ESLPINVOKE.ESLevent_NextHeader(swigCPtr);
public string NextHeader() { return ret;
string ret = ESLPINVOKE.ESLevent_NextHeader(swigCPtr); }
return ret;
} }
}
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 1.3.35
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_esl_event_t { public class SWIGTYPE_p_esl_event_t {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_esl_event_t(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_esl_event_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_esl_event_t() { protected SWIGTYPE_p_esl_event_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_esl_event_t obj) { internal static HandleRef getCPtr(SWIGTYPE_p_esl_event_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40 * Version 1.3.35
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
public class SWIGTYPE_p_esl_priority_t { public class SWIGTYPE_p_esl_priority_t {
private HandleRef swigCPtr; private HandleRef swigCPtr;
internal SWIGTYPE_p_esl_priority_t(IntPtr cPtr, bool futureUse) { internal SWIGTYPE_p_esl_priority_t(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr); swigCPtr = new HandleRef(this, cPtr);
} }
protected SWIGTYPE_p_esl_priority_t() { protected SWIGTYPE_p_esl_priority_t() {
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
} }
internal static HandleRef getCPtr(SWIGTYPE_p_esl_priority_t obj) { internal static HandleRef getCPtr(SWIGTYPE_p_esl_priority_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
} }
} }
差异被折叠。
...@@ -1902,7 +1902,7 @@ SWIG_ruby_failed(void) ...@@ -1902,7 +1902,7 @@ SWIG_ruby_failed(void)
} }
/*@SWIG:/usr/local/share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ /*@SWIG:/usr/share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{ {
VALUE obj = args[0]; VALUE obj = args[0];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论