diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index d1c0dfcb31..f2aebaf078 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -5710,6 +5710,35 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_arg_get(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_stamp_set(void * jarg1, void * jarg2) { + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_time_t arg2 ; + switch_time_t *argp2 ; + + arg1 = (switch_app_log *)jarg1; + argp2 = (switch_time_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->stamp = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_stamp_get(void * jarg1) { + void * jresult ; + switch_app_log *arg1 = (switch_app_log *) 0 ; + switch_time_t result; + + arg1 = (switch_app_log *)jarg1; + result = ((arg1)->stamp); + jresult = new switch_time_t((switch_time_t &)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_next_set(void * jarg1, void * jarg2) { switch_app_log *arg1 = (switch_app_log *) 0 ; switch_app_log *arg2 = (switch_app_log *) 0 ; @@ -6926,6 +6955,30 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_state_handler(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_curl_count(void * jarg1) { + int jresult ; + int *arg1 = (int *) 0 ; + int result; + + arg1 = (int *)jarg1; + result = (int)switch_core_curl_count(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ssl_count(void * jarg1) { + int jresult ; + int *arg1 = (int *) 0 ; + int result; + + arg1 = (int *)jarg1; + result = (int)switch_core_ssl_count(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_remove_state_handler(void * jarg1) { switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ; @@ -13455,6 +13508,108 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_split_user_domain(char * jarg1, void * } +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_var_set(void * jarg1, char * jarg2) { + profile_node_t *arg1 = (profile_node_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (profile_node_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg1->var) delete [] arg1->var; + if (arg2) { + arg1->var = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->var, (const char *)arg2); + } else { + arg1->var = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_var_get(void * jarg1) { + char * jresult ; + profile_node_t *arg1 = (profile_node_t *) 0 ; + char *result = 0 ; + + arg1 = (profile_node_t *)jarg1; + result = (char *) ((arg1)->var); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_val_set(void * jarg1, char * jarg2) { + profile_node_t *arg1 = (profile_node_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (profile_node_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg1->val) delete [] arg1->val; + if (arg2) { + arg1->val = (char *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->val, (const char *)arg2); + } else { + arg1->val = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_val_get(void * jarg1) { + char * jresult ; + profile_node_t *arg1 = (profile_node_t *) 0 ; + char *result = 0 ; + + arg1 = (profile_node_t *)jarg1; + result = (char *) ((arg1)->val); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_next_set(void * jarg1, void * jarg2) { + profile_node_t *arg1 = (profile_node_t *) 0 ; + profile_node_s *arg2 = (profile_node_s *) 0 ; + + arg1 = (profile_node_t *)jarg1; + arg2 = (profile_node_s *)jarg2; + if (arg1) (arg1)->next = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_profile_node_t_next_get(void * jarg1) { + void * jresult ; + profile_node_t *arg1 = (profile_node_t *) 0 ; + profile_node_s *result = 0 ; + + arg1 = (profile_node_t *)jarg1; + result = (profile_node_s *) ((arg1)->next); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_profile_node_t() { + void * jresult ; + profile_node_t *result = 0 ; + + result = (profile_node_t *)new profile_node_t(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_profile_node_t(void * jarg1) { + profile_node_t *arg1 = (profile_node_t *) 0 ; + + arg1 = (profile_node_t *)jarg1; + delete arg1; + +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) { switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; char *arg2 = (char *) 0 ; @@ -14336,6 +14491,29 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jar } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_soft_set(void * jarg1, void * jarg2) { + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + profile_node_t *arg2 = (profile_node_t *) 0 ; + + arg1 = (switch_caller_profile *)jarg1; + arg2 = (profile_node_t *)jarg2; + if (arg1) (arg1)->soft = arg2; + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_soft_get(void * jarg1) { + void * jresult ; + switch_caller_profile *arg1 = (switch_caller_profile *) 0 ; + profile_node_t *result = 0 ; + + arg1 = (switch_caller_profile *)jarg1; + result = (profile_node_t *) ((arg1)->soft); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() { void * jresult ; switch_caller_profile *result = 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index d06e9881d4..33e754b8b7 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -1151,6 +1151,16 @@ public class freeswitch { return ret; } + public static int switch_core_curl_count(SWIGTYPE_p_int val) { + int ret = freeswitchPINVOKE.switch_core_curl_count(SWIGTYPE_p_int.getCPtr(val)); + return ret; + } + + public static int switch_core_ssl_count(SWIGTYPE_p_int val) { + int ret = freeswitchPINVOKE.switch_core_ssl_count(SWIGTYPE_p_int.getCPtr(val)); + return ret; + } + public static void switch_core_remove_state_handler(switch_state_handler_table state_handler) { freeswitchPINVOKE.switch_core_remove_state_handler(switch_state_handler_table.getCPtr(state_handler)); } @@ -7272,6 +7282,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_get")] public static extern string switch_app_log_arg_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_set")] + public static extern void switch_app_log_stamp_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_get")] + public static extern IntPtr switch_app_log_stamp_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_set")] public static extern void switch_app_log_next_set(HandleRef jarg1, HandleRef jarg2); @@ -7566,6 +7582,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_state_handler")] public static extern int switch_core_add_state_handler(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_curl_count")] + public static extern int switch_core_curl_count(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_ssl_count")] + public static extern int switch_core_ssl_count(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_core_remove_state_handler")] public static extern void switch_core_remove_state_handler(HandleRef jarg1); @@ -9009,6 +9031,30 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_split_user_domain")] public static extern int switch_split_user_domain(string jarg1, ref string jarg2, ref string jarg3); + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")] + public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_get")] + public static extern string profile_node_t_var_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_set")] + public static extern void profile_node_t_val_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_get")] + public static extern string profile_node_t_val_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_set")] + public static extern void profile_node_t_next_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_get")] + public static extern IntPtr profile_node_t_next_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_new_profile_node_t")] + public static extern IntPtr new_profile_node_t(); + + [DllImport("mod_managed", EntryPoint="CSharp_delete_profile_node_t")] + public static extern void delete_profile_node_t(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_set")] public static extern void switch_caller_profile_username_set(HandleRef jarg1, string jarg2); @@ -9213,6 +9259,12 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_get")] public static extern int switch_caller_profile_direction_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_set")] + public static extern void switch_caller_profile_soft_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_get")] + public static extern IntPtr switch_caller_profile_soft_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_profile")] public static extern IntPtr new_switch_caller_profile(); @@ -14456,6 +14508,84 @@ public partial class ManagedSession : CoreSession { namespace FreeSWITCH.Native { +using System; +using System.Runtime.InteropServices; + +public class profile_node_t : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal profile_node_t(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(profile_node_t obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~profile_node_t() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { + swigCMemOwn = false; + freeswitchPINVOKE.delete_profile_node_t(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + GC.SuppressFinalize(this); + } + } + + public string var { + set { + freeswitchPINVOKE.profile_node_t_var_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.profile_node_t_var_get(swigCPtr); + return ret; + } + } + + public string val { + set { + freeswitchPINVOKE.profile_node_t_val_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.profile_node_t_val_get(swigCPtr); + return ret; + } + } + + public profile_node_t next { + set { + freeswitchPINVOKE.profile_node_t_next_set(swigCPtr, profile_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.profile_node_t_next_get(swigCPtr); + profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); + return ret; + } + } + + public profile_node_t() : this(freeswitchPINVOKE.new_profile_node_t(), true) { + } + +} + +} +/* ---------------------------------------------------------------------------- + * 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 { + [System.Flags] public enum session_flag_t { S_HUP = (1 << 0), S_FREE = (1 << 1), @@ -19936,6 +20066,18 @@ public class switch_app_log : IDisposable { } } + public SWIGTYPE_p_switch_time_t stamp { + set { + freeswitchPINVOKE.switch_app_log_stamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value)); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_app_log_stamp_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + public switch_app_log next { set { freeswitchPINVOKE.switch_app_log_next_set(swigCPtr, switch_app_log.getCPtr(value)); @@ -21775,6 +21917,17 @@ public class switch_caller_profile : IDisposable { } } + public profile_node_t soft { + set { + freeswitchPINVOKE.switch_caller_profile_soft_set(swigCPtr, profile_node_t.getCPtr(value)); + } + get { + IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_soft_get(swigCPtr); + profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false); + return ret; + } + } + public switch_caller_profile() : this(freeswitchPINVOKE.new_switch_caller_profile(), true) { }