mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 04:11:52 +00:00
fix eventConsumer issue and add flush() method
This commit is contained in:
@@ -1494,24 +1494,25 @@ SWIG_Lua_dostring(lua_State *L, const char* str) {
|
||||
#define SWIGTYPE_p_Stream swig_types[7]
|
||||
#define SWIGTYPE_p_input_callback_state swig_types[8]
|
||||
#define SWIGTYPE_p_lua_State swig_types[9]
|
||||
#define SWIGTYPE_p_session_flag_t swig_types[10]
|
||||
#define SWIGTYPE_p_switch_call_cause_t swig_types[11]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[12]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[13]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[14]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_event_types_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[17]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[18]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[19]
|
||||
#define SWIGTYPE_p_switch_queue_t swig_types[20]
|
||||
#define SWIGTYPE_p_switch_state_handler_table_t swig_types[21]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[22]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[23]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[24]
|
||||
#define SWIGTYPE_p_void swig_types[25]
|
||||
static swig_type_info *swig_types[27];
|
||||
static swig_module_info swig_module = {swig_types, 26, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_p_switch_event_node_t swig_types[10]
|
||||
#define SWIGTYPE_p_session_flag_t swig_types[11]
|
||||
#define SWIGTYPE_p_switch_call_cause_t swig_types[12]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[13]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[14]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_event_types_t swig_types[17]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[18]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[19]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[20]
|
||||
#define SWIGTYPE_p_switch_queue_t swig_types[21]
|
||||
#define SWIGTYPE_p_switch_state_handler_table_t swig_types[22]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[23]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[24]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[25]
|
||||
#define SWIGTYPE_p_void swig_types[26]
|
||||
static swig_type_info *swig_types[28];
|
||||
static swig_module_info swig_module = {swig_types, 27, 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)
|
||||
|
||||
@@ -3417,6 +3418,128 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_enodes_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t **arg2 ;
|
||||
|
||||
SWIG_check_num_args("enodes",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
|
||||
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("enodes",2,"switch_event_node_t *[SWITCH_EVENT_ALL+1]");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_enodes_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_switch_event_node_t,0))){
|
||||
SWIG_fail_ptr("EventConsumer_enodes_set",2,SWIGTYPE_p_p_switch_event_node_t);
|
||||
}
|
||||
|
||||
{
|
||||
size_t ii;
|
||||
switch_event_node_t * *b = (switch_event_node_t * *) arg1->enodes;
|
||||
for (ii = 0; ii < (size_t)SWITCH_EVENT_ALL+1; ii++) b[ii] = *((switch_event_node_t * *) arg2 + ii);
|
||||
}
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_enodes_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t **result = 0 ;
|
||||
|
||||
SWIG_check_num_args("enodes",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("enodes",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_enodes_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (switch_event_node_t **)(switch_event_node_t **) ((arg1)->enodes);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_p_switch_event_node_t,0); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_node_index_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
uint32_t *argp2 ;
|
||||
|
||||
SWIG_check_num_args("node_index",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
|
||||
if(!lua_isuserdata(L,2)) SWIG_fail_arg("node_index",2,"uint32_t");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_node_index_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_uint32_t,0))){
|
||||
SWIG_fail_ptr("EventConsumer_node_index_set",2,SWIGTYPE_p_uint32_t);
|
||||
}
|
||||
arg2 = *argp2;
|
||||
|
||||
if (arg1) (arg1)->node_index = arg2;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_node_index_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
SWIG_check_num_args("node_index",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node_index",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_node_index_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = ((arg1)->node_index);
|
||||
SWIG_arg=0;
|
||||
{
|
||||
uint32_t * resultptr = new uint32_t((uint32_t &) result);
|
||||
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_uint32_t,1); SWIG_arg++;
|
||||
}
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_new_EventConsumer(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
char *arg1 = (char *) NULL ;
|
||||
@@ -3548,6 +3671,8 @@ static swig_lua_attribute swig_EventConsumer_attributes[] = {
|
||||
{ "e_callback", _wrap_EventConsumer_e_callback_get, _wrap_EventConsumer_e_callback_set},
|
||||
{ "e_subclass_name", _wrap_EventConsumer_e_subclass_name_get, _wrap_EventConsumer_e_subclass_name_set},
|
||||
{ "e_cb_arg", _wrap_EventConsumer_e_cb_arg_get, _wrap_EventConsumer_e_cb_arg_set},
|
||||
{ "enodes", _wrap_EventConsumer_enodes_get, _wrap_EventConsumer_enodes_set},
|
||||
{ "node_index", _wrap_EventConsumer_node_index_get, _wrap_EventConsumer_node_index_set},
|
||||
{0,0,0}
|
||||
};
|
||||
static swig_lua_class *swig_EventConsumer_bases[] = {0};
|
||||
@@ -6922,6 +7047,7 @@ static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session
|
||||
static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0};
|
||||
static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)&_wrap_class_input_callback_state_t, 0};
|
||||
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_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};
|
||||
@@ -6950,6 +7076,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_Stream,
|
||||
&_swigt__p_input_callback_state,
|
||||
&_swigt__p_lua_State,
|
||||
&_swigt__p_p_switch_event_node_t,
|
||||
&_swigt__p_session_flag_t,
|
||||
&_swigt__p_switch_call_cause_t,
|
||||
&_swigt__p_switch_channel_state_t,
|
||||
@@ -6978,6 +7105,7 @@ static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0,
|
||||
static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_input_callback_state[] = { {&_swigt__p_input_callback_state, 0, 0, 0},{0, 0, 0, 0}};
|
||||
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_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}};
|
||||
@@ -7006,6 +7134,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_Stream,
|
||||
_swigc__p_input_callback_state,
|
||||
_swigc__p_lua_State,
|
||||
_swigc__p_p_switch_event_node_t,
|
||||
_swigc__p_session_flag_t,
|
||||
_swigc__p_switch_call_cause_t,
|
||||
_swigc__p_switch_channel_state_t,
|
||||
|
||||
Reference in New Issue
Block a user