vs2010 reswig

This commit is contained in:
Jeff Lenk 2014-06-13 22:41:37 -05:00
parent 43770aa862
commit dc2f5cc491
2 changed files with 60 additions and 5 deletions

View File

@ -15969,19 +15969,21 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_loadable_module_get_codec_interface(
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4) {
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_parse_codec_buf(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) {
char * jresult ;
char *arg1 = (char *) 0 ;
uint32_t *arg2 = (uint32_t *) 0 ;
uint32_t *arg3 = (uint32_t *) 0 ;
uint32_t *arg4 = (uint32_t *) 0 ;
uint32_t *arg5 = (uint32_t *) 0 ;
char *result = 0 ;
arg1 = (char *)jarg1;
arg2 = (uint32_t *)jarg2;
arg3 = (uint32_t *)jarg3;
arg4 = (uint32_t *)jarg4;
result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4);
arg5 = (uint32_t *)jarg5;
result = (char *)switch_parse_codec_buf(arg1,arg2,arg3,arg4,arg5);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
@ -20305,6 +20307,28 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_rate_get(void * jarg1)
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_channels_set(void * jarg1, unsigned long jarg2) {
switch_frame *arg1 = (switch_frame *) 0 ;
uint32_t arg2 ;
arg1 = (switch_frame *)jarg1;
arg2 = (uint32_t)jarg2;
if (arg1) (arg1)->channels = arg2;
}
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_frame_channels_get(void * jarg1) {
unsigned long jresult ;
switch_frame *arg1 = (switch_frame *) 0 ;
uint32_t result;
arg1 = (switch_frame *)jarg1;
result = (uint32_t) ((arg1)->channels);
jresult = (unsigned long)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_frame_payload_set(void * jarg1, unsigned char jarg2) {
switch_frame *arg1 = (switch_frame *) 0 ;
switch_payload_t arg2 ;
@ -37631,6 +37655,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_udptl_mode(void * jarg1) {
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_reset(void * jarg1) {
switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;
arg1 = (switch_rtp_t *)jarg1;
switch_rtp_reset(arg1);
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_rtp_set_local_address(void * jarg1, char * jarg2, unsigned short jarg3, void * jarg4) {
int jresult ;
switch_rtp_t *arg1 = (switch_rtp_t *) 0 ;

View File

@ -3230,8 +3230,8 @@ public class freeswitch {
return ret;
}
public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit) {
string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit));
public static string switch_parse_codec_buf(string buf, SWIGTYPE_p_unsigned_long interval, SWIGTYPE_p_unsigned_long rate, SWIGTYPE_p_unsigned_long bit, SWIGTYPE_p_unsigned_long channels) {
string ret = freeswitchPINVOKE.switch_parse_codec_buf(buf, SWIGTYPE_p_unsigned_long.getCPtr(interval), SWIGTYPE_p_unsigned_long.getCPtr(rate), SWIGTYPE_p_unsigned_long.getCPtr(bit), SWIGTYPE_p_unsigned_long.getCPtr(channels));
return ret;
}
@ -6104,6 +6104,10 @@ public class freeswitch {
return ret;
}
public static void switch_rtp_reset(SWIGTYPE_p_switch_rtp rtp_session) {
freeswitchPINVOKE.switch_rtp_reset(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session));
}
public static switch_status_t switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp rtp_session, string host, ushort port, ref string err) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_rtp_set_local_address(SWIGTYPE_p_switch_rtp.getCPtr(rtp_session), host, port, ref err);
return ret;
@ -11248,7 +11252,7 @@ class freeswitchPINVOKE {
public static extern IntPtr switch_loadable_module_get_codec_interface(string jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_parse_codec_buf")]
public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
public static extern string switch_parse_codec_buf(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_get_dialplan_interface")]
public static extern IntPtr switch_loadable_module_get_dialplan_interface(string jarg1);
@ -12201,6 +12205,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_rate_get")]
public static extern uint switch_frame_rate_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_set")]
public static extern void switch_frame_channels_set(HandleRef jarg1, uint jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_channels_get")]
public static extern uint switch_frame_channels_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_frame_payload_set")]
public static extern void switch_frame_payload_set(HandleRef jarg1, byte jarg2);
@ -16368,6 +16378,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_udptl_mode")]
public static extern int switch_rtp_udptl_mode(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_reset")]
public static extern void switch_rtp_reset(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_set_local_address")]
public static extern int switch_rtp_set_local_address(HandleRef jarg1, string jarg2, ushort jarg3, ref string jarg4);
@ -32691,6 +32704,16 @@ public class switch_frame : IDisposable {
}
}
public uint channels {
set {
freeswitchPINVOKE.switch_frame_channels_set(swigCPtr, value);
}
get {
uint ret = freeswitchPINVOKE.switch_frame_channels_get(swigCPtr);
return ret;
}
}
public byte payload {
set {
freeswitchPINVOKE.switch_frame_payload_set(swigCPtr, value);