change api to return event on filter command

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12488 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-03-06 19:24:10 +00:00
parent 734b2d3b82
commit f3acb35505
9 changed files with 40 additions and 20 deletions

View File

@@ -2537,7 +2537,7 @@ static int _wrap_ESLconnection_filter(lua_State* L) {
ESLconnection *arg1 = (ESLconnection *) 0 ;
char *arg2 = (char *) 0 ;
char *arg3 = (char *) 0 ;
int result;
ESLevent *result = 0 ;
SWIG_check_num_args("filter",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("filter",1,"ESLconnection *");
@@ -2550,9 +2550,9 @@ static int _wrap_ESLconnection_filter(lua_State* L) {
arg2 = (char *)lua_tostring(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (int)(arg1)->filter((char const *)arg2,(char const *)arg3);
result = (ESLevent *)(arg1)->filter((char const *)arg2,(char const *)arg3);
SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_ESLevent,0); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;