forked from Mirrors/freeswitch
doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8233 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
580f545e26
commit
21f73e6827
@ -55,8 +55,6 @@ package freeswitch;
|
||||
*bridge = *freeswitchc::bridge;
|
||||
*hanguphook = *freeswitchc::hanguphook;
|
||||
*dtmf_callback = *freeswitchc::dtmf_callback;
|
||||
*api_execute = *freeswitchc::api_execute;
|
||||
*api_reply_delete = *freeswitchc::api_reply_delete;
|
||||
|
||||
############# Class : freeswitch::API ##############
|
||||
|
||||
|
@ -3,11 +3,6 @@
|
||||
|
||||
#include <switch_cpp.h>
|
||||
|
||||
void console_log(char *level_str, char *msg);
|
||||
void console_clean_log(char *msg);
|
||||
char *api_execute(char *cmd, char *arg);
|
||||
void api_reply_delete(char *reply);
|
||||
|
||||
|
||||
class Session : public CoreSession {
|
||||
private:
|
||||
|
@ -6320,74 +6320,6 @@ XS(_wrap_dtmf_callback) {
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_api_execute) {
|
||||
{
|
||||
char *arg1 = (char *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *result = 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
int argvi = 0;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 2) || (items > 2)) {
|
||||
SWIG_croak("Usage: api_execute(cmd,arg);");
|
||||
}
|
||||
res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api_execute" "', argument " "1"" of type '" "char *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "api_execute" "', argument " "2"" of type '" "char *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (char *)api_execute(arg1,arg2);
|
||||
ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_api_reply_delete) {
|
||||
{
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
int argvi = 0;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: api_reply_delete(reply);");
|
||||
}
|
||||
res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api_reply_delete" "', argument " "1"" of type '" "char *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
api_reply_delete(arg1);
|
||||
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_new_Session__SWIG_0) {
|
||||
{
|
||||
Session *result = 0 ;
|
||||
@ -6884,8 +6816,6 @@ static swig_command_info swig_commands[] = {
|
||||
{"freeswitchc::bridge", _wrap_bridge},
|
||||
{"freeswitchc::hanguphook", _wrap_hanguphook},
|
||||
{"freeswitchc::dtmf_callback", _wrap_dtmf_callback},
|
||||
{"freeswitchc::api_execute", _wrap_api_execute},
|
||||
{"freeswitchc::api_reply_delete", _wrap_api_reply_delete},
|
||||
{"freeswitchc::new_Session", _wrap_new_Session},
|
||||
{"freeswitchc::delete_Session", _wrap_delete_Session},
|
||||
{"freeswitchc::Session_begin_allow_threads", _wrap_Session_begin_allow_threads},
|
||||
|
Loading…
Reference in New Issue
Block a user