change execute and executeAsync to return the last event instead of status since it will almost always be 0

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15973 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-12-15 19:45:47 +00:00
parent 9d348910ef
commit c13c187a3a
15 changed files with 124 additions and 106 deletions

View File

@@ -111,13 +111,15 @@ public class ESLconnection : IDisposable {
return ret;
}
public int execute(string app, string arg, string uuid) {
int ret = ESLPINVOKE.ESLconnection_execute(swigCPtr, app, arg, uuid);
public ESLevent execute(string app, string arg, string uuid) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_execute(swigCPtr, app, arg, uuid);
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
return ret;
}
public int executeAsync(string app, string arg, string uuid) {
int ret = ESLPINVOKE.ESLconnection_executeAsync(swigCPtr, app, arg, uuid);
public ESLevent executeAsync(string app, string arg, string uuid) {
IntPtr cPtr = ESLPINVOKE.ESLconnection_executeAsync(swigCPtr, app, arg, uuid);
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
return ret;
}