From be1f9c40bc923d1c385b3f23cb88c860cb3f5e6d Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 11 Dec 2009 02:50:51 +0000 Subject: [PATCH] swigall git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15898 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../languages/mod_managed/freeswitch_wrap.cxx | 44 ----------------- src/mod/languages/mod_managed/managed/swig.cs | 48 ------------------- src/mod/languages/mod_perl/mod_perl_wrap.cpp | 6 +-- 3 files changed, 3 insertions(+), 95 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index dbe71a238c..7eb5223de1 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -6112,28 +6112,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_sprintf(void * jarg1, c } -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_session_vsprintf(void * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; - char *arg2 = (char *) 0 ; - va_list arg3 ; - char *result = 0 ; - va_list *argp3 ; - - arg1 = (switch_core_session_t *)jarg1; - arg2 = (char *)jarg2; - argp3 = (va_list *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null va_list", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_core_session_vsprintf(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_sprintf(void * jarg1, char * jarg2) { char * jresult ; switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; @@ -6149,28 +6127,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_sprintf(void * jarg1, char * ja } -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_core_vsprintf(void * jarg1, char * jarg2, void * jarg3) { - char * jresult ; - switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ; - char *arg2 = (char *) 0 ; - va_list arg3 ; - char *result = 0 ; - va_list *argp3 ; - - arg1 = (switch_memory_pool_t *)jarg1; - arg2 = (char *)jarg2; - argp3 = (va_list *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null va_list", 0); - return 0; - } - arg3 = *argp3; - result = (char *)switch_core_vsprintf(arg1,(char const *)arg2,arg3); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_session_get_pool(void * jarg1) { void * jresult ; switch_core_session_t *arg1 = (switch_core_session_t *) 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index dfc5b585ad..39e46e198c 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1148,23 +1148,11 @@ public class freeswitch { return ret; } - public static string switch_core_session_vsprintf(SWIGTYPE_p_switch_core_session session, string fmt, SWIGTYPE_p_va_list ap) { - string ret = freeswitchPINVOKE.switch_core_session_vsprintf(SWIGTYPE_p_switch_core_session.getCPtr(session), fmt, SWIGTYPE_p_va_list.getCPtr(ap)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static string switch_core_sprintf(SWIGTYPE_p_apr_pool_t pool, string fmt) { string ret = freeswitchPINVOKE.switch_core_sprintf(SWIGTYPE_p_apr_pool_t.getCPtr(pool), fmt); return ret; } - public static string switch_core_vsprintf(SWIGTYPE_p_apr_pool_t pool, string fmt, SWIGTYPE_p_va_list ap) { - string ret = freeswitchPINVOKE.switch_core_vsprintf(SWIGTYPE_p_apr_pool_t.getCPtr(pool), fmt, SWIGTYPE_p_va_list.getCPtr(ap)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static SWIGTYPE_p_apr_pool_t switch_core_session_get_pool(SWIGTYPE_p_switch_core_session session) { IntPtr cPtr = freeswitchPINVOKE.switch_core_session_get_pool(SWIGTYPE_p_switch_core_session.getCPtr(session)); SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); @@ -6317,15 +6305,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_sprintf")] public static extern string switch_core_session_sprintf(HandleRef jarg1, string jarg2); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_vsprintf")] - public static extern string switch_core_session_vsprintf(HandleRef jarg1, string jarg2, HandleRef jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sprintf")] public static extern string switch_core_sprintf(HandleRef jarg1, string jarg2); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_vsprintf")] - public static extern string switch_core_vsprintf(HandleRef jarg1, string jarg2, HandleRef jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_pool")] public static extern IntPtr switch_core_session_get_pool(HandleRef jarg1); @@ -16694,36 +16676,6 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; -public class SWIGTYPE_p_va_list { - private HandleRef swigCPtr; - - internal SWIGTYPE_p_va_list(IntPtr cPtr, bool futureUse) { - swigCPtr = new HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_va_list() { - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - - internal static HandleRef getCPtr(SWIGTYPE_p_va_list obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.35 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - -using System; -using System.Runtime.InteropServices; - public class SWIGTYPE_p_void { private HandleRef swigCPtr; diff --git a/src/mod/languages/mod_perl/mod_perl_wrap.cpp b/src/mod/languages/mod_perl/mod_perl_wrap.cpp index 4dcb7cf32b..34787520d8 100644 --- a/src/mod/languages/mod_perl/mod_perl_wrap.cpp +++ b/src/mod/languages/mod_perl/mod_perl_wrap.cpp @@ -12073,17 +12073,17 @@ XS(SWIG_init) { SWIG_TypeClientData(SWIGTYPE_p_IVRMenu, (void*) "freeswitch::IVRMenu"); SWIG_TypeClientData(SWIGTYPE_p_API, (void*) "freeswitch::API"); SWIG_TypeClientData(SWIGTYPE_p_input_callback_state, (void*) "freeswitch::input_callback_state_t"); - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_HUP", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_HUP))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_FREE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_FREE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; - /*@SWIG:/usr/local/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { + /*@SWIG:/usr/share/swig/1.3.35/perl5/perltypemaps.swg,64,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "S_RDLOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(S_RDLOCK))); SvREADONLY_on(sv);