]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows fixes for last commit + vs2010 reswig
authorJeff Lenk <jeff@jefflenk.com>
Fri, 26 Oct 2012 00:00:28 +0000 (19:00 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 26 Oct 2012 00:00:28 +0000 (19:00 -0500)
src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx
src/mod/languages/mod_managed/managed/swig.2010.cs
src/switch_core_sqldb.c

index 40aab99e82f8699be277584ff6b7b3741bc77709..e76d081416f4222c65c1dd0b77b1d2d2204d6d4e 100644 (file)
@@ -6040,6 +6040,96 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_hold_record_t(void * jarg1) {
 }\r
 \r
 \r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_func_set(void * jarg1, void * jarg2) {\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  switch_thread_start_t arg2 ;\r
+  switch_thread_start_t *argp2 ;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  argp2 = (switch_thread_start_t *)jarg2; \r
+  if (!argp2) {\r
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_thread_start_t", 0);\r
+    return ;\r
+  }\r
+  arg2 = *argp2; \r
+  if (arg1) (arg1)->func = arg2;\r
+}\r
+\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_func_get(void * jarg1) {\r
+  void * jresult ;\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  switch_thread_start_t result;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  result =  ((arg1)->func);\r
+  jresult = new switch_thread_start_t((const switch_thread_start_t &)result); \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_obj_set(void * jarg1, void * jarg2) {\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  void *arg2 = (void *) 0 ;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  arg2 = (void *)jarg2; \r
+  if (arg1) (arg1)->obj = arg2;\r
+}\r
+\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_thread_data_t_obj_get(void * jarg1) {\r
+  void * jresult ;\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  void *result = 0 ;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  result = (void *) ((arg1)->obj);\r
+  jresult = (void *)result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_thread_data_t_alloc_set(void * jarg1, int jarg2) {\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  int arg2 ;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  arg2 = (int)jarg2; \r
+  if (arg1) (arg1)->alloc = arg2;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_data_t_alloc_get(void * jarg1) {\r
+  int jresult ;\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  int result;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  result = (int) ((arg1)->alloc);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_thread_data_t() {\r
+  void * jresult ;\r
+  switch_thread_data_t *result = 0 ;\r
+  \r
+  result = (switch_thread_data_t *)new switch_thread_data_t();\r
+  jresult = (void *)result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_thread_data_t(void * jarg1) {\r
+  switch_thread_data_t *arg1 = (switch_thread_data_t *) 0 ;\r
+  \r
+  arg1 = (switch_thread_data_t *)jarg1; \r
+  delete arg1;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_MESSAGE_STRING_ARG_MAX_get() {\r
   int jresult ;\r
   int result;\r
@@ -7785,6 +7875,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_launch(void * jarg1
 }\r
 \r
 \r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_thread_pool_launch_thread(void * jarg1) {\r
+  int jresult ;\r
+  switch_thread_data_t **arg1 = (switch_thread_data_t **) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_thread_data_t **)jarg1; \r
+  result = (switch_status_t)switch_thread_pool_launch_thread(arg1);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_thread_pool_launch(void * jarg1) {\r
   int jresult ;\r
   switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
@@ -11884,7 +11986,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_flush(char * jarg1, char
 }\r
 \r
 \r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_push(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push_confirm(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) {\r
   int jresult ;\r
   switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
   char *arg2 = (char *) 0 ;\r
@@ -11896,67 +11998,87 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_push(void * ja
   arg2 = (char *)jarg2; \r
   arg3 = (uint32_t)jarg3; \r
   arg4 = (switch_bool_t)jarg4; \r
-  result = (switch_status_t)switch_switch_sql_queue_manager_push(arg1,(char const *)arg2,arg3,arg4);\r
+  result = (switch_status_t)switch_sql_queue_manager_push_confirm(arg1,(char const *)arg2,arg3,arg4);\r
   jresult = result; \r
   return jresult;\r
 }\r
 \r
 \r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_destroy(void * jarg1) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_push(void * jarg1, char * jarg2, unsigned long jarg3, int jarg4) {\r
+  int jresult ;\r
+  switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+  char *arg2 = (char *) 0 ;\r
+  uint32_t arg3 ;\r
+  switch_bool_t arg4 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+  arg2 = (char *)jarg2; \r
+  arg3 = (uint32_t)jarg3; \r
+  arg4 = (switch_bool_t)jarg4; \r
+  result = (switch_status_t)switch_sql_queue_manager_push(arg1,(char const *)arg2,arg3,arg4);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_destroy(void * jarg1) {\r
   int jresult ;\r
   switch_sql_queue_manager_t **arg1 = (switch_sql_queue_manager_t **) 0 ;\r
   switch_status_t result;\r
   \r
   arg1 = (switch_sql_queue_manager_t **)jarg1; \r
-  result = (switch_status_t)switch_switch_sql_queue_manager_destroy(arg1);\r
+  result = (switch_status_t)switch_sql_queue_manager_destroy(arg1);\r
   jresult = result; \r
   return jresult;\r
 }\r
 \r
 \r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_init(void * jarg1, unsigned long jarg2, char * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_init_name(char * jarg1, void * jarg2, unsigned long jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8) {\r
   int jresult ;\r
-  switch_sql_queue_manager_t **arg1 = (switch_sql_queue_manager_t **) 0 ;\r
-  uint32_t arg2 ;\r
-  char *arg3 = (char *) 0 ;\r
+  char *arg1 = (char *) 0 ;\r
+  switch_sql_queue_manager_t **arg2 = (switch_sql_queue_manager_t **) 0 ;\r
+  uint32_t arg3 ;\r
   char *arg4 = (char *) 0 ;\r
   char *arg5 = (char *) 0 ;\r
   char *arg6 = (char *) 0 ;\r
   char *arg7 = (char *) 0 ;\r
+  char *arg8 = (char *) 0 ;\r
   switch_status_t result;\r
   \r
-  arg1 = (switch_sql_queue_manager_t **)jarg1; \r
-  arg2 = (uint32_t)jarg2; \r
-  arg3 = (char *)jarg3; \r
+  arg1 = (char *)jarg1; \r
+  arg2 = (switch_sql_queue_manager_t **)jarg2; \r
+  arg3 = (uint32_t)jarg3; \r
   arg4 = (char *)jarg4; \r
   arg5 = (char *)jarg5; \r
   arg6 = (char *)jarg6; \r
   arg7 = (char *)jarg7; \r
-  result = (switch_status_t)switch_switch_sql_queue_manager_init(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7);\r
+  arg8 = (char *)jarg8; \r
+  result = (switch_status_t)switch_sql_queue_manager_init_name((char const *)arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8);\r
   jresult = result; \r
   return jresult;\r
 }\r
 \r
 \r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_start(void * jarg1) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_start(void * jarg1) {\r
   int jresult ;\r
   switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
   switch_status_t result;\r
   \r
   arg1 = (switch_sql_queue_manager_t *)jarg1; \r
-  result = (switch_status_t)switch_switch_sql_queue_manager_start(arg1);\r
+  result = (switch_status_t)switch_sql_queue_manager_start(arg1);\r
   jresult = result; \r
   return jresult;\r
 }\r
 \r
 \r
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_switch_sql_queue_manager_stop(void * jarg1) {\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_stop(void * jarg1) {\r
   int jresult ;\r
   switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
   switch_status_t result;\r
   \r
   arg1 = (switch_sql_queue_manager_t *)jarg1; \r
-  result = (switch_status_t)switch_switch_sql_queue_manager_stop(arg1);\r
+  result = (switch_status_t)switch_sql_queue_manager_stop(arg1);\r
   jresult = result; \r
   return jresult;\r
 }\r
index 031eda1f371957b13e2b1bfec8c3b5071e5f86de..5fa0f55fbe6f5d08ce505287709b882e98221000 100644 (file)
@@ -1469,6 +1469,11 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
+  public static switch_status_t switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s tdp) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_thread_pool_launch_thread(SWIGTYPE_p_p_switch_thread_data_s.getCPtr(tdp));\r
+    return ret;\r
+  }\r
+\r
   public static switch_status_t switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session session) {\r
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_thread_pool_launch(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
     return ret;\r
@@ -2837,28 +2842,33 @@ public class freeswitch {
     freeswitchPINVOKE.switch_core_recovery_flush(technology, profile_name);\r
   }\r
 \r
-  public static switch_status_t switch_switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) {\r
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup);\r
+  public static switch_status_t switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push_confirm(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup);\r
     return ret;\r
   }\r
 \r
-  public static switch_status_t switch_switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager qmp) {\r
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp));\r
+  public static switch_status_t switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, uint pos, switch_bool_t dup) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_push(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, pos, (int)dup);\r
     return ret;\r
   }\r
 \r
-  public static switch_status_t switch_switch_sql_queue_manager_init(SWIGTYPE_p_p_switch_sql_queue_manager qmp, uint numq, string dsn, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) {\r
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_switch_sql_queue_manager_init(SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp), numq, dsn, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute);\r
+  public static switch_status_t switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager qmp) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_destroy(SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp));\r
     return ret;\r
   }\r
 \r
-  public static switch_status_t switch_switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager qm) {\r
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm));\r
+  public static switch_status_t switch_sql_queue_manager_init_name(string name, SWIGTYPE_p_p_switch_sql_queue_manager qmp, uint numq, string dsn, string pre_trans_execute, string post_trans_execute, string inner_pre_trans_execute, string inner_post_trans_execute) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_init_name(name, SWIGTYPE_p_p_switch_sql_queue_manager.getCPtr(qmp), numq, dsn, pre_trans_execute, post_trans_execute, inner_pre_trans_execute, inner_post_trans_execute);\r
     return ret;\r
   }\r
 \r
-  public static switch_status_t switch_switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager qm) {\r
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm));\r
+  public static switch_status_t switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager qm) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_start(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager qm) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_sql_queue_manager_stop(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm));\r
     return ret;\r
   }\r
 \r
