swig
This commit is contained in:
parent
606e197ac6
commit
e169212319
|
@ -2998,6 +2998,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_dirs_get() {
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_filenames_conf_name_set(void * jarg1, char * jarg2) {
|
||||
switch_filenames *arg1 = (switch_filenames *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
arg1 = (switch_filenames *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
{
|
||||
if (arg1->conf_name) delete [] arg1->conf_name;
|
||||
if (arg2) {
|
||||
arg1->conf_name = (char *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->conf_name, (const char *)arg2);
|
||||
} else {
|
||||
arg1->conf_name = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_filenames_conf_name_get(void * jarg1) {
|
||||
char * jresult ;
|
||||
switch_filenames *arg1 = (switch_filenames *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
arg1 = (switch_filenames *)jarg1;
|
||||
result = (char *) ((arg1)->conf_name);
|
||||
jresult = SWIG_csharp_string_callback((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_filenames() {
|
||||
void * jresult ;
|
||||
switch_filenames *result = 0 ;
|
||||
|
||||
result = (switch_filenames *)new switch_filenames();
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_filenames(void * jarg1) {
|
||||
switch_filenames *arg1 = (switch_filenames *) 0 ;
|
||||
|
||||
arg1 = (switch_filenames *)jarg1;
|
||||
delete arg1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_set(void * jarg1) {
|
||||
switch_filenames *arg1 = (switch_filenames *) 0 ;
|
||||
|
||||
arg1 = (switch_filenames *)jarg1;
|
||||
SWITCH_GLOBAL_filenames = *arg1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_SWITCH_GLOBAL_filenames_get() {
|
||||
void * jresult ;
|
||||
switch_filenames *result = 0 ;
|
||||
|
||||
result = (switch_filenames *)&SWITCH_GLOBAL_filenames;
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_MAX_STACKS_get() {
|
||||
int jresult ;
|
||||
int result;
|
||||
|
@ -12837,6 +12905,24 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_get_stacksizes(void * jarg1, void
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_gen_encoded_silence(void * jarg1, void * jarg2, void * jarg3) {
|
||||
unsigned char *arg1 = (unsigned char *) 0 ;
|
||||
switch_codec_implementation_t *arg2 = (switch_codec_implementation_t *) 0 ;
|
||||
switch_size_t arg3 ;
|
||||
switch_size_t *argp3 ;
|
||||
|
||||
arg1 = (unsigned char *)jarg1;
|
||||
arg2 = (switch_codec_implementation_t *)jarg2;
|
||||
argp3 = (switch_size_t *)jarg3;
|
||||
if (!argp3) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0);
|
||||
return ;
|
||||
}
|
||||
arg3 = *argp3;
|
||||
switch_core_gen_encoded_silence(arg1,(switch_codec_implementation const *)arg2,arg3);
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_dbtype() {
|
||||
int jresult ;
|
||||
switch_cache_db_handle_type_t result;
|
||||
|
@ -28656,6 +28742,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_channel_state_thread_trylock(void * jar
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_channel_handle_cause(void * jarg1, int jarg2) {
|
||||
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
|
||||
switch_call_cause_t arg2 ;
|
||||
|
||||
arg1 = (switch_channel_t *)jarg1;
|
||||
arg2 = (switch_call_cause_t)jarg2;
|
||||
switch_channel_handle_cause(arg1,arg2);
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_buffer_create(void * jarg1, void * jarg2, void * jarg3) {
|
||||
int jresult ;
|
||||
switch_memory_pool_t *arg1 = (switch_memory_pool_t *) 0 ;
|
||||
|
|
|
@ -1021,6 +1021,17 @@ public class freeswitch {
|
|||
}
|
||||
}
|
||||
|
||||
public static switch_filenames SWITCH_GLOBAL_filenames {
|
||||
set {
|
||||
freeswitchPINVOKE.SWITCH_GLOBAL_filenames_set(switch_filenames.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.SWITCH_GLOBAL_filenames_get();
|
||||
switch_filenames ret = (cPtr == IntPtr.Zero) ? null : new switch_filenames(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public static int switch_core_db_close(SWIGTYPE_p_sqlite3 db) {
|
||||
int ret = freeswitchPINVOKE.switch_core_db_close(SWIGTYPE_p_sqlite3.getCPtr(db));
|
||||
return ret;
|
||||
|
@ -2998,6 +3009,11 @@ public class freeswitch {
|
|||
return ret;
|
||||
}
|
||||
|
||||
public static void switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char data, switch_codec_implementation read_impl, SWIGTYPE_p_switch_size_t len) {
|
||||
freeswitchPINVOKE.switch_core_gen_encoded_silence(SWIGTYPE_p_unsigned_char.getCPtr(data), switch_codec_implementation.getCPtr(read_impl), SWIGTYPE_p_switch_size_t.getCPtr(len));
|
||||
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
|
||||
}
|
||||
|
||||
public static switch_cache_db_handle_type_t switch_core_dbtype() {
|
||||
switch_cache_db_handle_type_t ret = (switch_cache_db_handle_type_t)freeswitchPINVOKE.switch_core_dbtype();
|
||||
return ret;
|
||||
|
@ -4580,6 +4596,10 @@ public class freeswitch {
|
|||
return ret;
|
||||
}
|
||||
|
||||
public static void switch_channel_handle_cause(SWIGTYPE_p_switch_channel channel, switch_call_cause_t cause) {
|
||||
freeswitchPINVOKE.switch_channel_handle_cause(SWIGTYPE_p_switch_channel.getCPtr(channel), (int)cause);
|
||||
}
|
||||
|
||||
public static switch_status_t switch_buffer_create(SWIGTYPE_p_apr_pool_t pool, SWIGTYPE_p_p_switch_buffer buffer, SWIGTYPE_p_switch_size_t max_len) {
|
||||
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_buffer_create(SWIGTYPE_p_apr_pool_t.getCPtr(pool), SWIGTYPE_p_p_switch_buffer.getCPtr(buffer), SWIGTYPE_p_switch_size_t.getCPtr(max_len));
|
||||
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
|
||||
|
@ -7659,6 +7679,24 @@ class freeswitchPINVOKE {
|
|||
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_dirs_get")]
|
||||
public static extern IntPtr SWITCH_GLOBAL_dirs_get();
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_set")]
|
||||
public static extern void switch_filenames_conf_name_set(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_filenames_conf_name_get")]
|
||||
public static extern string switch_filenames_conf_name_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_filenames")]
|
||||
public static extern IntPtr new_switch_filenames();
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_delete_switch_filenames")]
|
||||
public static extern void delete_switch_filenames(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_set")]
|
||||
public static extern void SWITCH_GLOBAL_filenames_set(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_GLOBAL_filenames_get")]
|
||||
public static extern IntPtr SWITCH_GLOBAL_filenames_get();
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_STACKS_get")]
|
||||
public static extern int SWITCH_MAX_STACKS_get();
|
||||
|
||||
|
@ -9984,6 +10022,9 @@ class freeswitchPINVOKE {
|
|||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_get_stacksizes")]
|
||||
public static extern int switch_core_get_stacksizes(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_gen_encoded_silence")]
|
||||
public static extern void switch_core_gen_encoded_silence(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_dbtype")]
|
||||
public static extern int switch_core_dbtype();
|
||||
|
||||
|
@ -13782,6 +13823,9 @@ class freeswitchPINVOKE {
|
|||
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_state_thread_trylock")]
|
||||
public static extern int switch_channel_state_thread_trylock(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_handle_cause")]
|
||||
public static extern void switch_channel_handle_cause(HandleRef jarg1, int jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_buffer_create")]
|
||||
public static extern int switch_buffer_create(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
|
||||
|
||||
|
@ -25366,7 +25410,6 @@ public enum switch_channel_flag_t {
|
|||
CF_MEDIA_TRANS,
|
||||
CF_HOLD_ON_BRIDGE,
|
||||
CF_SECURE,
|
||||
CF_CRYPTO_RECOVER,
|
||||
CF_LIBERAL_DTMF,
|
||||
CF_SLA_BARGE,
|
||||
CF_SLA_BARGING,
|
||||
|
@ -29582,6 +29625,63 @@ namespace FreeSWITCH.Native {
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class switch_filenames : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal switch_filenames(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(switch_filenames obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~switch_filenames() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
freeswitchPINVOKE.delete_switch_filenames(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public string conf_name {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_filenames_conf_name_set(swigCPtr, value);
|
||||
}
|
||||
get {
|
||||
string ret = freeswitchPINVOKE.switch_filenames_conf_name_get(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public switch_filenames() : this(freeswitchPINVOKE.new_switch_filenames(), true) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 switch_frame : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
|
Loading…
Reference in New Issue