}\r
\r
\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {\r
+ int jresult ;\r
+ switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ;\r
+ char *arg2 = (char *) 0 ;\r
+ switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ;\r
+ switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ;\r
+ void *arg5 = (void *) 0 ;\r
+ char **arg6 = (char **) 0 ;\r
+ switch_status_t result;\r
+ \r
+ arg1 = (switch_cache_db_handle_t *)jarg1; \r
+ arg2 = (char *)jarg2; \r
+ arg3 = (switch_core_db_callback_func_t)jarg3; \r
+ arg4 = (switch_core_db_err_callback_func_t)jarg4; \r
+ arg5 = (void *)jarg5; \r
+ arg6 = (char **)jarg6; \r
+ result = (switch_status_t)switch_cache_db_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);\r
+ jresult = result; \r
+ return jresult;\r
+}\r
+\r
+\r
SWIGEXPORT int SWIGSTDCALL CSharp_switch_cache_db_affected_rows(void * jarg1) {\r
int jresult ;\r
switch_cache_db_handle_t *arg1 = (switch_cache_db_handle_t *) 0 ;\r
}\r
\r
\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_pause(void * jarg1, int jarg2) {\r
+ switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+ switch_bool_t arg2 ;\r
+ \r
+ arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+ arg2 = (switch_bool_t)jarg2; \r
+ switch_sql_queue_manager_pause(arg1,arg2);\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_resume(void * jarg1) {\r
+ switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+ \r
+ arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+ switch_sql_queue_manager_resume(arg1);\r
+}\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
}\r
\r
\r
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manger_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {\r
switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
char *arg2 = (char *) 0 ;\r
switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ;\r
arg2 = (char *)jarg2; \r
arg3 = (switch_core_db_callback_func_t)jarg3; \r
arg4 = (void *)jarg4; \r
- switch_sql_queue_manger_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4);\r
+ switch_sql_queue_manager_execute_sql_callback(arg1,(char const *)arg2,arg3,arg4);\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) {\r
+ switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+ char *arg2 = (char *) 0 ;\r
+ switch_core_db_callback_func_t arg3 = (switch_core_db_callback_func_t) 0 ;\r
+ switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ;\r
+ void *arg5 = (void *) 0 ;\r
+ \r
+ arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+ arg2 = (char *)jarg2; \r
+ arg3 = (switch_core_db_callback_func_t)jarg3; \r
+ arg4 = (switch_core_db_err_callback_func_t)jarg4; \r
+ arg5 = (void *)jarg5; \r
+ switch_sql_queue_manager_execute_sql_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5);\r
}\r
\r
\r
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manger_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {\r
switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
char *arg2 = (char *) 0 ;\r
switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ;\r
arg2 = (char *)jarg2; \r
arg3 = (switch_core_db_event_callback_func_t)jarg3; \r
arg4 = (void *)jarg4; \r
- switch_sql_queue_manger_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4);\r
+ switch_sql_queue_manager_execute_sql_event_callback(arg1,(char const *)arg2,arg3,arg4);\r
+}\r
+\r
+\r
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_sql_queue_manager_execute_sql_event_callback_err(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) {\r
+ switch_sql_queue_manager_t *arg1 = (switch_sql_queue_manager_t *) 0 ;\r
+ char *arg2 = (char *) 0 ;\r
+ switch_core_db_event_callback_func_t arg3 = (switch_core_db_event_callback_func_t) 0 ;\r
+ switch_core_db_err_callback_func_t arg4 = (switch_core_db_err_callback_func_t) 0 ;\r
+ void *arg5 = (void *) 0 ;\r
+ \r
+ arg1 = (switch_sql_queue_manager_t *)jarg1; \r
+ arg2 = (char *)jarg2; \r
+ arg3 = (switch_core_db_event_callback_func_t)jarg3; \r
+ arg4 = (switch_core_db_err_callback_func_t)jarg4; \r
+ arg5 = (void *)jarg5; \r
+ switch_sql_queue_manager_execute_sql_event_callback_err(arg1,(char const *)arg2,arg3,arg4,arg5);\r
}\r
\r
\r
return ret;\r
}\r
\r
+ public static switch_status_t switch_cache_db_execute_sql_callback_err(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_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata, ref string err) {\r
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_cache_db_execute_sql_callback_err(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_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata), ref err);\r
+ return ret;\r
+ }\r
+\r
public static int switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle dbh) {\r
int ret = freeswitchPINVOKE.switch_cache_db_affected_rows(SWIGTYPE_p_switch_cache_db_handle.getCPtr(dbh));\r
return ret;\r
freeswitchPINVOKE.switch_core_recovery_flush(technology, profile_name);\r
}\r
\r
+ public static void switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager qm, switch_bool_t flush) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_pause(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), (int)flush);\r
+ }\r
+\r
+ public static void switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager qm) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_resume(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm));\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
return ret;\r
}\r
\r
- public static void switch_sql_queue_manger_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata) {\r
- freeswitchPINVOKE.switch_sql_queue_manger_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata));\r
+ public static void switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_void pdata) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata));\r
+ }\r
+\r
+ public static void switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_int_p_p_char_p_p_char__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata));\r
+ }\r
+\r
+ public static void switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata));\r
}\r
\r
- public static void switch_sql_queue_manger_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_void pdata) {\r
- freeswitchPINVOKE.switch_sql_queue_manger_execute_sql_event_callback(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_void.getCPtr(pdata));\r
+ public static void switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager qm, string sql, SWIGTYPE_p_f_p_void_p_switch_event__int callback, SWIGTYPE_p_f_p_void_p_q_const__char__int err_callback, SWIGTYPE_p_void pdata) {\r
+ freeswitchPINVOKE.switch_sql_queue_manager_execute_sql_event_callback_err(SWIGTYPE_p_switch_sql_queue_manager.getCPtr(qm), sql, SWIGTYPE_p_f_p_void_p_switch_event__int.getCPtr(callback), SWIGTYPE_p_f_p_void_p_q_const__char__int.getCPtr(err_callback), SWIGTYPE_p_void.getCPtr(pdata));\r
}\r
\r
public static SWIGTYPE_p_pid_t switch_fork() {\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback")]\r
public static extern int switch_cache_db_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, ref string jarg5);\r
\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_execute_sql_callback_err")]\r
+ public static extern int switch_cache_db_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, ref string jarg6);\r
+\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_cache_db_affected_rows")]\r
public static extern int switch_cache_db_affected_rows(HandleRef jarg1);\r
\r
[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_pause")]\r
+ public static extern void switch_sql_queue_manager_pause(HandleRef jarg1, int jarg2);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_resume")]\r
+ public static extern void switch_sql_queue_manager_resume(HandleRef jarg1);\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_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
\r
- [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manger_execute_sql_callback")]\r
- public static extern void switch_sql_queue_manger_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4);\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback")]\r
+ public static extern void switch_sql_queue_manager_execute_sql_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_callback_err")]\r
+ public static extern void switch_sql_queue_manager_execute_sql_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);\r
+\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback")]\r
+ public static extern void switch_sql_queue_manager_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4);\r
\r
- [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manger_execute_sql_event_callback")]\r
- public static extern void switch_sql_queue_manger_execute_sql_event_callback(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4);\r
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_sql_queue_manager_execute_sql_event_callback_err")]\r
+ public static extern void switch_sql_queue_manager_execute_sql_event_callback_err(HandleRef jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);\r
\r
[DllImport("mod_managed", EntryPoint="CSharp_switch_fork")]\r
public static extern IntPtr switch_fork();\r