]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
VS2010 reswig
authorJeff Lenk <jeff@jefflenk.com>
Wed, 1 Dec 2010 03:43:28 +0000 (21:43 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 1 Dec 2010 03:43:28 +0000 (21:43 -0600)
src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx
src/mod/languages/mod_managed/managed/swig.2010.cs

index 4a0b52efec6066175f689722353df6d356ec97bf..8033a8faa50afd254127b483772b3167683e7b87 100644 (file)
@@ -6454,6 +6454,42 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_destroy() {
 }\r
 \r
 \r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_read_lock(void * jarg1) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  result = (switch_status_t)switch_core_session_io_read_lock(arg1);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_write_lock(void * jarg1) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  result = (switch_status_t)switch_core_session_io_write_lock(arg1);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_io_rwunlock(void * jarg1) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  result = (switch_status_t)switch_core_session_io_rwunlock(arg1);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_read_lock(void * jarg1) {\r
   int jresult ;\r
   switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
@@ -7336,6 +7372,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_get_fl
 }\r
 \r
 \r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_execute_application_async(void * jarg1, char * jarg2, char * jarg3) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  char *arg2 = (char *) 0 ;\r
+  char *arg3 = (char *) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  arg2 = (char *)jarg2; \r
+  arg3 = (char *)jarg3; \r
+  result = (switch_status_t)switch_core_session_execute_application_async(arg1,(char const *)arg2,(char const *)arg3);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_app_flags(char * jarg1, void * jarg2) {\r
   int jresult ;\r
   char *arg1 = (char *) 0 ;\r
@@ -7566,6 +7618,18 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_event_count(void
 }\r
 \r
 \r
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_messages_waiting(void * jarg1) {\r
+  unsigned long jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  uint32_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  result = (uint32_t)switch_core_session_messages_waiting(arg1);\r
+  jresult = (unsigned long)result; \r
+  return jresult;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_dequeue_event(void * jarg1, void * jarg2, int jarg3) {\r
   int jresult ;\r
   switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
@@ -27597,6 +27661,74 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_dmachine_set_realm(void * jarg1, ch
 }\r
 \r
 \r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_get_file_handle(void * jarg1, void * jarg2) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  arg2 = (switch_file_handle_t **)jarg2; \r
+  result = (switch_status_t)switch_ivr_get_file_handle(arg1,arg2);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_release_file_handle(void * jarg1, void * jarg2) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  switch_file_handle_t **arg2 = (switch_file_handle_t **) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  arg2 = (switch_file_handle_t **)jarg2; \r
+  result = (switch_status_t)switch_ivr_release_file_handle(arg1,arg2);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_process_fh(void * jarg1, char * jarg2, void * jarg3) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  char *arg2 = (char *) 0 ;\r
+  switch_file_handle_t *arg3 = (switch_file_handle_t *) 0 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  arg2 = (char *)jarg2; \r
+  arg3 = (switch_file_handle_t *)jarg3; \r
+  result = (switch_status_t)switch_ivr_process_fh(arg1,(char const *)arg2,arg3);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_insert_file(void * jarg1, char * jarg2, char * jarg3, void * jarg4) {\r
+  int jresult ;\r
+  switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;\r
+  char *arg2 = (char *) 0 ;\r
+  char *arg3 = (char *) 0 ;\r
+  switch_size_t arg4 ;\r
+  switch_size_t *argp4 ;\r
+  switch_status_t result;\r
+  \r
+  arg1 = (switch_core_session_t *)jarg1; \r
+  arg2 = (char *)jarg2; \r
+  arg3 = (char *)jarg3; \r
+  argp4 = (switch_size_t *)jarg4; \r
+  if (!argp4) {\r
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0);\r
+    return 0;\r
+  }\r
+  arg4 = *argp4; \r
+  result = (switch_status_t)switch_ivr_insert_file(arg1,(char const *)arg2,(char const *)arg3,arg4);\r
+  jresult = result; \r
+  return jresult;\r
+}\r
+\r
+\r
 SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_RTP_MAX_BUF_LEN_get() {\r
   int jresult ;\r
   int result;\r
index 2897fef1e5a51cd89eab36862506c4377ad32036..4d14f10879def351f78465fbf919c9246dfc5bf8 100644 (file)
@@ -1113,6 +1113,21 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
+  public static switch_status_t switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session session) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session session) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_write_lock(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session session) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_io_rwunlock(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+    return ret;\r
+  }\r
+\r
   public static switch_status_t switch_core_session_read_lock(SWIGTYPE_p_switch_core_session session) {\r
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_read_lock(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
     return ret;\r
@@ -1449,6 +1464,11 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
+  public static switch_status_t switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session session, string app, string arg) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_execute_application_async(SWIGTYPE_p_switch_core_session.getCPtr(session), app, arg);\r
+    return ret;\r
+  }\r
+\r
   public static switch_status_t switch_core_session_get_app_flags(string app, SWIGTYPE_p_int flags) {\r
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_app_flags(app, SWIGTYPE_p_int.getCPtr(flags));\r
     return ret;\r
@@ -1528,6 +1548,11 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
+  public static uint switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session session) {\r
+    uint ret = freeswitchPINVOKE.switch_core_session_messages_waiting(SWIGTYPE_p_switch_core_session.getCPtr(session));\r
+    return ret;\r
+  }\r
+\r
   public static switch_status_t switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_event arg1, switch_bool_t force) {\r
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_dequeue_event(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_event.getCPtr(arg1), (int)force);\r
     return ret;\r
@@ -4471,6 +4496,27 @@ public class freeswitch {
     return ret;\r
   }\r
 \r
+  public static switch_status_t switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_get_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_file_handle fh) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_release_file_handle(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_file_handle.getCPtr(fh));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_ivr_process_fh(SWIGTYPE_p_switch_core_session session, string cmd, switch_file_handle fhp) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_process_fh(SWIGTYPE_p_switch_core_session.getCPtr(session), cmd, switch_file_handle.getCPtr(fhp));\r
+    return ret;\r
+  }\r
+\r
+  public static switch_status_t switch_ivr_insert_file(SWIGTYPE_p_switch_core_session session, string file, string insert_file, SWIGTYPE_p_switch_size_t sample_point) {\r
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_insert_file(SWIGTYPE_p_switch_core_session.getCPtr(session), file, insert_file, SWIGTYPE_p_switch_size_t.getCPtr(sample_point));\r
+    if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();\r
+    return ret;\r
+  }\r
+\r
   public static switch_status_t switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp rtp_session, switch_rtp_crypto_direction_t direction, uint index, switch_rtp_crypto_key_type_t type, SWIGTYPE_p_unsigned_char key, SWIGTYPE_p_switch_size_t keylen) {\r
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_add_crypto_key(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), (int)direction, index, (int)type, SWIGTYPE_p_unsigned_char.getCPtr(key), SWIGTYPE_p_switch_size_t.getCPtr(keylen));\r
     if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();\r
