vs2010 reswig

This commit is contained in:
Jeff Lenk committed 2011-05-25 23:52:11 -05:00
1 parent 55c24567bd
commit 8ba8b501bf
2 files changed
+621 -13

No files matched your search

@@ -954,6 +954,14 @@ public class freeswitch {
return ret;
}
public static void switch_capture_regex(SWIGTYPE_p_real_pcre re, int match_count, string field_data, SWIGTYPE_p_int ovector, string var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void callback, SWIGTYPE_p_void user_data) {
freeswitchPINVOKE.switch_capture_regex(SWIGTYPE_p_real_pcre.getCPtr(re), match_count, field_data, SWIGTYPE_p_int.getCPtr(ovector), var, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void.getCPtr(callback), SWIGTYPE_p_void.getCPtr(user_data));
}
public static void switch_regex_set_var_callback(string var, string val, SWIGTYPE_p_void user_data) {
freeswitchPINVOKE.switch_regex_set_var_callback(var, val, SWIGTYPE_p_void.getCPtr(user_data));
}
public static void switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session session, uint seconds) {
freeswitchPINVOKE.switch_core_session_sched_heartbeat(SWIGTYPE_p_switch_core_session.getCPtr(session), seconds);
}
@@ -1161,6 +1169,16 @@ public class freeswitch {
return ret;
}
public static int switch_core_curl_count(SWIGTYPE_p_int val) {
int ret = freeswitchPINVOKE.switch_core_curl_count(SWIGTYPE_p_int.getCPtr(val));
return ret;
}
public static int switch_core_ssl_count(SWIGTYPE_p_int val) {
int ret = freeswitchPINVOKE.switch_core_ssl_count(SWIGTYPE_p_int.getCPtr(val));
return ret;
}
public static void switch_core_remove_state_handler(switch_state_handler_table state_handler) {
freeswitchPINVOKE.switch_core_remove_state_handler(switch_state_handler_table.getCPtr(state_handler));
}
@@ -3394,6 +3412,11 @@ public class freeswitch {
return ret;
}
public static switch_status_t switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel channel, string varname, string value, switch_bool_t var_check, switch_stack_t stack) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_add_variable_var_check(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, value, (int)var_check, (int)stack);
return ret;
}
public static switch_status_t switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel channel, string varname, string fmt) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_set_variable_printf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, fmt);
return ret;
@@ -3438,8 +3461,8 @@ public class freeswitch {
return ret;
}
public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel channel, string varname, switch_bool_t dup) {
string ret = freeswitchPINVOKE.switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, (int)dup);
public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel channel, string varname, switch_bool_t dup, int idx) {
string ret = freeswitchPINVOKE.switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, (int)dup, idx);
return ret;
}
@@ -3902,8 +3925,14 @@ public class freeswitch {
return ret;
}
public static string switch_event_get_header(switch_event arg0, string header_name) {
string ret = freeswitchPINVOKE.switch_event_get_header(switch_event.getCPtr(arg0), header_name);
public static switch_event_header switch_event_get_header_ptr(switch_event arg0, string header_name) {
IntPtr cPtr = freeswitchPINVOKE.switch_event_get_header_ptr(switch_event.getCPtr(arg0), header_name);
switch_event_header ret = (cPtr == IntPtr.Zero) ? null : new switch_event_header(cPtr, false);
return ret;
}
public static string switch_event_get_header_idx(switch_event arg0, string header_name, int idx) {
string ret = freeswitchPINVOKE.switch_event_get_header_idx(switch_event.getCPtr(arg0), header_name, idx);
return ret;
}
@@ -5252,6 +5281,11 @@ public class freeswitch {
return ret;
}
public static uint switch_xml_clear_user_cache(string key, string user_name, string domain_name) {
uint ret = freeswitchPINVOKE.switch_xml_clear_user_cache(key, user_name, domain_name);
return ret;
}
public static void switch_xml_merge_user(switch_xml user, switch_xml domain, switch_xml group) {
freeswitchPINVOKE.switch_xml_merge_user(switch_xml.getCPtr(user), switch_xml.getCPtr(domain), switch_xml.getCPtr(group));
}
@@ -6611,6 +6645,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_flush_packet_count_get")]
public static extern IntPtr switch_rtp_numbers_t_flush_packet_count_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_set")]
public static extern void switch_rtp_numbers_t_largest_jb_size_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_numbers_t_largest_jb_size_get")]
public static extern IntPtr switch_rtp_numbers_t_largest_jb_size_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_numbers_t")]
public static extern IntPtr new_switch_rtp_numbers_t();
@@ -7214,6 +7254,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_regex_match_partial")]
public static extern int switch_regex_match_partial(string jarg1, string jarg2, HandleRef jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_capture_regex")]
public static extern void switch_capture_regex(HandleRef jarg1, int jarg2, string jarg3, HandleRef jarg4, string jarg5, HandleRef jarg6, HandleRef jarg7);
[DllImport("mod_managed", EntryPoint="CSharp_switch_regex_set_var_callback")]
public static extern void switch_regex_set_var_callback(string jarg1, string jarg2, HandleRef jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get")]
public static extern int SWITCH_MAX_CORE_THREAD_SESSION_OBJS_get();
@@ -7280,6 +7326,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_arg_get")]
public static extern string switch_app_log_arg_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_set")]
public static extern void switch_app_log_stamp_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_stamp_get")]
public static extern IntPtr switch_app_log_stamp_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_app_log_next_set")]
public static extern void switch_app_log_next_set(HandleRef jarg1, HandleRef jarg2);
@@ -7574,6 +7626,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_add_state_handler")]
public static extern int switch_core_add_state_handler(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_curl_count")]
public static extern int switch_core_curl_count(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_ssl_count")]
public static extern int switch_core_ssl_count(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_remove_state_handler")]
public static extern void switch_core_remove_state_handler(HandleRef jarg1);
@@ -9017,6 +9075,30 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_split_user_domain")]
public static extern int switch_split_user_domain(string jarg1, ref string jarg2, ref string jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")]
public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_get")]
public static extern string profile_node_t_var_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_set")]
public static extern void profile_node_t_val_set(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_val_get")]
public static extern string profile_node_t_val_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_set")]
public static extern void profile_node_t_next_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_next_get")]
public static extern IntPtr profile_node_t_next_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_new_profile_node_t")]
public static extern IntPtr new_profile_node_t();
[DllImport("mod_managed", EntryPoint="CSharp_delete_profile_node_t")]
public static extern void delete_profile_node_t(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_set")]
public static extern void switch_caller_profile_username_set(HandleRef jarg1, string jarg2);
@@ -9221,6 +9303,12 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_direction_get")]
public static extern int switch_caller_profile_direction_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_set")]
public static extern void switch_caller_profile_soft_set(HandleRef jarg1, HandleRef jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_soft_get")]
public static extern IntPtr switch_caller_profile_soft_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_caller_profile")]
public static extern IntPtr new_switch_caller_profile();
@@ -11594,6 +11682,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_var_check")]
public static extern int switch_channel_set_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_add_variable_var_check")]
public static extern int switch_channel_add_variable_var_check(HandleRef jarg1, string jarg2, string jarg3, int jarg4, int jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_set_variable_printf")]
public static extern int switch_channel_set_variable_printf(HandleRef jarg1, string jarg2, string jarg3);
@@ -11622,7 +11713,7 @@ class freeswitchPINVOKE {
public static extern int switch_channel_export_variable_printf(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variable_dup")]
public static extern string switch_channel_get_variable_dup(HandleRef jarg1, string jarg2, int jarg3);
public static extern string switch_channel_get_variable_dup(HandleRef jarg1, string jarg2, int jarg3, int jarg4);
[DllImport("mod_managed", EntryPoint="CSharp_switch_channel_get_variables")]
public static extern int switch_channel_get_variables(HandleRef jarg1, HandleRef jarg2);
@@ -11909,6 +12000,18 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_value_get")]
public static extern string switch_event_header_value_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_set")]
public static extern void switch_event_header_array_set(HandleRef jarg1, ref string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_array_get")]
public static extern string switch_event_header_array_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_set")]
public static extern void switch_event_header_idx_set(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_idx_get")]
public static extern int switch_event_header_idx_get(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_header_hash_set")]
public static extern void switch_event_header_hash_set(HandleRef jarg1, uint jarg2);
@@ -12017,8 +12120,11 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_set_priority")]
public static extern int switch_event_set_priority(HandleRef jarg1, int jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header")]
public static extern string switch_event_get_header(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_ptr")]
public static extern IntPtr switch_event_get_header_ptr(HandleRef jarg1, string jarg2);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_header_idx")]
public static extern string switch_event_get_header_idx(HandleRef jarg1, string jarg2, int jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_event_get_body")]
public static extern string switch_event_get_body(HandleRef jarg1);
@@ -13190,6 +13296,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user_merged")]
public static extern int switch_xml_locate_user_merged(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6);
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_clear_user_cache")]
public static extern uint switch_xml_clear_user_cache(string jarg1, string jarg2, string jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_merge_user")]
public static extern void switch_xml_merge_user(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
@@ -14472,6 +14581,86 @@ public partial class ManagedSession : CoreSession {
namespace FreeSWITCH.Native {
using System;
using System.Runtime.InteropServices;
public class profile_node_t : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal profile_node_t(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(profile_node_t obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~profile_node_t() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
freeswitchPINVOKE.delete_profile_node_t(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public string var {
set {
freeswitchPINVOKE.profile_node_t_var_set(swigCPtr, value);
}
get {
string ret = freeswitchPINVOKE.profile_node_t_var_get(swigCPtr);
return ret;
}
}
public string val {
set {
freeswitchPINVOKE.profile_node_t_val_set(swigCPtr, value);
}
get {
string ret = freeswitchPINVOKE.profile_node_t_val_get(swigCPtr);
return ret;
}
}
public profile_node_t next {
set {
freeswitchPINVOKE.profile_node_t_next_set(swigCPtr, profile_node_t.getCPtr(value));
}
get {
IntPtr cPtr = freeswitchPINVOKE.profile_node_t_next_get(swigCPtr);
profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false);
return ret;
}
}
public profile_node_t() : this(freeswitchPINVOKE.new_profile_node_t(), true) {
}
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.1
*
* 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 session_flag_t {
S_HUP = (1 << 0),
S_FREE = (1 << 1),
@@ -14853,6 +15042,36 @@ namespace FreeSWITCH.Native {
using System;
using System.Runtime.InteropServices;
public class SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void {
private HandleRef swigCPtr;
internal SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void(IntPtr cPtr, bool futureUse) {
swigCPtr = new HandleRef(this, cPtr);
}
protected SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void() {
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
internal static HandleRef getCPtr(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__void 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.1
*
* 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_q_const__char_p_q_const__char__switch_status_t {
private HandleRef swigCPtr;
@@ -19960,6 +20179,18 @@ public class switch_app_log : IDisposable {
}
}
public SWIGTYPE_p_switch_time_t stamp {
set {
freeswitchPINVOKE.switch_app_log_stamp_set(swigCPtr, SWIGTYPE_p_switch_time_t.getCPtr(value));
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
}
get {
SWIGTYPE_p_switch_time_t ret = new SWIGTYPE_p_switch_time_t(freeswitchPINVOKE.switch_app_log_stamp_get(swigCPtr), true);
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public switch_app_log next {
set {
freeswitchPINVOKE.switch_app_log_next_set(swigCPtr, switch_app_log.getCPtr(value));
@@ -21727,6 +21958,17 @@ public class switch_caller_profile : IDisposable {
}
}
public profile_node_t soft {
set {
freeswitchPINVOKE.switch_caller_profile_soft_set(swigCPtr, profile_node_t.getCPtr(value));
}
get {
IntPtr cPtr = freeswitchPINVOKE.switch_caller_profile_soft_get(swigCPtr);
profile_node_t ret = (cPtr == IntPtr.Zero) ? null : new profile_node_t(cPtr, false);
return ret;
}
}
public switch_caller_profile() : this(freeswitchPINVOKE.new_switch_caller_profile(), true) {
}
@@ -24926,7 +25168,8 @@ public class switch_event : IDisposable {
namespace FreeSWITCH.Native {
public enum switch_event_flag_t {
EF_UNIQ_HEADERS = (1 << 0)
EF_UNIQ_HEADERS = (1 << 0),
EF_CONTAINS_ARRAYS = (1 << 1)
}
}
@@ -24993,6 +25236,25 @@ public class switch_event_header : IDisposable {
}
}
public string array {
set { freeswitchPINVOKE.switch_event_header_array_set(swigCPtr, ref value); }
get {
return freeswitchPINVOKE.switch_event_header_array_get(swigCPtr);
}
}
public int idx {
set {
freeswitchPINVOKE.switch_event_header_idx_set(swigCPtr, value);
}
get {
int ret = freeswitchPINVOKE.switch_event_header_idx_get(swigCPtr);
return ret;
}
}
public uint hash {
set {
freeswitchPINVOKE.switch_event_header_hash_set(swigCPtr, value);
@@ -29376,6 +29638,18 @@ public class switch_rtp_numbers_t : IDisposable {
}
}
public SWIGTYPE_p_switch_size_t largest_jb_size {
set {
freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_set(swigCPtr, SWIGTYPE_p_switch_size_t.getCPtr(value));
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
}
get {
SWIGTYPE_p_switch_size_t ret = new SWIGTYPE_p_switch_size_t(freeswitchPINVOKE.switch_rtp_numbers_t_largest_jb_size_get(swigCPtr), true);
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public switch_rtp_numbers_t() : this(freeswitchPINVOKE.new_switch_rtp_numbers_t(), true) {
}
@@ -30497,7 +30771,9 @@ namespace FreeSWITCH.Native {
public enum switch_stack_t {
SWITCH_STACK_BOTTOM = (1 << 0),
SWITCH_STACK_TOP = (1 << 1),
SWITCH_STACK_NODUP = (1 << 2)
SWITCH_STACK_NODUP = (1 << 2),
SWITCH_STACK_UNSHIFT = (1 << 3),
SWITCH_STACK_PUSH = (1 << 4)
}
}