]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
trivial compiler warning fix + vs2010 reswig
authorJeff Lenk <jeff@jefflenk.com>
Sat, 27 Oct 2012 16:20:34 +0000 (11:20 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Sat, 27 Oct 2012 16:20:34 +0000 (11:20 -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 e76d081416f4222c65c1dd0b77b1d2d2204d6d4e..3183c52bb28f3667b30ba47495408f668762e8bd 100644 (file)
@@ -11064,13 +11064,13 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_preprocess_session(void * jarg1, ch
 }\r
 \r
 \r
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_stop_thread() {\r
-  switch_core_sqldb_stop_thread();\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_pause() {\r
+  switch_core_sqldb_pause();\r
 }\r
 \r
 \r
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_start_thread() {\r
-  switch_core_sqldb_start_thread();\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_sqldb_resume() {\r
+  switch_core_sqldb_resume();\r
 }\r
 \r
 \r
@@ -11986,6 +11986,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_recovery_flush(char * jarg1, char
 }\r
 \r
 \r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_sql_queue_manager_size(void * jarg1, unsigned long jarg2) {\r
+  int jresult ;\r
+  switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+  uint32_t arg2 ;\r
+  int result;\r
+  \r
+  arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+  arg2 = (uint32_t)jarg2; \r
+  result = (int)switch_sql_queue_manager_size(arg1,arg2);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\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
index 5fa0f55fbe6f5d08ce505287709b882e98221000..a5ec72534d4d1da8d9e023a56a267376508765bd 100644 (file)
@@ -2642,12 +2642,12 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
-  public static void switch_core_sqldb_stop_thread() {\r
-    freeswitchPINVOKE.switch_core_sqldb_stop_thread();\r
+  public static void switch_core_sqldb_pause() {\r
+    freeswitchPINVOKE.switch_core_sqldb_pause();\r
   }\r
 \r
-  public static void switch_core_sqldb_start_thread() {\r
-    freeswitchPINVOKE.switch_core_sqldb_start_thread();\r
+  public static void switch_core_sqldb_resume() {\r
+    freeswitchPINVOKE.switch_core_sqldb_resume();\r
   }\r
 \r
   public static string switch_cache_db_type_name(switch_cache_db_handle_type_t type) {\r
@@ -2842,6 +2842,11 @@ public class freeswitch {
     freeswitchPINVOKE.switch_core_recovery_flush(technology, profile_name);\r
   }\r
 \r
+  public static int switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager qm, uint index) {\r
+    int ret = freeswitchPINVOKE.switch_sql_queue_manager_size(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), index);\r
+    return ret;\r
+  }\r
+\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
@@ -9296,11 +9301,11 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_preprocess_session")]\r
   public static extern int switch_ivr_preprocess_session(HandleRef jarg1, string jarg2);\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_stop_thread")]\r
-  public static extern void switch_core_sqldb_stop_thread();\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_pause")]\r
+  public static extern void switch_core_sqldb_pause();\r
 \r
-  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_start_thread")]\r
-  public static extern void switch_core_sqldb_start_thread();\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_sqldb_resume")]\r
+  public static extern void switch_core_sqldb_resume();\r
 \r
   [DllImport("mod_managed", EntryPoint="CSharp_CACHE_DB_LEN_get")]\r
   public static extern int CACHE_DB_LEN_get();\r
@@ -9524,6 +9529,9 @@ 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_sql_queue_manager_size")]\r
+  public static extern int switch_sql_queue_manager_size(HandleRef jarg1, uint jarg2);\r
+\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
index 708577d823171f3b193c842361a959bf9cfbb432..728f650bb7988f44568f478200ee3fb010945d2c 100644 (file)
@@ -1594,7 +1594,7 @@ static void *SWITCH_THREAD_FUNC switch_user_sql_thread(switch_thread_t *thread,
 
        while (qm->thread_running == 1) {
                int lc;
-               int i;
+               uint32_t i;
                uint32_t iterations = 0;
 
                if (sql_manager.paused) {