@@ -8140,6 +8150,30 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_hold_record_t")]\r
   public static extern void delete_switch_hold_record_t(HandleRef jarg1);\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_set")]\r
+  public static extern void switch_thread_data_t_func_set(HandleRef jarg1, HandleRef jarg2);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_func_get")]\r
+  public static extern IntPtr switch_thread_data_t_func_get(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_set")]\r
+  public static extern void switch_thread_data_t_obj_set(HandleRef jarg1, HandleRef jarg2);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_obj_get")]\r
+  public static extern IntPtr switch_thread_data_t_obj_get(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_set")]\r
+  public static extern void switch_thread_data_t_alloc_set(HandleRef jarg1, int jarg2);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_data_t_alloc_get")]\r
+  public static extern int switch_thread_data_t_alloc_get(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_new_switch_thread_data_t")]\r
+  public static extern IntPtr new_switch_thread_data_t();\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_delete_switch_thread_data_t")]\r
+  public static extern void delete_switch_thread_data_t(HandleRef jarg1);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_MESSAGE_STRING_ARG_MAX_get")]\r
   public static extern int MESSAGE_STRING_ARG_MAX_get();\r
 \r
@@ -8548,6 +8582,9 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_launch")]\r
   public static extern int switch_core_session_thread_launch(HandleRef jarg1);\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_thread_pool_launch_thread")]\r
+  public static extern int switch_thread_pool_launch_thread(HandleRef jarg1);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_thread_pool_launch")]\r
   public static extern int switch_core_session_thread_pool_launch(HandleRef jarg1);\r
 \r
@@ -9487,20 +9524,23 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_recovery_flush")]\r
   public static extern void switch_core_recovery_flush(string jarg1, string jarg2);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_switch_sql_queue_manager_push")]\r
-  public static extern int switch_switch_sql_queue_manager_push(HandleRef jarg1, string jarg2, uint jarg3, int jarg4);\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push_confirm")]\r
+  public static extern int switch_sql_queue_manager_push_confirm(HandleRef jarg1, string jarg2, uint jarg3, int jarg4);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_switch_sql_queue_manager_destroy")]\r
-  public static extern int switch_switch_sql_queue_manager_destroy(HandleRef jarg1);\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_push")]\r
+  public static extern int switch_sql_queue_manager_push(HandleRef jarg1, string jarg2, uint jarg3, int jarg4);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_switch_sql_queue_manager_init")]\r
-  public static extern int switch_switch_sql_queue_manager_init(HandleRef jarg1, uint jarg2, string jarg3, string jarg4, string jarg5, string jarg6, string jarg7);\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_destroy")]\r
+  public static extern int switch_sql_queue_manager_destroy(HandleRef jarg1);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_switch_sql_queue_manager_start")]\r
-  public static extern int switch_switch_sql_queue_manager_start(HandleRef jarg1);\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_init_name")]\r
+  public static extern int switch_sql_queue_manager_init_name(string jarg1, HandleRef jarg2, uint jarg3, string jarg4, string jarg5, string jarg6, string jarg7, string jarg8);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_switch_sql_queue_manager_stop")]\r
-  public static extern int switch_switch_sql_queue_manager_stop(HandleRef jarg1);\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_start")]\r
+  public static extern int switch_sql_queue_manager_start(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_stop")]\r
+  public static extern int switch_sql_queue_manager_stop(HandleRef jarg1);\r
 \r
   [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_event_callback")]\r
   public static extern int switch_cache_db_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5);\r
@@ -19939,6 +19979,36 @@ namespace FreeSWITCH.Native {
 using System;\r
 using System.Runtime.InteropServices;\r
 \r
+public class SWIGTYPE_p_p_switch_thread_data_s {\r
+  private HandleRef swigCPtr;\r
+\r
+  internal SWIGTYPE_p_p_switch_thread_data_s(IntPtr cPtr, bool futureUse) {\r
+    swigCPtr = new HandleRef(this, cPtr);\r
+  }\r
+\r
+  protected SWIGTYPE_p_p_switch_thread_data_s() {\r
+    swigCPtr = new HandleRef(null, IntPtr.Zero);\r
+  }\r
+\r
+  internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_thread_data_s obj) {\r
+    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;\r
+  }\r
+}\r
+\r
+}\r
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.1\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+namespace FreeSWITCH.Native {\r
+\r
+using System;\r
+using System.Runtime.InteropServices;\r
+\r
 public class SWIGTYPE_p_p_switch_xml {\r
   private HandleRef swigCPtr;\r
 \r
@@ -21229,6 +21299,36 @@ namespace FreeSWITCH.Native {
 using System;\r
 using System.Runtime.InteropServices;\r
 \r
+public class SWIGTYPE_p_switch_thread_start_t {\r
+  private HandleRef swigCPtr;\r
+\r
+  internal SWIGTYPE_p_switch_thread_start_t(IntPtr cPtr, bool futureUse) {\r
+    swigCPtr = new HandleRef(this, cPtr);\r
+  }\r
+\r
+  protected SWIGTYPE_p_switch_thread_start_t() {\r
+    swigCPtr = new HandleRef(null, IntPtr.Zero);\r
+  }\r
+\r
+  internal static HandleRef getCPtr(SWIGTYPE_p_switch_thread_start_t obj) {\r
+    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;\r
+  }\r
+}\r
+\r
+}\r
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.1\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+namespace FreeSWITCH.Native {\r
+\r
+using System;\r
+using System.Runtime.InteropServices;\r
+\r
 public class SWIGTYPE_p_switch_time_exp_t {\r
   private HandleRef swigCPtr;\r
 \r
@@ -33981,6 +34081,88 @@ public enum switch_text_channel_t {
 \r
 namespace FreeSWITCH.Native {\r
 \r
+using System;\r
+using System.Runtime.InteropServices;\r
+\r
+public class switch_thread_data_t : IDisposable {\r
+  private HandleRef swigCPtr;\r
+  protected bool swigCMemOwn;\r
+\r
+  internal switch_thread_data_t(IntPtr cPtr, bool cMemoryOwn) {\r
+    swigCMemOwn = cMemoryOwn;\r
+    swigCPtr = new HandleRef(this, cPtr);\r
+  }\r
+\r
+  internal static HandleRef getCPtr(switch_thread_data_t obj) {\r
+    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;\r
+  }\r
+\r
+  ~switch_thread_data_t() {\r
+    Dispose();\r
+  }\r
+\r
+  public virtual void Dispose() {\r
+    lock(this) {\r
+      if (swigCPtr.Handle != IntPtr.Zero) {\r
+        if (swigCMemOwn) {\r
+          swigCMemOwn = false;\r
+          freeswitchPINVOKE.delete_switch_thread_data_t(swigCPtr);\r
+        }\r
+        swigCPtr = new HandleRef(null, IntPtr.Zero);\r
+      }\r
+      GC.SuppressFinalize(this);\r
+    }\r
+  }\r
+\r
+  public SWIGTYPE_p_switch_thread_start_t func {\r
+    set {\r
+      freeswitchPINVOKE.switch_thread_data_t_func_set(swigCPtr, SWIGTYPE_p_switch_thread_start_t.getCPtr(value));\r
+      if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();\r
+    } \r
+    get {\r
+      SWIGTYPE_p_switch_thread_start_t ret = new SWIGTYPE_p_switch_thread_start_t(freeswitchPINVOKE.switch_thread_data_t_func_get(swigCPtr), true);\r
+      if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();\r
+      return ret;\r
+    } \r
+  }\r
+\r
+  public SWIGTYPE_p_void obj {\r
+    set {\r
+      freeswitchPINVOKE.switch_thread_data_t_obj_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));\r
+    } \r
+    get {\r
+      IntPtr cPtr = freeswitchPINVOKE.switch_thread_data_t_obj_get(swigCPtr);\r
+      SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);\r
+      return ret;\r
+    } \r
+  }\r
+\r
+  public int alloc {\r
+    set {\r
+      freeswitchPINVOKE.switch_thread_data_t_alloc_set(swigCPtr, value);\r
+    } \r
+    get {\r
+      int ret = freeswitchPINVOKE.switch_thread_data_t_alloc_get(swigCPtr);\r
+      return ret;\r
+    } \r
+  }\r
+\r
+  public switch_thread_data_t() : this(freeswitchPINVOKE.new_switch_thread_data_t(), true) {\r
+  }\r
+\r
+}\r
+\r
+}\r
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.1\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+namespace FreeSWITCH.Native {\r
+\r
 public enum switch_thread_priority_t {\r
   SWITCH_PRI_LOW = 1,\r
   SWITCH_PRI_NORMAL = 10,\r
index ec64befd22989fdceeed6f69e3e27d9c72292fd3..0e0bb65ae196d4f86ecb753808bc8463850834c8 100644 (file)
@@ -1345,8 +1345,8 @@ SWITCH_DECLARE(switch_status_t) switch_sql_queue_manager_push(switch_sql_queue_m
 
 SWITCH_DECLARE(switch_status_t) switch_sql_queue_manager_push_confirm(switch_sql_queue_manager_t *qm, const char *sql, uint32_t pos, switch_bool_t dup)
 {
-       int want, size, x = 0, sanity = 0;
-       uint32_t written;
+       int size, x = 0, sanity = 0;
+       uint32_t written, want;
 
        if (!qm->thread_running) {
                return SWITCH_STATUS_FALSE;