Skip to content

Commit

Permalink
swigall
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed Jun 10, 2024
1 parent 2470973 commit 20191be
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/mod/languages/mod_managed/freeswitch_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_LOST_BURST_CAPTURE_get___()
}


SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_uint31_t_value_set___(void * jarg1, unsigned int jarg2) {
switch_uint31_t *arg1 = (switch_uint31_t *) 0 ;
unsigned int arg2 ;

arg1 = (switch_uint31_t *)jarg1;
arg2 = (unsigned int)jarg2;
if (arg1) (arg1)->value = arg2;
}


SWIGEXPORT unsigned int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_uint31_t_value_get___(void * jarg1) {
unsigned int jresult ;
switch_uint31_t *arg1 = (switch_uint31_t *) 0 ;
unsigned int result;

arg1 = (switch_uint31_t *)jarg1;
result = (unsigned int) ((arg1)->value);
jresult = result;
return jresult;
}


SWIGEXPORT void * SWIGSTDCALL CSharp_FreeSWITCHfNative_new_switch_uint31_t___() {
void * jresult ;
switch_uint31_t *result = 0 ;

result = (switch_uint31_t *)new switch_uint31_t();
jresult = (void *)result;
return jresult;
}


SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_delete_switch_uint31_t___(void * jarg1) {
switch_uint31_t *arg1 = (switch_uint31_t *) 0 ;

arg1 = (switch_uint31_t *)jarg1;
delete arg1;
}


SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_dtmf_t_digit_set___(void * jarg1, char jarg2) {
switch_dtmf_t *arg1 = (switch_dtmf_t *) 0 ;
char arg2 ;
Expand Down Expand Up @@ -23521,6 +23561,16 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_memory_usage_strea
}


SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_rand___() {
int jresult ;
int result;

result = (int)switch_rand();
jresult = result;
return jresult;
}


SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_profile_node_t_var_set___(void * jarg1, char * jarg2) {
profile_node_s *arg1 = (profile_node_s *) 0 ;
char *arg2 = (char *) 0 ;
Expand Down
78 changes: 78 additions & 0 deletions src/mod/languages/mod_managed/managed/swig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11585,6 +11585,11 @@ public static string switch_memory_usage_stream(switch_stream_handle stream) {
return ret;
}

public static int switch_rand() {
int ret = freeswitchPINVOKE.switch_rand();
return ret;
}

public static switch_caller_extension switch_caller_extension_new(SWIGTYPE_p_switch_core_session session, string extension_name, string extension_number) {
global::System.IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_new(SWIGTYPE_p_switch_core_session.getCPtr(session), extension_name, extension_number);
switch_caller_extension ret = (cPtr == global::System.IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false);
Expand Down Expand Up @@ -15975,6 +15980,18 @@ static SWIGStringHelper() {
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_LOST_BURST_CAPTURE_get___")]
public static extern int LOST_BURST_CAPTURE_get();

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_uint31_t_value_set___")]
public static extern void switch_uint31_t_value_set(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_uint31_t_value_get___")]
public static extern uint switch_uint31_t_value_get(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_new_switch_uint31_t___")]
public static extern global::System.IntPtr new_switch_uint31_t();

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_delete_switch_uint31_t___")]
public static extern void delete_switch_uint31_t(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_dtmf_t_digit_set___")]
public static extern void switch_dtmf_t_digit_set(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2);

Expand Down Expand Up @@ -21099,6 +21116,9 @@ static SWIGStringHelper() {
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_memory_usage_stream___")]
public static extern string switch_memory_usage_stream(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_rand___")]
public static extern int switch_rand();

[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_profile_node_t_var_set___")]
public static extern void profile_node_t_var_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);

Expand Down Expand Up @@ -47333,6 +47353,64 @@ public switch_timer_interface() : this(freeswitchPINVOKE.new_switch_timer_interf

namespace FreeSWITCH.Native {

public class switch_uint31_t : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal switch_uint31_t(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(switch_uint31_t obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~switch_uint31_t() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
freeswitchPINVOKE.delete_switch_uint31_t(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public uint value {
set {
freeswitchPINVOKE.switch_uint31_t_value_set(swigCPtr, value);
}
get {
uint ret = freeswitchPINVOKE.switch_uint31_t_value_get(swigCPtr);
return ret;
}
}

public switch_uint31_t() : this(freeswitchPINVOKE.new_switch_uint31_t(), true) {
}

}

}
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.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 {

public class switch_unicast_conninfo : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;
Expand Down

0 comments on commit 20191be

Please sign in to comment.