even more lang stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9063 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-07-16 21:06:14 +00:00
parent 920ef82cb3
commit df5afbcacd
16 changed files with 280 additions and 42 deletions
+2
View File
@@ -13,6 +13,8 @@ local_depend: $(LOCAL_OBJS)
$(LIBLUA_A):
cd lua && $(MAKE) CC="$(CC)" CFLAGS="$(ALL_CFLAGS) -DLUA_USE_LINUX -w" liblua.a
reswig: swigclean mod_lua_wrap.cpp
luaclean:
cd lua && $(MAKE) clean
+1 -1
View File
@@ -9,7 +9,7 @@ Session::Session():CoreSession()
hh = mark = 0;
}
Session::Session(char *uuid):CoreSession(uuid)
Session::Session(char *nuuid, CoreSession *a_leg):CoreSession(nuuid, a_leg)
{
cb_function = cb_arg = hangup_func_str = hangup_func_arg = NULL;
hh = mark = 0;
+1 -1
View File
@@ -20,7 +20,7 @@ class Session : public CoreSession {
int mark;
public:
Session();
Session(char *uuid);
Session(char *uuid, CoreSession *a_leg = NULL);
Session(switch_core_session_t *session);
~Session();
+14 -5
View File
@@ -1,6 +1,6 @@
--- mod_lua_wrap.cpp 2008-05-11 20:03:58.000000000 -0400
+++ mod_lua_wrap2.cpp 2008-05-11 20:05:08.000000000 -0400
@@ -5158,7 +5158,7 @@
--- mod_lua_wrap.cpp 2008-07-16 16:58:58.000000000 -0400
+++ old.cpp 2008-07-16 16:58:42.000000000 -0400
@@ -6731,7 +6731,7 @@
SWIG_check_num_args("LUA::Session",0,0)
result = (LUA::Session *)new LUA::Session();
SWIG_arg=0;
@@ -9,7 +9,16 @@
return SWIG_arg;
if(0) SWIG_fail;
@@ -5179,7 +5179,7 @@
@@ -6759,7 +6759,7 @@
result = (LUA::Session *)new LUA::Session(arg1,arg2);
SWIG_arg=0;
- SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++;
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
return SWIG_arg;
if(0) SWIG_fail;
@@ -6780,7 +6780,7 @@
arg1 = (char *)lua_tostring(L, 1);
result = (LUA::Session *)new LUA::Session(arg1);
SWIG_arg=0;
@@ -18,7 +27,7 @@
return SWIG_arg;
if(0) SWIG_fail;
@@ -5204,7 +5204,7 @@
@@ -6805,7 +6805,7 @@
result = (LUA::Session *)new LUA::Session(arg1);
SWIG_arg=0;
+52 -5
View File
@@ -6743,6 +6743,34 @@ fail:
static int _wrap_new_Session__SWIG_1(lua_State* L) {
int SWIG_arg = -1;
char *arg1 = (char *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
LUA::Session *result = 0 ;
SWIG_check_num_args("LUA::Session",2,2)
if(!lua_isstring(L,1)) SWIG_fail_arg("LUA::Session",1,"char *");
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("LUA::Session",2,"CoreSession *");
arg1 = (char *)lua_tostring(L, 1);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_CoreSession,0))){
SWIG_fail_ptr("new_Session",2,SWIGTYPE_p_CoreSession);
}
result = (LUA::Session *)new LUA::Session(arg1,arg2);
SWIG_arg=0;
SWIG_NewPointerObj(L,result,SWIGTYPE_p_LUA__Session,1); SWIG_arg++; result->setLUA(L);
return SWIG_arg;
if(0) SWIG_fail;
fail:
lua_error(L);
return SWIG_arg;
}
static int _wrap_new_Session__SWIG_2(lua_State* L) {
int SWIG_arg = -1;
char *arg1 = (char *) 0 ;
LUA::Session *result = 0 ;
@@ -6763,7 +6791,7 @@ fail:
}
static int _wrap_new_Session__SWIG_2(lua_State* L) {
static int _wrap_new_Session__SWIG_3(lua_State* L) {
int SWIG_arg = -1;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
LUA::Session *result = 0 ;
@@ -6790,8 +6818,8 @@ fail:
static int _wrap_new_Session(lua_State* L) {
int argc;
int argv[2]={
1,2
int argv[3]={
1,2,3
};
argc = lua_gettop(L);
@@ -6809,7 +6837,7 @@ static int _wrap_new_Session(lua_State* L) {
}
}
if (_v) {
return _wrap_new_Session__SWIG_2(L);
return _wrap_new_Session__SWIG_3(L);
}
}
if (argc == 1) {
@@ -6818,7 +6846,26 @@ static int _wrap_new_Session(lua_State* L) {
_v = lua_isstring(L,argv[0]);
}
if (_v) {
return _wrap_new_Session__SWIG_1(L);
return _wrap_new_Session__SWIG_2(L);
}
}
if (argc == 2) {
int _v;
{
_v = lua_isstring(L,argv[0]);
}
if (_v) {
{
void *ptr;
if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_CoreSession, 0)) {
_v = 0;
} else {
_v = 1;
}
}
if (_v) {
return _wrap_new_Session__SWIG_1(L);
}
}
}