From 4dfbea18378b3c80ef44c366c7fd65b890b15a4c Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 3 Mar 2011 13:25:33 -0600 Subject: [PATCH] vs2010 reswig --- .../mod_managed/freeswitch_wrap.2010.cxx | 312 +--------------- .../mod_managed/managed/swig.2010.cs | 349 ++++-------------- 2 files changed, 80 insertions(+), 581 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx index d4a4baf247..fdf2c5f08d 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx @@ -10107,293 +10107,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_connection_options_t(v } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_name_set(void * jarg1, char * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->name, (const char *)arg2, 256-1); - arg1->name[256-1] = 0; - } else { - arg1->name[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_handle_t_name_get(void * jarg1) { - char * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (char *)(char *) ((arg1)->name); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_type_set(void * jarg1, int jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_cache_db_handle_type_t arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (switch_cache_db_handle_type_t)jarg2; - if (arg1) (arg1)->type = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_handle_t_type_get(void * jarg1) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_cache_db_handle_type_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_cache_db_handle_type_t) ((arg1)->type); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_native_handle_set(void * jarg1, void * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_cache_db_native_handle_t *arg2 = (switch_cache_db_native_handle_t *) 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (switch_cache_db_native_handle_t *)jarg2; - if (arg1) (arg1)->native_handle = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_handle_t_native_handle_get(void * jarg1) { - void * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_cache_db_native_handle_t *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_cache_db_native_handle_t *)& ((arg1)->native_handle); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_last_used_set(void * jarg1, void * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - time_t arg2 ; - time_t *argp2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - argp2 = (time_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null time_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->last_used = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_handle_t_last_used_get(void * jarg1) { - void * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - time_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = ((arg1)->last_used); - jresult = new time_t((const time_t &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_mutex_set(void * jarg1, void * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_handle_t_mutex_get(void * jarg1) { - void * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_mutex_t *) ((arg1)->mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_io_mutex_set(void * jarg1, void * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_mutex_t *arg2 = (switch_mutex_t *) 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (switch_mutex_t *)jarg2; - if (arg1) (arg1)->io_mutex = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_handle_t_io_mutex_get(void * jarg1) { - void * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_mutex_t *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_mutex_t *) ((arg1)->io_mutex); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_pool_set(void * jarg1, void * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_memory_pool_t *arg2 = (switch_memory_pool_t *) 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (switch_memory_pool_t *)jarg2; - if (arg1) (arg1)->pool = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_cache_db_handle_t_pool_get(void * jarg1) { - void * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - switch_memory_pool_t *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (switch_memory_pool_t *) ((arg1)->pool); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_flags_set(void * jarg1, int jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - int32_t arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (int32_t)jarg2; - if (arg1) (arg1)->flags = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_handle_t_flags_get(void * jarg1) { - int jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - int32_t result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (int32_t) ((arg1)->flags); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_hash_set(void * jarg1, unsigned long jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - unsigned long arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (unsigned long)jarg2; - if (arg1) (arg1)->hash = arg2; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_cache_db_handle_t_hash_get(void * jarg1) { - unsigned long jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - unsigned long result; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (unsigned long) ((arg1)->hash); - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_creator_set(void * jarg1, char * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->creator, (const char *)arg2, 256-1); - arg1->creator[256-1] = 0; - } else { - arg1->creator[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_handle_t_creator_get(void * jarg1) { - char * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (char *)(char *) ((arg1)->creator); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_handle_t_last_user_set(void * jarg1, char * jarg2) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *arg2 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - arg2 = (char *)jarg2; - { - if(arg2) { - strncpy((char*)arg1->last_user, (const char *)arg2, 256-1); - arg1->last_user[256-1] = 0; - } else { - arg1->last_user[0] = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_handle_t_last_user_get(void * jarg1) { - char * jresult ; - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - result = (char *)(char *) ((arg1)->last_user); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_cache_db_handle_t() { - void * jresult ; - switch_cache_db_handle_t *result = 0 ; - - result = (switch_cache_db_handle_t *)new switch_cache_db_handle_t(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_cache_db_handle_t(void * jarg1) { - switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; - - arg1 = (switch_cache_db_handle_t *)jarg1; - delete arg1; -} - - SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_type_name(int jarg1) { char * jresult ; switch_cache_db_handle_type_t arg1 ; @@ -10406,6 +10119,18 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_cache_db_type_name(int jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_get_type(void * jarg1) { + int jresult ; + switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ; + switch_cache_db_handle_type_t result; + + arg1 = (switch_cache_db_handle_t *)jarg1; + result = (switch_cache_db_handle_type_t)switch_cache_db_get_type(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_dismiss_db_handle(void * jarg1) { switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; @@ -10422,14 +10147,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_release_db_handle(void * jarg } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_destroy_db_handle(void * jarg1) { - switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; - - arg1 = (switch_cache_db_handle_t **)jarg1; - switch_cache_db_destroy_db_handle(arg1); -} - - SWIGEXPORT int SWIGSTDCALL CSharp__switch_cache_db_get_db_handle(void * jarg1, int jarg2, void * jarg3, char * jarg4, char * jarg5, int jarg6) { int jresult ; switch_cache_db_handle_t **arg1 = (switch_cache_db_handle_t **) 0 ; @@ -10596,11 +10313,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_persistant_execute_trans(void } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_cache_db_detach() { - switch_cache_db_detach(); -} - - SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_debug_level() { unsigned long jresult ; uint32_t result; diff --git a/src/mod/languages/mod_managed/managed/swig.2010.cs b/src/mod/languages/mod_managed/managed/swig.2010.cs index fb50dd4e46..eb6d93531c 100644 --- a/src/mod/languages/mod_managed/managed/swig.2010.cs +++ b/src/mod/languages/mod_managed/managed/swig.2010.cs @@ -2351,40 +2351,41 @@ public class freeswitch { return ret; } - public static void switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t dbh) { - freeswitchPINVOKE.switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t.getCPtr(dbh)); - } - - public static void switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t dbh) { - freeswitchPINVOKE.switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t.getCPtr(dbh)); - } - - public static void switch_cache_db_destroy_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t dbh) { - freeswitchPINVOKE.switch_cache_db_destroy_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t.getCPtr(dbh)); - } - - public static switch_status_t _switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t dbh, switch_cache_db_handle_type_t type, switch_cache_db_connection_options_t connection_options, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t.getCPtr(dbh), (int)type, switch_cache_db_connection_options_t.getCPtr(connection_options), file, func, line); + public static switch_cache_db_handle_type_t switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle dbh) { + switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_cache_db_get_type(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); return ret; } - public static string switch_cache_db_execute_sql2str(switch_cache_db_handle_t dbh, string sql, string str, uint len, ref string err) { - string ret = freeswitchPINVOKE.switch_cache_db_execute_sql2str(switch_cache_db_handle_t.getCPtr(dbh), sql, str, len, ref err); + public static void switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { + freeswitchPINVOKE.switch_cache_db_dismiss_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); + } + + public static void switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh) { + freeswitchPINVOKE.switch_cache_db_release_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh)); + } + + public static switch_status_t _switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, switch_cache_db_handle_type_t type, switch_cache_db_connection_options_t connection_options, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_cache_db_get_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), (int)type, switch_cache_db_connection_options_t.getCPtr(connection_options), file, func, line); return ret; } - public static switch_status_t switch_cache_db_execute_sql(switch_cache_db_handle_t dbh, string sql, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql(switch_cache_db_handle_t.getCPtr(dbh), sql, ref err); + public static string switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, string str, uint len, ref string err) { + string ret = freeswitchPINVOKE.switch_cache_db_execute_sql2str(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, str, len, ref err); return ret; } - public static switch_status_t switch_cache_db_execute_sql_callback(switch_cache_db_handle_t dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata, ref string err) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback(switch_cache_db_handle_t.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); + public static switch_status_t switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, ref err); return ret; } - public static int switch_cache_db_affected_rows(switch_cache_db_handle_t dbh) { - int ret = freeswitchPINVOKE.switch_cache_db_affected_rows(switch_cache_db_handle_t.getCPtr(dbh)); + public static switch_status_t switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata, ref string err) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata), ref err); + return ret; + } + + public static int switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle dbh) { + int ret = freeswitchPINVOKE.switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh)); return ret; } @@ -2392,30 +2393,26 @@ public class freeswitch { freeswitchPINVOKE.switch_cache_db_status(switch_stream_handle.getCPtr(stream)); } - public static switch_status_t _switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t dbh, string file, string func, int line) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle_t.getCPtr(dbh), file, func, line); + public static switch_status_t _switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle dbh, string file, string func, int line) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE._switch_core_db_handle(SWIGTYPE_p_p_switch_cache_db_handle.getCPtr(dbh), file, func, line); return ret; } - public static switch_bool_t switch_cache_db_test_reactive(switch_cache_db_handle_t db, string test_sql, string drop_sql, string reactive_sql) { - switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_cache_db_test_reactive(switch_cache_db_handle_t.getCPtr(db), test_sql, drop_sql, reactive_sql); + public static switch_bool_t switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle db, string test_sql, string drop_sql, string reactive_sql) { + switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_cache_db_test_reactive(SWIGTYPE_p_switch_cache_db_handle.getCPtr(db), test_sql, drop_sql, reactive_sql); return ret; } - public static switch_status_t switch_cache_db_persistant_execute(switch_cache_db_handle_t dbh, string sql, uint retries) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute(switch_cache_db_handle_t.getCPtr(dbh), sql, retries); + public static switch_status_t switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries); return ret; } - public static switch_status_t switch_cache_db_persistant_execute_trans(switch_cache_db_handle_t dbh, string sql, uint retries) { - switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute_trans(switch_cache_db_handle_t.getCPtr(dbh), sql, retries); + public static switch_status_t switch_cache_db_persistant_execute_trans(SWIGTYPE_p_switch_cache_db_handle dbh, string sql, uint retries) { + switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_persistant_execute_trans(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh), sql, retries); return ret; } - public static void switch_cache_db_detach() { - freeswitchPINVOKE.switch_cache_db_detach(); - } - public static uint switch_core_debug_level() { uint ret = freeswitchPINVOKE.switch_core_debug_level(); return ret; @@ -8278,90 +8275,18 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_connection_options_t")] public static extern void delete_switch_cache_db_connection_options_t(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_name_set")] - public static extern void switch_cache_db_handle_t_name_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_name_get")] - public static extern string switch_cache_db_handle_t_name_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_type_set")] - public static extern void switch_cache_db_handle_t_type_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_type_get")] - public static extern int switch_cache_db_handle_t_type_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_native_handle_set")] - public static extern void switch_cache_db_handle_t_native_handle_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_native_handle_get")] - public static extern IntPtr switch_cache_db_handle_t_native_handle_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_last_used_set")] - public static extern void switch_cache_db_handle_t_last_used_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_last_used_get")] - public static extern IntPtr switch_cache_db_handle_t_last_used_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_mutex_set")] - public static extern void switch_cache_db_handle_t_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_mutex_get")] - public static extern IntPtr switch_cache_db_handle_t_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_io_mutex_set")] - public static extern void switch_cache_db_handle_t_io_mutex_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_io_mutex_get")] - public static extern IntPtr switch_cache_db_handle_t_io_mutex_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_pool_set")] - public static extern void switch_cache_db_handle_t_pool_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_pool_get")] - public static extern IntPtr switch_cache_db_handle_t_pool_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_flags_set")] - public static extern void switch_cache_db_handle_t_flags_set(HandleRef jarg1, int jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_flags_get")] - public static extern int switch_cache_db_handle_t_flags_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_hash_set")] - public static extern void switch_cache_db_handle_t_hash_set(HandleRef jarg1, uint jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_hash_get")] - public static extern uint switch_cache_db_handle_t_hash_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_creator_set")] - public static extern void switch_cache_db_handle_t_creator_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_creator_get")] - public static extern string switch_cache_db_handle_t_creator_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_last_user_set")] - public static extern void switch_cache_db_handle_t_last_user_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_handle_t_last_user_get")] - public static extern string switch_cache_db_handle_t_last_user_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_new_switch_cache_db_handle_t")] - public static extern IntPtr new_switch_cache_db_handle_t(); - - [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_cache_db_handle_t")] - public static extern void delete_switch_cache_db_handle_t(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_type_name")] public static extern string switch_cache_db_type_name(int jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_get_type")] + public static extern int switch_cache_db_get_type(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_dismiss_db_handle")] public static extern void switch_cache_db_dismiss_db_handle(HandleRef jarg1); [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_release_db_handle")] public static extern void switch_cache_db_release_db_handle(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_destroy_db_handle")] - public static extern void switch_cache_db_destroy_db_handle(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp__switch_cache_db_get_db_handle")] public static extern int _switch_cache_db_get_db_handle(HandleRef jarg1, int jarg2, HandleRef jarg3, string jarg4, string jarg5, int jarg6); @@ -8392,9 +8317,6 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_persistant_execute_trans")] public static extern int switch_cache_db_persistant_execute_trans(HandleRef jarg1, string jarg2, uint jarg3); - [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_detach")] - public static extern void switch_cache_db_detach(); - [DllImport("mod_managed", EntryPoint="CSharp_switch_core_debug_level")] public static extern uint switch_core_debug_level(); @@ -17255,18 +17177,18 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; -public class SWIGTYPE_p_p_switch_cache_db_handle_t { +public class SWIGTYPE_p_p_switch_cache_db_handle { private HandleRef swigCPtr; - internal SWIGTYPE_p_p_switch_cache_db_handle_t(IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { swigCPtr = new HandleRef(this, cPtr); } - protected SWIGTYPE_p_p_switch_cache_db_handle_t() { + protected SWIGTYPE_p_p_switch_cache_db_handle() { swigCPtr = new HandleRef(null, IntPtr.Zero); } - internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_cache_db_handle_t obj) { + internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_cache_db_handle obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } } @@ -18275,6 +18197,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_switch_cache_db_handle { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_switch_cache_db_handle(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_switch_cache_db_handle() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_switch_cache_db_handle obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.1 + * + * 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_switch_call_cause_t { private HandleRef swigCPtr; @@ -20757,171 +20709,6 @@ public class switch_cache_db_core_db_options_t : IDisposable { namespace FreeSWITCH.Native { -using System; -using System.Runtime.InteropServices; - -public class switch_cache_db_handle_t : IDisposable { - private HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal switch_cache_db_handle_t(IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new HandleRef(this, cPtr); - } - - internal static HandleRef getCPtr(switch_cache_db_handle_t obj) { - return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; - } - - ~switch_cache_db_handle_t() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - freeswitchPINVOKE.delete_switch_cache_db_handle_t(swigCPtr); - } - swigCPtr = new HandleRef(null, IntPtr.Zero); - } - GC.SuppressFinalize(this); - } - } - - public string name { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_name_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_handle_t_name_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_handle_type_t type { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_type_set(swigCPtr, (int)value); - } - get { - switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_cache_db_handle_t_type_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_native_handle_t native_handle { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_native_handle_set(swigCPtr, switch_cache_db_native_handle_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_handle_t_native_handle_get(swigCPtr); - switch_cache_db_native_handle_t ret = (cPtr == IntPtr.Zero) ? null : new switch_cache_db_native_handle_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_time_t last_used { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_last_used_set(swigCPtr, SWIGTYPE_p_time_t.getCPtr(value)); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_time_t ret = new SWIGTYPE_p_time_t(freeswitchPINVOKE.switch_cache_db_handle_t_last_used_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t mutex { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_handle_t_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_switch_mutex_t io_mutex { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_io_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_handle_t_io_mutex_get(swigCPtr); - SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_apr_pool_t pool { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_pool_set(swigCPtr, SWIGTYPE_p_apr_pool_t.getCPtr(value)); - } - get { - IntPtr cPtr = freeswitchPINVOKE.switch_cache_db_handle_t_pool_get(swigCPtr); - SWIGTYPE_p_apr_pool_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_apr_pool_t(cPtr, false); - return ret; - } - } - - public int flags { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_flags_set(swigCPtr, value); - } - get { - int ret = freeswitchPINVOKE.switch_cache_db_handle_t_flags_get(swigCPtr); - return ret; - } - } - - public uint hash { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_hash_set(swigCPtr, value); - } - get { - uint ret = freeswitchPINVOKE.switch_cache_db_handle_t_hash_get(swigCPtr); - return ret; - } - } - - public string creator { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_creator_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_handle_t_creator_get(swigCPtr); - return ret; - } - } - - public string last_user { - set { - freeswitchPINVOKE.switch_cache_db_handle_t_last_user_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_cache_db_handle_t_last_user_get(swigCPtr); - return ret; - } - } - - public switch_cache_db_handle_t() : this(freeswitchPINVOKE.new_switch_cache_db_handle_t(), true) { - } - -} - -} -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -namespace FreeSWITCH.Native { - public enum switch_cache_db_handle_type_t { SCDB_TYPE_CORE_DB, SCDB_TYPE_ODBC