mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-07 21:01:50 +00:00
swig all
This commit is contained in:
@@ -1498,23 +1498,24 @@ SWIG_Lua_dostring(lua_State *L, const char* str) {
|
||||
#define SWIGTYPE_p_lua_State swig_types[11]
|
||||
#define SWIGTYPE_p_p_switch_event_node_t swig_types[12]
|
||||
#define SWIGTYPE_p_session_flag_t swig_types[13]
|
||||
#define SWIGTYPE_p_switch_call_cause_t swig_types[14]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[17]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[18]
|
||||
#define SWIGTYPE_p_switch_event_types_t swig_types[19]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[20]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[21]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[22]
|
||||
#define SWIGTYPE_p_switch_queue_t swig_types[23]
|
||||
#define SWIGTYPE_p_switch_state_handler_table_t swig_types[24]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[25]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[26]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[27]
|
||||
#define SWIGTYPE_p_void swig_types[28]
|
||||
static swig_type_info *swig_types[30];
|
||||
static swig_module_info swig_module = {swig_types, 29, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_std__string swig_types[14]
|
||||
#define SWIGTYPE_p_switch_call_cause_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[17]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[18]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[19]
|
||||
#define SWIGTYPE_p_switch_event_types_t swig_types[20]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[21]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[22]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[23]
|
||||
#define SWIGTYPE_p_switch_queue_t swig_types[24]
|
||||
#define SWIGTYPE_p_switch_state_handler_table_t swig_types[25]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[26]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[27]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[28]
|
||||
#define SWIGTYPE_p_void swig_types[29]
|
||||
static swig_type_info *swig_types[31];
|
||||
static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@@ -1536,9 +1537,273 @@ typedef struct{} LANGUAGE_OBJ;
|
||||
#include "switch_cpp.h"
|
||||
#include "freeswitch_lua.h"
|
||||
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static int _wrap_new_string__SWIG_0(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("std::string",0,0)
|
||||
result = (std::string *)new std::string();
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_std__string,1); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_new_string__SWIG_1(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
char *arg1 = (char *) 0 ;
|
||||
std::string *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("std::string",1,1)
|
||||
if(!lua_isstring(L,1)) SWIG_fail_arg("std::string",1,"char const *");
|
||||
arg1 = (char *)lua_tostring(L, 1);
|
||||
result = (std::string *)new std::string((char const *)arg1);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_std__string,1); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_new_string(lua_State* L) {
|
||||
int argc;
|
||||
int argv[2]={
|
||||
1,2
|
||||
};
|
||||
|
||||
argc = lua_gettop(L);
|
||||
if (argc == 0) {
|
||||
return _wrap_new_string__SWIG_0(L);
|
||||
}
|
||||
if (argc == 1) {
|
||||
int _v;
|
||||
{
|
||||
_v = lua_isstring(L,argv[0]);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_string__SWIG_1(L);
|
||||
}
|
||||
}
|
||||
|
||||
lua_pushstring(L,"No matching function for overloaded 'new_string'");
|
||||
lua_error(L);return 0;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_size(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
unsigned int result;
|
||||
|
||||
SWIG_check_num_args("size",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("size",1,"std::string const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_size",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
result = (unsigned int)((std::string const *)arg1)->size();
|
||||
SWIG_arg=0;
|
||||
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_length(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
unsigned int result;
|
||||
|
||||
SWIG_check_num_args("length",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("length",1,"std::string const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_length",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
result = (unsigned int)((std::string const *)arg1)->length();
|
||||
SWIG_arg=0;
|
||||
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_empty(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
bool result;
|
||||
|
||||
SWIG_check_num_args("empty",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("empty",1,"std::string const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_empty",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
result = (bool)((std::string const *)arg1)->empty();
|
||||
SWIG_arg=0;
|
||||
lua_pushboolean(L,(int)(result==true)); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_c_str(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("c_str",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("c_str",1,"std::string const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_c_str",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
result = (char *)((std::string const *)arg1)->c_str();
|
||||
SWIG_arg=0;
|
||||
lua_pushstring(L,(const char*)result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_data(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("data",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("data",1,"std::string const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_data",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
result = (char *)((std::string const *)arg1)->data();
|
||||
SWIG_arg=0;
|
||||
lua_pushstring(L,(const char*)result); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_string_assign(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
SWIG_check_num_args("assign",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("assign",1,"std::string *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("assign",2,"char const *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
|
||||
SWIG_fail_ptr("string_assign",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
(arg1)->assign((char const *)arg2);
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_delete_string(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
std::string *arg1 = (std::string *) 0 ;
|
||||
|
||||
SWIG_check_num_args("std::string::~string",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::~string",1,"std::string *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,SWIG_POINTER_DISOWN))){
|
||||
SWIG_fail_ptr("delete_string",1,SWIGTYPE_p_std__string);
|
||||
}
|
||||
|
||||
delete arg1;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static void swig_delete_string(void *obj) {
|
||||
std::string *arg1 = (std::string *) obj;
|
||||
delete arg1;
|
||||
}
|
||||
static swig_lua_method swig_std_string_methods[] = {
|
||||
{"size", _wrap_string_size},
|
||||
{"length", _wrap_string_length},
|
||||
{"empty", _wrap_string_empty},
|
||||
{"c_str", _wrap_string_c_str},
|
||||
{"data", _wrap_string_data},
|
||||
{"assign", _wrap_string_assign},
|
||||
{0,0}
|
||||
};
|
||||
static swig_lua_attribute swig_std_string_attributes[] = {
|
||||
{0,0,0}
|
||||
};
|
||||
static swig_lua_class *swig_std_string_bases[] = {0};
|
||||
static const char *swig_std_string_base_names[] = {0};
|
||||
static swig_lua_class _wrap_class_std_string = { "string", &SWIGTYPE_p_std__string,_wrap_new_string, swig_delete_string, swig_std_string_methods, swig_std_string_attributes, swig_std_string_bases, swig_std_string_base_names };
|
||||
|
||||
static int _wrap_setGlobalVariable(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
char *arg1 = (char *) 0 ;
|
||||
@@ -2626,6 +2891,31 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_Stream_read(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
std::string result;
|
||||
|
||||
SWIG_check_num_args("read",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("read",1,"Stream *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
|
||||
SWIG_fail_ptr("Stream_read",1,SWIGTYPE_p_Stream);
|
||||
}
|
||||
|
||||
result = (arg1)->read();
|
||||
SWIG_arg=0;
|
||||
lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_Stream_write(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
@@ -2653,6 +2943,33 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_Stream_raw_write(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
std::string arg2 ;
|
||||
|
||||
SWIG_check_num_args("raw_write",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("raw_write",1,"Stream *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("raw_write",2,"std::string");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_Stream,0))){
|
||||
SWIG_fail_ptr("Stream_raw_write",1,SWIGTYPE_p_Stream);
|
||||
}
|
||||
|
||||
(&arg2)->assign(lua_tostring(L,2),lua_rawlen(L,2));
|
||||
(arg1)->raw_write(arg2);
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_Stream_get_data(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
Stream *arg1 = (Stream *) 0 ;
|
||||
@@ -2683,7 +3000,9 @@ Stream *arg1 = (Stream *) obj;
|
||||
delete arg1;
|
||||
}
|
||||
static swig_lua_method swig_Stream_methods[] = {
|
||||
{"read", _wrap_Stream_read},
|
||||
{"write", _wrap_Stream_write},
|
||||
{"raw_write", _wrap_Stream_raw_write},
|
||||
{"get_data", _wrap_Stream_get_data},
|
||||
{0,0}
|
||||
};
|
||||
@@ -8067,6 +8386,7 @@ static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state
|
||||
static swig_type_info _swigt__p_lua_State = {"_p_lua_State", "lua_State *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_p_switch_event_node_t = {"_p_p_switch_event_node_t", "switch_event_node_t **", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum session_flag_t *|session_flag_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)&_wrap_class_std_string, 0};
|
||||
static swig_type_info _swigt__p_switch_call_cause_t = {"_p_switch_call_cause_t", "switch_call_cause_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_channel_state_t = {"_p_switch_channel_state_t", "switch_channel_state_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_channel_t = {"_p_switch_channel_t", "switch_channel_t *", 0, 0, (void*)0, 0};
|
||||
@@ -8098,6 +8418,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_lua_State,
|
||||
&_swigt__p_p_switch_event_node_t,
|
||||
&_swigt__p_session_flag_t,
|
||||
&_swigt__p_std__string,
|
||||
&_swigt__p_switch_call_cause_t,
|
||||
&_swigt__p_switch_channel_state_t,
|
||||
&_swigt__p_switch_channel_t,
|
||||
@@ -8129,6 +8450,7 @@ static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_ca
|
||||
static swig_cast_info _swigc__p_lua_State[] = { {&_swigt__p_lua_State, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_p_switch_event_node_t[] = { {&_swigt__p_p_switch_event_node_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_session_flag_t[] = { {&_swigt__p_session_flag_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_call_cause_t[] = { {&_swigt__p_switch_call_cause_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_channel_state_t[] = { {&_swigt__p_switch_channel_state_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_channel_t[] = { {&_swigt__p_switch_channel_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@@ -8160,6 +8482,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_lua_State,
|
||||
_swigc__p_p_switch_event_node_t,
|
||||
_swigc__p_session_flag_t,
|
||||
_swigc__p_std__string,
|
||||
_swigc__p_switch_call_cause_t,
|
||||
_swigc__p_switch_channel_state_t,
|
||||
_swigc__p_switch_channel_t,
|
||||
|
||||
Reference in New Issue
Block a user