@@ -7259,6 +7305,15 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_destroy")]\r
   public static extern int switch_core_destroy();\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_read_lock")]\r
+  public static extern int switch_core_session_io_read_lock(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_write_lock")]\r
+  public static extern int switch_core_session_io_write_lock(HandleRef jarg1);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_io_rwunlock")]\r
+  public static extern int switch_core_session_io_rwunlock(HandleRef jarg1);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_read_lock")]\r
   public static extern int switch_core_session_read_lock(HandleRef jarg1);\r
 \r
@@ -7463,6 +7518,9 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_get_flags")]\r
   public static extern int switch_core_session_execute_application_get_flags(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4);\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_execute_application_async")]\r
+  public static extern int switch_core_session_execute_application_async(HandleRef jarg1, string jarg2, string jarg3);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_app_flags")]\r
   public static extern int switch_core_session_get_app_flags(string jarg1, HandleRef jarg2);\r
 \r
@@ -7511,6 +7569,9 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_event_count")]\r
   public static extern uint switch_core_session_event_count(HandleRef jarg1);\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_messages_waiting")]\r
+  public static extern uint switch_core_session_messages_waiting(HandleRef jarg1);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_dequeue_event")]\r
   public static extern int switch_core_session_dequeue_event(HandleRef jarg1, HandleRef jarg2, int jarg3);\r
 \r
@@ -12242,6 +12303,18 @@ class freeswitchPINVOKE {
   [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_dmachine_set_realm")]\r
   public static extern int switch_ivr_dmachine_set_realm(HandleRef jarg1, string jarg2);\r
 \r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_get_file_handle")]\r
+  public static extern int switch_ivr_get_file_handle(HandleRef jarg1, HandleRef jarg2);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_release_file_handle")]\r
+  public static extern int switch_ivr_release_file_handle(HandleRef jarg1, HandleRef jarg2);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_process_fh")]\r
+  public static extern int switch_ivr_process_fh(HandleRef jarg1, string jarg2, HandleRef jarg3);\r
+\r
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_ivr_insert_file")]\r
+  public static extern int switch_ivr_insert_file(HandleRef jarg1, string jarg2, string jarg3, HandleRef jarg4);\r
+\r
   [DllImport("mod_managed", EntryPoint="CSharp_SWITCH_RTP_MAX_BUF_LEN_get")]\r
   public static extern int SWITCH_RTP_MAX_BUF_LEN_get();\r
 \r
@@ -17157,6 +17230,36 @@ namespace FreeSWITCH.Native {
 using System;\r
 using System.Runtime.InteropServices;\r
 \r
+public class SWIGTYPE_p_p_switch_file_handle {\r
+  private HandleRef swigCPtr;\r
+\r
+  internal SWIGTYPE_p_p_switch_file_handle(IntPtr cPtr, bool futureUse) {\r
+    swigCPtr = new HandleRef(this, cPtr);\r
+  }\r
+\r
+  protected SWIGTYPE_p_p_switch_file_handle() {\r
+    swigCPtr = new HandleRef(null, IntPtr.Zero);\r
+  }\r
+\r
+  internal static HandleRef getCPtr(SWIGTYPE_p_p_switch_file_handle 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_frame {\r
   private HandleRef swigCPtr;\r
 \r