This commit is contained in:
Seven Du committed 2014-09-04 10:31:23 +08:00
1 parent b2554848a1
commit a80f1d3524
9 files changed
+650 -68

No files matched your search

+93 -17
View File
@@ -1459,23 +1459,24 @@ SWIG_Perl_SetModule(swig_module_info *module) {
#define SWIGTYPE_p_input_callback_state swig_types[10]
#define SWIGTYPE_p_p_switch_event_node_t swig_types[11]
#define SWIGTYPE_p_session_flag_t swig_types[12]
#define SWIGTYPE_p_switch_call_cause_t swig_types[13]
#define SWIGTYPE_p_switch_channel_state_t swig_types[14]
#define SWIGTYPE_p_switch_channel_t swig_types[15]
#define SWIGTYPE_p_switch_core_session_t swig_types[16]
#define SWIGTYPE_p_switch_event_t swig_types[17]
#define SWIGTYPE_p_switch_event_types_t swig_types[18]
#define SWIGTYPE_p_switch_input_args_t swig_types[19]
#define SWIGTYPE_p_switch_input_type_t swig_types[20]
#define SWIGTYPE_p_switch_priority_t swig_types[21]
#define SWIGTYPE_p_switch_queue_t swig_types[22]
#define SWIGTYPE_p_switch_state_handler_table_t swig_types[23]
#define SWIGTYPE_p_switch_status_t swig_types[24]
#define SWIGTYPE_p_switch_stream_handle_t swig_types[25]
#define SWIGTYPE_p_uint32_t swig_types[26]
#define SWIGTYPE_p_void swig_types[27]
static swig_type_info *swig_types[29];
static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0};
#define SWIGTYPE_p_std__string 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 SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@@ -3399,6 +3400,34 @@ XS(_wrap_delete_Stream) {
}
XS(_wrap_Stream_read) {
{
Stream *arg1 = (Stream *) 0 ;
std::string result;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: Stream_read(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Stream, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stream_read" "', argument " "1"" of type '" "Stream *""'");
}
arg1 = reinterpret_cast< Stream * >(argp1);
result = (arg1)->read();
ST(argvi) = SWIG_NewPointerObj((new std::string(static_cast< const std::string& >(result))), SWIGTYPE_p_std__string, SWIG_POINTER_OWN | 0); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_Stream_write) {
{
Stream *arg1 = (Stream *) 0 ;
@@ -3437,6 +3466,47 @@ XS(_wrap_Stream_write) {
}
XS(_wrap_Stream_raw_write) {
{
Stream *arg1 = (Stream *) 0 ;
std::string arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 2) || (items > 2)) {
SWIG_croak("Usage: Stream_raw_write(self,data);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Stream, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Stream_raw_write" "', argument " "1"" of type '" "Stream *""'");
}
arg1 = reinterpret_cast< Stream * >(argp1);
{
res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__string, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Stream_raw_write" "', argument " "2"" of type '" "std::string""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Stream_raw_write" "', argument " "2"" of type '" "std::string""'");
} else {
arg2 = *(reinterpret_cast< std::string * >(argp2));
}
}
(arg1)->raw_write(arg2);
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_Stream_get_data) {
{
Stream *arg1 = (Stream *) 0 ;
@@ -9909,6 +9979,7 @@ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_input_callback_state = {"_p_input_callback_state", "input_callback_state_t *|input_callback_state *", 0, 0, (void*)"freeswitch::input_callback_state_t", 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*)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};
static swig_type_info _swigt__p_switch_channel_t = {"_p_switch_channel_t", "switch_channel_t *", 0, 0, (void*)0, 0};
@@ -9939,6 +10010,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_input_callback_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,
@@ -9969,6 +10041,7 @@ static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 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_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}};
@@ -9999,6 +10072,7 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_input_callback_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,
@@ -10063,7 +10137,9 @@ static swig_command_info swig_commands[] = {
{"freeswitchc::delete_DTMF", _wrap_delete_DTMF},
{"freeswitchc::new_Stream", _wrap_new_Stream},
{"freeswitchc::delete_Stream", _wrap_delete_Stream},
{"freeswitchc::Stream_read", _wrap_Stream_read},
{"freeswitchc::Stream_write", _wrap_Stream_write},
{"freeswitchc::Stream_raw_write", _wrap_Stream_raw_write},
{"freeswitchc::Stream_get_data", _wrap_Stream_get_data},
{"freeswitchc::Event_event_set", _wrap_Event_event_set},
{"freeswitchc::Event_event_get", _wrap_Event_event_get},