mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 04:11:52 +00:00
add EventConsumer obj to cpp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8884 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1487,24 +1487,28 @@ SWIG_Lua_dostring(lua_State *L, const char* str) {
|
||||
#define SWIGTYPE_p_API swig_types[0]
|
||||
#define SWIGTYPE_p_CoreSession swig_types[1]
|
||||
#define SWIGTYPE_p_Event swig_types[2]
|
||||
#define SWIGTYPE_p_IVRMenu swig_types[3]
|
||||
#define SWIGTYPE_p_LUA__Session swig_types[4]
|
||||
#define SWIGTYPE_p_Stream swig_types[5]
|
||||
#define SWIGTYPE_p_input_callback_state swig_types[6]
|
||||
#define SWIGTYPE_p_lua_State swig_types[7]
|
||||
#define SWIGTYPE_p_session_flag_t swig_types[8]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[9]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[10]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[11]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[12]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[13]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[14]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[17]
|
||||
#define SWIGTYPE_p_void swig_types[18]
|
||||
static swig_type_info *swig_types[20];
|
||||
static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_EventConsumer swig_types[3]
|
||||
#define SWIGTYPE_p_IVRMenu swig_types[4]
|
||||
#define SWIGTYPE_p_LUA__Session swig_types[5]
|
||||
#define SWIGTYPE_p_Stream swig_types[6]
|
||||
#define SWIGTYPE_p_input_callback_state swig_types[7]
|
||||
#define SWIGTYPE_p_lua_State swig_types[8]
|
||||
#define SWIGTYPE_p_session_flag_t swig_types[9]
|
||||
#define SWIGTYPE_p_switch_channel_state_t swig_types[10]
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[11]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[12]
|
||||
#define SWIGTYPE_p_switch_event_node_t swig_types[13]
|
||||
#define SWIGTYPE_p_switch_event_t swig_types[14]
|
||||
#define SWIGTYPE_p_switch_event_types_t swig_types[15]
|
||||
#define SWIGTYPE_p_switch_input_args_t swig_types[16]
|
||||
#define SWIGTYPE_p_switch_input_type_t swig_types[17]
|
||||
#define SWIGTYPE_p_switch_priority_t swig_types[18]
|
||||
#define SWIGTYPE_p_switch_queue_t swig_types[19]
|
||||
#define SWIGTYPE_p_switch_status_t swig_types[20]
|
||||
#define SWIGTYPE_p_switch_stream_handle_t swig_types[21]
|
||||
#define SWIGTYPE_p_void swig_types[22]
|
||||
static swig_type_info *swig_types[24];
|
||||
static swig_module_info swig_module = {swig_types, 23, 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)
|
||||
|
||||
@@ -3092,6 +3096,588 @@ static swig_lua_class *swig_Event_bases[] = {0};
|
||||
static const char *swig_Event_base_names[] = {0};
|
||||
static swig_lua_class _wrap_class_Event = { "Event", &SWIGTYPE_p_Event,_wrap_new_Event, swig_delete_Event, swig_Event_methods, swig_Event_attributes, swig_Event_bases, swig_Event_base_names };
|
||||
|
||||
static int _wrap_EventConsumer_events_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_queue_t *arg2 = (switch_queue_t *) 0 ;
|
||||
|
||||
SWIG_check_num_args("events",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
|
||||
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("events",2,"switch_queue_t *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_events_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_queue_t,SWIG_POINTER_DISOWN))){
|
||||
SWIG_fail_ptr("EventConsumer_events_set",2,SWIGTYPE_p_switch_queue_t);
|
||||
}
|
||||
|
||||
if (arg1) (arg1)->events = arg2;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_events_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_queue_t *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("events",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("events",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_events_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (switch_queue_t *) ((arg1)->events);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_switch_queue_t,0); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_e_event_id_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_types_t arg2 ;
|
||||
switch_event_types_t *argp2 ;
|
||||
|
||||
SWIG_check_num_args("e_event_id",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
|
||||
if(!lua_isuserdata(L,2)) SWIG_fail_arg("e_event_id",2,"switch_event_types_t");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_event_id_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_switch_event_types_t,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_event_id_set",2,SWIGTYPE_p_switch_event_types_t);
|
||||
}
|
||||
arg2 = *argp2;
|
||||
|
||||
if (arg1) (arg1)->e_event_id = arg2;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_e_event_id_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_types_t result;
|
||||
|
||||
SWIG_check_num_args("e_event_id",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_event_id",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_event_id_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = ((arg1)->e_event_id);
|
||||
SWIG_arg=0;
|
||||
{
|
||||
switch_event_types_t * resultptr = new switch_event_types_t((switch_event_types_t &) result);
|
||||
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_switch_event_types_t,1); SWIG_arg++;
|
||||
}
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_node_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t *arg2 = (switch_event_node_t *) 0 ;
|
||||
|
||||
SWIG_check_num_args("node",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node",1,"EventConsumer *");
|
||||
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("node",2,"switch_event_node_t *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_node_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_switch_event_node_t,SWIG_POINTER_DISOWN))){
|
||||
SWIG_fail_ptr("EventConsumer_node_set",2,SWIGTYPE_p_switch_event_node_t);
|
||||
}
|
||||
|
||||
if (arg1) (arg1)->node = arg2;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_node_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
switch_event_node_t *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("node",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("node",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_node_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (switch_event_node_t *) ((arg1)->node);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_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_e_callback_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
SWIG_check_num_args("e_callback",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("e_callback",2,"char *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_callback_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
{
|
||||
if (arg1->e_callback) delete [] arg1->e_callback;
|
||||
if (arg2) {
|
||||
arg1->e_callback = (char *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->e_callback, (const char *)arg2);
|
||||
} else {
|
||||
arg1->e_callback = 0;
|
||||
}
|
||||
}
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_e_callback_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("e_callback",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_callback",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_callback_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (char *) ((arg1)->e_callback);
|
||||
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_EventConsumer_e_subclass_name_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
SWIG_check_num_args("e_subclass_name",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("e_subclass_name",2,"char *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_subclass_name_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
{
|
||||
if (arg1->e_subclass_name) delete [] arg1->e_subclass_name;
|
||||
if (arg2) {
|
||||
arg1->e_subclass_name = (char *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->e_subclass_name, (const char *)arg2);
|
||||
} else {
|
||||
arg1->e_subclass_name = 0;
|
||||
}
|
||||
}
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_e_subclass_name_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("e_subclass_name",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_subclass_name",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_subclass_name_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (char *) ((arg1)->e_subclass_name);
|
||||
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_EventConsumer_e_cb_arg_set(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
SWIG_check_num_args("e_cb_arg",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("e_cb_arg",2,"char *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_cb_arg_set",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
{
|
||||
if (arg1->e_cb_arg) delete [] arg1->e_cb_arg;
|
||||
if (arg2) {
|
||||
arg1->e_cb_arg = (char *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->e_cb_arg, (const char *)arg2);
|
||||
} else {
|
||||
arg1->e_cb_arg = 0;
|
||||
}
|
||||
}
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_e_cb_arg_get(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("e_cb_arg",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("e_cb_arg",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_e_cb_arg_get",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (char *) ((arg1)->e_cb_arg);
|
||||
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_new_EventConsumer__SWIG_0(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
char *arg1 = (char *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
EventConsumer *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("EventConsumer",2,2)
|
||||
if(!lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *");
|
||||
if(!lua_isstring(L,2)) SWIG_fail_arg("EventConsumer",2,"char const *");
|
||||
arg1 = (char *)lua_tostring(L, 1);
|
||||
arg2 = (char *)lua_tostring(L, 2);
|
||||
result = (EventConsumer *)new EventConsumer((char const *)arg1,(char const *)arg2);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,1); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_new_EventConsumer__SWIG_1(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
char *arg1 = (char *) 0 ;
|
||||
EventConsumer *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("EventConsumer",1,1)
|
||||
if(!lua_isstring(L,1)) SWIG_fail_arg("EventConsumer",1,"char const *");
|
||||
arg1 = (char *)lua_tostring(L, 1);
|
||||
result = (EventConsumer *)new EventConsumer((char const *)arg1);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_EventConsumer,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 argc;
|
||||
int argv[3]={
|
||||
1,2,3
|
||||
};
|
||||
|
||||
argc = lua_gettop(L);
|
||||
if (argc == 1) {
|
||||
int _v;
|
||||
{
|
||||
_v = lua_isstring(L,argv[0]);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_EventConsumer__SWIG_1(L);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
_v = lua_isstring(L,argv[0]);
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = lua_isstring(L,argv[1]);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_EventConsumer__SWIG_0(L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lua_pushstring(L,"No matching function for overloaded 'new_EventConsumer'");
|
||||
lua_error(L);return 0;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_delete_EventConsumer(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
|
||||
SWIG_check_num_args("EventConsumer",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("EventConsumer",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,SWIG_POINTER_DISOWN))){
|
||||
SWIG_fail_ptr("delete_EventConsumer",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
delete arg1;
|
||||
|
||||
SWIG_arg=0;
|
||||
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_pop__SWIG_0(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
int arg2 ;
|
||||
Event *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("pop",2,2)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *");
|
||||
if(!lua_isnumber(L,2)) SWIG_fail_arg("pop",2,"int");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
arg2 = (int)lua_tonumber(L, 2);
|
||||
result = (Event *)(arg1)->pop(arg2);
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,0); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_pop__SWIG_1(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
EventConsumer *arg1 = (EventConsumer *) 0 ;
|
||||
Event *result = 0 ;
|
||||
|
||||
SWIG_check_num_args("pop",1,1)
|
||||
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pop",1,"EventConsumer *");
|
||||
|
||||
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_EventConsumer,0))){
|
||||
SWIG_fail_ptr("EventConsumer_pop",1,SWIGTYPE_p_EventConsumer);
|
||||
}
|
||||
|
||||
result = (Event *)(arg1)->pop();
|
||||
SWIG_arg=0;
|
||||
SWIG_NewPointerObj(L,result,SWIGTYPE_p_Event,0); SWIG_arg++;
|
||||
return SWIG_arg;
|
||||
|
||||
if(0) SWIG_fail;
|
||||
|
||||
fail:
|
||||
lua_error(L);
|
||||
return SWIG_arg;
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_EventConsumer_pop(lua_State* L) {
|
||||
int argc;
|
||||
int argv[3]={
|
||||
1,2,3
|
||||
};
|
||||
|
||||
argc = lua_gettop(L);
|
||||
if (argc == 1) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_EventConsumer, 0)) {
|
||||
_v = 0;
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_EventConsumer_pop__SWIG_1(L);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_EventConsumer, 0)) {
|
||||
_v = 0;
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = lua_isnumber(L,argv[1]);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_EventConsumer_pop__SWIG_0(L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lua_pushstring(L,"No matching function for overloaded 'EventConsumer_pop'");
|
||||
lua_error(L);return 0;
|
||||
}
|
||||
|
||||
|
||||
static void swig_delete_EventConsumer(void *obj) {
|
||||
EventConsumer *arg1 = (EventConsumer *) obj;
|
||||
delete arg1;
|
||||
}
|
||||
static swig_lua_method swig_EventConsumer_methods[] = {
|
||||
{"pop", _wrap_EventConsumer_pop},
|
||||
{0,0}
|
||||
};
|
||||
static swig_lua_attribute swig_EventConsumer_attributes[] = {
|
||||
{ "events", _wrap_EventConsumer_events_get, _wrap_EventConsumer_events_set},
|
||||
{ "e_event_id", _wrap_EventConsumer_e_event_id_get, _wrap_EventConsumer_e_event_id_set},
|
||||
{ "node", _wrap_EventConsumer_node_get, _wrap_EventConsumer_node_set},
|
||||
{ "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},
|
||||
{0,0,0}
|
||||
};
|
||||
static swig_lua_class *swig_EventConsumer_bases[] = {0};
|
||||
static const char *swig_EventConsumer_base_names[] = {0};
|
||||
static swig_lua_class _wrap_class_EventConsumer = { "EventConsumer", &SWIGTYPE_p_EventConsumer,_wrap_new_EventConsumer, swig_delete_EventConsumer, swig_EventConsumer_methods, swig_EventConsumer_attributes, swig_EventConsumer_bases, swig_EventConsumer_base_names };
|
||||
|
||||
static int _wrap_delete_CoreSession(lua_State* L) {
|
||||
int SWIG_arg = -1;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
@@ -6412,6 +6998,7 @@ static void *_p_LUA__SessionTo_p_CoreSession(void *x, int *newmemory) {
|
||||
static swig_type_info _swigt__p_API = {"_p_API", "API *", 0, 0, (void*)&_wrap_class_API, 0};
|
||||
static swig_type_info _swigt__p_CoreSession = {"_p_CoreSession", "CoreSession *", 0, 0, (void*)&_wrap_class_CoreSession, 0};
|
||||
static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)&_wrap_class_Event, 0};
|
||||
static swig_type_info _swigt__p_EventConsumer = {"_p_EventConsumer", "EventConsumer *", 0, 0, (void*)&_wrap_class_EventConsumer, 0};
|
||||
static swig_type_info _swigt__p_IVRMenu = {"_p_IVRMenu", "IVRMenu *", 0, 0, (void*)&_wrap_class_IVRMenu, 0};
|
||||
static swig_type_info _swigt__p_LUA__Session = {"_p_LUA__Session", "LUA::Session *", 0, 0, (void*)&_wrap_class_LUA_Session, 0};
|
||||
static swig_type_info _swigt__p_Stream = {"_p_Stream", "Stream *", 0, 0, (void*)&_wrap_class_Stream, 0};
|
||||
@@ -6421,10 +7008,13 @@ static swig_type_info _swigt__p_session_flag_t = {"_p_session_flag_t", "enum ses
|
||||
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};
|
||||
static swig_type_info _swigt__p_switch_core_session_t = {"_p_switch_core_session_t", "switch_core_session_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_event_node_t = {"_p_switch_event_node_t", "switch_event_node_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_event_t = {"_p_switch_event_t", "switch_event_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_event_types_t = {"_p_switch_event_types_t", "switch_event_types_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_input_args_t = {"_p_switch_input_args_t", "switch_input_args_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_input_type_t = {"_p_switch_input_type_t", "switch_input_type_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_priority_t = {"_p_switch_priority_t", "switch_priority_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_queue_t = {"_p_switch_queue_t", "switch_queue_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_status_t = {"_p_switch_status_t", "switch_status_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_stream_handle_t = {"_p_switch_stream_handle_t", "switch_stream_handle_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
|
||||
@@ -6433,6 +7023,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_API,
|
||||
&_swigt__p_CoreSession,
|
||||
&_swigt__p_Event,
|
||||
&_swigt__p_EventConsumer,
|
||||
&_swigt__p_IVRMenu,
|
||||
&_swigt__p_LUA__Session,
|
||||
&_swigt__p_Stream,
|
||||
@@ -6442,10 +7033,13 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_switch_channel_state_t,
|
||||
&_swigt__p_switch_channel_t,
|
||||
&_swigt__p_switch_core_session_t,
|
||||
&_swigt__p_switch_event_node_t,
|
||||
&_swigt__p_switch_event_t,
|
||||
&_swigt__p_switch_event_types_t,
|
||||
&_swigt__p_switch_input_args_t,
|
||||
&_swigt__p_switch_input_type_t,
|
||||
&_swigt__p_switch_priority_t,
|
||||
&_swigt__p_switch_queue_t,
|
||||
&_swigt__p_switch_status_t,
|
||||
&_swigt__p_switch_stream_handle_t,
|
||||
&_swigt__p_void,
|
||||
@@ -6454,6 +7048,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
static swig_cast_info _swigc__p_API[] = { {&_swigt__p_API, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_CoreSession[] = { {&_swigt__p_CoreSession, 0, 0, 0}, {&_swigt__p_LUA__Session, _p_LUA__SessionTo_p_CoreSession, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_EventConsumer[] = { {&_swigt__p_EventConsumer, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_IVRMenu[] = { {&_swigt__p_IVRMenu, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_LUA__Session[] = { {&_swigt__p_LUA__Session, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_Stream[] = { {&_swigt__p_Stream, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@@ -6463,10 +7058,13 @@ static swig_cast_info _swigc__p_session_flag_t[] = { {&_swigt__p_session_flag_t
|
||||
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}};
|
||||
static swig_cast_info _swigc__p_switch_core_session_t[] = { {&_swigt__p_switch_core_session_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_event_node_t[] = { {&_swigt__p_switch_event_node_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_event_t[] = { {&_swigt__p_switch_event_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_event_types_t[] = { {&_swigt__p_switch_event_types_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_input_args_t[] = { {&_swigt__p_switch_input_args_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_input_type_t[] = { {&_swigt__p_switch_input_type_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_priority_t[] = { {&_swigt__p_switch_priority_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_queue_t[] = { {&_swigt__p_switch_queue_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_status_t[] = { {&_swigt__p_switch_status_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_stream_handle_t[] = { {&_swigt__p_switch_stream_handle_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@@ -6475,6 +7073,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_API,
|
||||
_swigc__p_CoreSession,
|
||||
_swigc__p_Event,
|
||||
_swigc__p_EventConsumer,
|
||||
_swigc__p_IVRMenu,
|
||||
_swigc__p_LUA__Session,
|
||||
_swigc__p_Stream,
|
||||
@@ -6484,10 +7083,13 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_switch_channel_state_t,
|
||||
_swigc__p_switch_channel_t,
|
||||
_swigc__p_switch_core_session_t,
|
||||
_swigc__p_switch_event_node_t,
|
||||
_swigc__p_switch_event_t,
|
||||
_swigc__p_switch_event_types_t,
|
||||
_swigc__p_switch_input_args_t,
|
||||
_swigc__p_switch_input_type_t,
|
||||
_swigc__p_switch_priority_t,
|
||||
_swigc__p_switch_queue_t,
|
||||
_swigc__p_switch_status_t,
|
||||
_swigc__p_switch_stream_handle_t,
|
||||
_swigc__p_void,
|
||||
|
||||
Reference in New Issue
Block a user