}
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_width_set(void * jarg1, int jarg2) {
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_width_set(void * jarg1, unsigned long jarg2) {
switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
- int arg2 ;
+ uint32_t arg2 ;
arg1 = (switch_vid_params_s *)jarg1;
- arg2 = (int)jarg2;
+ arg2 = (uint32_t)jarg2;
if (arg1) (arg1)->width = arg2;
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_vid_params_t_width_get(void * jarg1) {
- int jresult ;
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_width_get(void * jarg1) {
+ unsigned long jresult ;
switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
- int result;
+ uint32_t result;
arg1 = (switch_vid_params_s *)jarg1;
- result = (int) ((arg1)->width);
- jresult = result;
+ result = (uint32_t) ((arg1)->width);
+ jresult = (unsigned long)result;
return jresult;
}
-SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_height_set(void * jarg1, int jarg2) {
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_height_set(void * jarg1, unsigned long jarg2) {
switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
- int arg2 ;
+ uint32_t arg2 ;
arg1 = (switch_vid_params_s *)jarg1;
- arg2 = (int)jarg2;
+ arg2 = (uint32_t)jarg2;
if (arg1) (arg1)->height = arg2;
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_vid_params_t_height_get(void * jarg1) {
- int jresult ;
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_height_get(void * jarg1) {
+ unsigned long jresult ;
switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
- int result;
+ uint32_t result;
arg1 = (switch_vid_params_s *)jarg1;
- result = (int) ((arg1)->height);
- jresult = result;
+ result = (uint32_t) ((arg1)->height);
+ jresult = (unsigned long)result;
+ return jresult;
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_vid_params_t_fps_set(void * jarg1, unsigned long jarg2) {
+ switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
+ uint32_t arg2 ;
+
+ arg1 = (switch_vid_params_s *)jarg1;
+ arg2 = (uint32_t)jarg2;
+ if (arg1) (arg1)->fps = arg2;
+}
+
+
+SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_vid_params_t_fps_get(void * jarg1) {
+ unsigned long jresult ;
+ switch_vid_params_s *arg1 = (switch_vid_params_s *) 0 ;
+ uint32_t result;
+
+ arg1 = (switch_vid_params_s *)jarg1;
+ result = (uint32_t) ((arg1)->fps);
+ jresult = (unsigned long)result;
return jresult;
}
}
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_command(void * jarg1, int jarg2) {
+ int jresult ;
+ switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ;
+ switch_file_command_t arg2 ;
+ switch_status_t result;
+
+ arg1 = (switch_file_handle_t *)jarg1;
+ arg2 = (switch_file_command_t)jarg2;
+ result = (switch_status_t)switch_core_file_command(arg1,arg2);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_truncate(void * jarg1, long long jarg2) {
int jresult ;
switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ;
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_has_video(void * jarg1) {
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_file_has_video(void * jarg1, int jarg2) {
int jresult ;
switch_file_handle_t *arg1 = (switch_file_handle_t *) 0 ;
+ switch_bool_t arg2 ;
switch_bool_t result;
arg1 = (switch_file_handle_t *)jarg1;
- result = (switch_bool_t)switch_core_file_has_video(arg1);
+ arg2 = (switch_bool_t)jarg2;
+ result = (switch_bool_t)switch_core_file_has_video(arg1,arg2);
jresult = result;
return jresult;
}
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_file_command_set(void * jarg1, void * jarg2) {
+ switch_file_interface *arg1 = (switch_file_interface *) 0 ;
+ switch_status_t (*arg2)(switch_file_handle_t *,switch_file_command_t) = (switch_status_t (*)(switch_file_handle_t *,switch_file_command_t)) 0 ;
+
+ arg1 = (switch_file_interface *)jarg1;
+ arg2 = (switch_status_t (*)(switch_file_handle_t *,switch_file_command_t))jarg2;
+ if (arg1) (arg1)->file_command = arg2;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_interface_file_command_get(void * jarg1) {
+ void * jresult ;
+ switch_file_interface *arg1 = (switch_file_interface *) 0 ;
+ switch_status_t (*result)(switch_file_handle_t *,switch_file_command_t) = 0 ;
+
+ arg1 = (switch_file_interface *)jarg1;
+ result = (switch_status_t (*)(switch_file_handle_t *,switch_file_command_t)) ((arg1)->file_command);
+ jresult = (void *)result;
+ return jresult;
+}
+
+
SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_interface_extens_set(void * jarg1, void * jarg2) {
switch_file_interface *arg1 = (switch_file_interface *) 0 ;
char **arg2 = (char **) 0 ;
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_file_handle_flag_mutex_set(void * jarg1, void * jarg2) {
+ switch_file_handle *arg1 = (switch_file_handle *) 0 ;
+ switch_mutex_t *arg2 = (switch_mutex_t *) 0 ;
+
+ arg1 = (switch_file_handle *)jarg1;
+ arg2 = (switch_mutex_t *)jarg2;
+ if (arg1) (arg1)->flag_mutex = arg2;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_file_handle_flag_mutex_get(void * jarg1) {
+ void * jresult ;
+ switch_file_handle *arg1 = (switch_file_handle *) 0 ;
+ switch_mutex_t *result = 0 ;
+
+ arg1 = (switch_file_handle *)jarg1;
+ result = (switch_mutex_t *) ((arg1)->flag_mutex);
+ jresult = (void *)result;
+ return jresult;
+}
+
+
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_file_handle() {
void * jresult ;
switch_file_handle *result = 0 ;
return ret;
}
+ public static switch_status_t switch_core_file_command(switch_file_handle fh, switch_file_command_t command) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_command(switch_file_handle.getCPtr(fh), (int)command);
+ return ret;
+ }
+
public static switch_status_t switch_core_file_truncate(switch_file_handle fh, long offset) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_file_truncate(switch_file_handle.getCPtr(fh), offset);
return ret;
}
- public static switch_bool_t switch_core_file_has_video(switch_file_handle fh) {
- switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_file_has_video(switch_file_handle.getCPtr(fh));
+ public static switch_bool_t switch_core_file_has_video(switch_file_handle fh, switch_bool_t CHECK_OPEN) {
+ switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_core_file_has_video(switch_file_handle.getCPtr(fh), (int)CHECK_OPEN);
return ret;
}
public static extern void delete_switch_t38_options_t(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_width_set")]
- public static extern void switch_vid_params_t_width_set(HandleRef jarg1, int jarg2);
+ public static extern void switch_vid_params_t_width_set(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_width_get")]
- public static extern int switch_vid_params_t_width_get(HandleRef jarg1);
+ public static extern uint switch_vid_params_t_width_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_height_set")]
- public static extern void switch_vid_params_t_height_set(HandleRef jarg1, int jarg2);
+ public static extern void switch_vid_params_t_height_set(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_height_get")]
- public static extern int switch_vid_params_t_height_get(HandleRef jarg1);
+ public static extern uint switch_vid_params_t_height_get(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_fps_set")]
+ public static extern void switch_vid_params_t_fps_set(HandleRef jarg1, uint jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_vid_params_t_fps_get")]
+ public static extern uint switch_vid_params_t_fps_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_vid_params_t")]
public static extern IntPtr new_switch_vid_params_t();
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_close")]
public static extern int switch_core_file_close(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_command")]
+ public static extern int switch_core_file_command(HandleRef jarg1, int jarg2);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_truncate")]
public static extern int switch_core_file_truncate(HandleRef jarg1, long jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_file_has_video")]
- public static extern int switch_core_file_has_video(HandleRef jarg1);
+ public static extern int switch_core_file_has_video(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_speech_open")]
public static extern int switch_core_speech_open(HandleRef jarg1, string jarg2, string jarg3, uint jarg4, uint jarg5, uint jarg6, HandleRef jarg7, HandleRef jarg8);
[DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_get_string_get")]
public static extern IntPtr switch_file_interface_file_get_string_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_command_set")]
+ public static extern void switch_file_interface_file_command_set(HandleRef jarg1, HandleRef jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_file_command_get")]
+ public static extern IntPtr switch_file_interface_file_command_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_file_interface_extens_set")]
public static extern void switch_file_interface_extens_set(HandleRef jarg1, ref string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_mm_get")]
public static extern IntPtr switch_file_handle_mm_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flag_mutex_set")]
+ public static extern void switch_file_handle_flag_mutex_set(HandleRef jarg1, HandleRef jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_file_handle_flag_mutex_get")]
+ public static extern IntPtr switch_file_handle_flag_mutex_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_file_handle")]
public static extern IntPtr new_switch_file_handle();
using System;
using System.Runtime.InteropServices;
+public class SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t {
+ private HandleRef swigCPtr;
+
+ internal SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t(IntPtr cPtr, bool futureUse) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ internal static HandleRef getCPtr(SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.12
+ *
+ * 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_f_p_switch_file_handle_long_long__switch_status_t {
private HandleRef swigCPtr;
CF_VIDEO_BITRATE_UNMANAGABLE,
CF_VIDEO_ECHO,
CF_VIDEO_BLANK,
+ CF_VIDEO_WRITING,
CF_SLA_INTERCEPT,
CF_VIDEO_BREAK,
CF_AUDIO_PAUSE,
namespace FreeSWITCH.Native {
+public enum switch_file_command_t {
+ SCFC_FLUSH_AUDIO
+}
+
+}
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.12
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+namespace FreeSWITCH.Native {
+
[System.Flags] public enum switch_file_flag_enum_t {
SWITCH_FILE_FLAG_READ = (1 << 0),
SWITCH_FILE_FLAG_WRITE = (1 << 1),
SWITCH_FILE_WRITE_OVER = (1 << 16),
SWITCH_FILE_NOMUX = (1 << 17),
SWITCH_FILE_BREAK_ON_CHANGE = (1 << 18),
- SWITCH_FILE_FLAG_VIDEO = (1 << 19)
+ SWITCH_FILE_FLAG_VIDEO = (1 << 19),
+ SWITCH_FILE_FLAG_VIDEO_EOF = (1 << 20)
}
}
}
}
+ public SWIGTYPE_p_switch_mutex_t flag_mutex {
+ set {
+ freeswitchPINVOKE.switch_file_handle_flag_mutex_set(swigCPtr, SWIGTYPE_p_switch_mutex_t.getCPtr(value));
+ }
+ get {
+ IntPtr cPtr = freeswitchPINVOKE.switch_file_handle_flag_mutex_get(swigCPtr);
+ SWIGTYPE_p_switch_mutex_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_switch_mutex_t(cPtr, false);
+ return ret;
+ }
+ }
+
public switch_file_handle() : this(freeswitchPINVOKE.new_switch_file_handle(), true) {
}
}
}
+ public SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t file_command {
+ set {
+ freeswitchPINVOKE.switch_file_interface_file_command_set(swigCPtr, SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t.getCPtr(value));
+ }
+ get {
+ IntPtr cPtr = freeswitchPINVOKE.switch_file_interface_file_command_get(swigCPtr);
+ SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_switch_file_handle_enum_switch_file_command_t__switch_status_t(cPtr, false);
+ return ret;
+ }
+ }
+
public string extens {
set { freeswitchPINVOKE.switch_file_interface_extens_set(swigCPtr, ref value); }
namespace FreeSWITCH.Native {
public enum switch_video_encode_speed_t {
- SWITCH_VIDEO_ENCODE_SPEED_DEFAULT,
- SWITCH_VIDEO_ENCODE_SPEED_SLOW,
+ SWITCH_VIDEO_ENCODE_SPEED_DEFAULT = 0,
+ SWITCH_VIDEO_ENCODE_SPEED_FAST = 0,
SWITCH_VIDEO_ENCODE_SPEED_MEDIUM,
- SWITCH_VIDEO_ENCODE_SPEED_FAST
+ SWITCH_VIDEO_ENCODE_SPEED_SLOW
}
}
}
}
- public int width {
+ public uint width {
set {
freeswitchPINVOKE.switch_vid_params_t_width_set(swigCPtr, value);
}
get {
- int ret = freeswitchPINVOKE.switch_vid_params_t_width_get(swigCPtr);
+ uint ret = freeswitchPINVOKE.switch_vid_params_t_width_get(swigCPtr);
return ret;
}
}
- public int height {
+ public uint height {
set {
freeswitchPINVOKE.switch_vid_params_t_height_set(swigCPtr, value);
}
get {
- int ret = freeswitchPINVOKE.switch_vid_params_t_height_get(swigCPtr);
+ uint ret = freeswitchPINVOKE.switch_vid_params_t_height_get(swigCPtr);
+ return ret;
+ }
+ }
+
+ public uint fps {
+ set {
+ freeswitchPINVOKE.switch_vid_params_t_fps_set(swigCPtr, value);
+ }
+ get {
+ uint ret = freeswitchPINVOKE.switch_vid_params_t_fps_get(swigCPtr);
return ret;
}
}