trick swig

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12209 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-02-20 23:03:06 +00:00
parent 7cbd4857c7
commit d9834b5295
7 changed files with 95 additions and 147 deletions

View File

@@ -38,7 +38,7 @@ int ESLconnection::connected()
return handle.connected;
}
esl_status_t ESLconnection::send(const char *cmd)
int ESLconnection::send(const char *cmd)
{
return esl_send(&handle, cmd);
}
@@ -137,12 +137,12 @@ int ESLconnection::setEventLock(const char *val)
return handle.event_lock;
}
esl_status_t ESLconnection::execute(const char *app, const char *arg, const char *uuid)
int ESLconnection::execute(const char *app, const char *arg, const char *uuid)
{
return esl_execute(&handle, app, arg, uuid);
}
esl_status_t ESLconnection::sendEvent(ESLevent *send_me)
int ESLconnection::sendEvent(ESLevent *send_me)
{
return esl_sendevent(&handle, send_me->event);
}
@@ -186,12 +186,12 @@ ESLevent *ESLconnection::recvEventTimed(int ms)
return NULL;
}
esl_status_t ESLconnection::filter(const char *header, const char *value)
int ESLconnection::filter(const char *header, const char *value)
{
return esl_filter(&handle, header, value);
}
esl_status_t ESLconnection::events(const char *etype, const char *value)
int ESLconnection::events(const char *etype, const char *value)
{
esl_event_type_t type_id = ESL_EVENT_TYPE_PLAIN;

View File

@@ -75,16 +75,16 @@ class ESLconnection {
virtual ~ESLconnection();
int connected();
ESLevent *getInfo();
esl_status_t send(const char *cmd);
int send(const char *cmd);
ESLevent *sendRecv(const char *cmd);
ESLevent *api(const char *cmd, const char *arg = NULL);
ESLevent *bgapi(const char *cmd, const char *arg = NULL);
esl_status_t sendEvent(ESLevent *send_me);
int sendEvent(ESLevent *send_me);
ESLevent *recvEvent();
ESLevent *recvEventTimed(int ms);
esl_status_t filter(const char *header, const char *value);
esl_status_t events(const char *etype, const char *value);
esl_status_t execute(const char *app, const char *arg = NULL, const char *uuid = NULL);
int filter(const char *header, const char *value);
int events(const char *etype, const char *value);
int execute(const char *app, const char *arg = NULL, const char *uuid = NULL);
int setBlockingExecute(const char *val);
int setEventLock(const char *val);
};