]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
swigall
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 2 Nov 2008 02:10:01 +0000 (02:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 2 Nov 2008 02:10:01 +0000 (02:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10217 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_managed/freeswitch_wrap.cxx
src/mod/languages/mod_managed/managed/swig.cs

index ce1adaa4843596e78294a74b8d797a4a4843c741..0adf1fed8c792116736becda32a6a7315ffdf4b1 100644 (file)
@@ -7100,19 +7100,49 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_timestamp(void * jarg1) {
 }
 
 
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_strftime_tz(char * jarg1, char * jarg2, char * jarg3, unsigned long jarg4) {
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_strftime_tz(char * jarg1, char * jarg2, char * jarg3, unsigned long jarg4, void * jarg5) {
   int jresult ;
   char *arg1 = (char *) 0 ;
   char *arg2 = (char *) 0 ;
   char *arg3 = (char *) 0 ;
   size_t arg4 ;
+  switch_time_t arg5 ;
   switch_status_t result;
+  switch_time_t *argp5 ;
   
   arg1 = (char *)jarg1; 
   arg2 = (char *)jarg2; 
   arg3 = (char *)jarg3; 
   arg4 = (size_t)jarg4; 
-  result = (switch_status_t)switch_strftime_tz((char const *)arg1,(char const *)arg2,arg3,arg4);
+  argp5 = (switch_time_t *)jarg5; 
+  if (!argp5) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0);
+    return 0;
+  }
+  arg5 = *argp5; 
+  result = (switch_status_t)switch_strftime_tz((char const *)arg1,(char const *)arg2,arg3,arg4,arg5);
+  jresult = result; 
+  return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_time_exp_tz_name(char * jarg1, void * jarg2, void * jarg3) {
+  int jresult ;
+  char *arg1 = (char *) 0 ;
+  switch_time_exp_t *arg2 = (switch_time_exp_t *) 0 ;
+  switch_time_t arg3 ;
+  switch_status_t result;
+  switch_time_t *argp3 ;
+  
+  arg1 = (char *)jarg1; 
+  arg2 = (switch_time_exp_t *)jarg2; 
+  argp3 = (switch_time_t *)jarg3; 
+  if (!argp3) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0);
+    return 0;
+  }
+  arg3 = *argp3; 
+  result = (switch_status_t)switch_time_exp_tz_name((char const *)arg1,arg2,arg3);
   jresult = result; 
   return jresult;
 }
index 8755a977d20756f710f55efbc44088b16e978159..82e564e792c0241fcefc5a7ba292c7fe4a59caa0 100644 (file)
@@ -1849,8 +1849,15 @@ public class freeswitch {
     return ret;
   }
 
-  public static switch_status_t switch_strftime_tz(string tz, string format, string date, uint len) {
-    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_strftime_tz(tz, format, date, len);
+  public static switch_status_t switch_strftime_tz(string tz, string format, string date, uint len, SWIGTYPE_p_switch_time_t thetime) {
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_strftime_tz(tz, format, date, len, SWIGTYPE_p_switch_time_t.getCPtr(thetime));
+    if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
+    return ret;
+  }
+
+  public static switch_status_t switch_time_exp_tz_name(string tz, SWIGTYPE_p_switch_time_exp_t tm, SWIGTYPE_p_switch_time_t thetime) {
+    switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_time_exp_tz_name(tz, SWIGTYPE_p_switch_time_exp_t.getCPtr(tm), SWIGTYPE_p_switch_time_t.getCPtr(thetime));
+    if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
     return ret;
   }
 
@@ -5793,7 +5800,10 @@ class freeswitchPINVOKE {
   public static extern IntPtr switch_timestamp(HandleRef jarg1);
 
   [DllImport("mod_managed", EntryPoint="CSharp_switch_strftime_tz")]
-  public static extern int switch_strftime_tz(string jarg1, string jarg2, string jarg3, uint jarg4);
+  public static extern int switch_strftime_tz(string jarg1, string jarg2, string jarg3, uint jarg4, HandleRef jarg5);
+
+  [DllImport("mod_managed", EntryPoint="CSharp_switch_time_exp_tz_name")]
+  public static extern int switch_time_exp_tz_name(string jarg1, HandleRef jarg2, HandleRef jarg3);
 
   [DllImport("mod_managed", EntryPoint="CSharp_switch_load_network_lists")]
   public static extern void switch_load_network_lists(int jarg1);
@@ -14240,6 +14250,36 @@ namespace FreeSWITCH.Native {
 using System;
 using System.Runtime.InteropServices;
 
+public class SWIGTYPE_p_switch_time_exp_t {
+  private HandleRef swigCPtr;
+
+  internal SWIGTYPE_p_switch_time_exp_t(IntPtr cPtr, bool futureUse) {
+    swigCPtr = new HandleRef(this, cPtr);
+  }
+
+  protected SWIGTYPE_p_switch_time_exp_t() {
+    swigCPtr = new HandleRef(null, IntPtr.Zero);
+  }
+
+  internal static HandleRef getCPtr(SWIGTYPE_p_switch_time_exp_t obj) {
+    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+  }
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.35
+ *
+ * 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_time_t {
   private HandleRef swigCPtr;