[Freeswitch-svn] [commit] r10919 - in freeswitch/trunk/src/mod/languages/mod_managed: . managed
FreeSWITCH SVN
mikej at freeswitch.org
Tue Dec 23 09:46:26 PST 2008
Author: mikej
Date: Tue Dec 23 12:46:25 2008
New Revision: 10919
Log:
swigall
Modified:
freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx
freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs
Modified: freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx Tue Dec 23 12:46:25 2008
@@ -2290,7 +2290,7 @@
int jresult ;
int result;
- result = (int) 32;
+ result = (int) 48;
jresult = result;
return jresult;
@@ -2312,7 +2312,7 @@
int jresult ;
int result;
- result = (int) (2*32*(120+10));
+ result = (int) 4096;
jresult = result;
return jresult;
@@ -6323,6 +6323,38 @@
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_write(void * jarg1) {
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
+
+ arg1 = (switch_core_session_t *)jarg1;
+ switch_core_session_lock_codec_write(arg1);
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_write(void * jarg1) {
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
+
+ arg1 = (switch_core_session_t *)jarg1;
+ switch_core_session_unlock_codec_write(arg1);
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_lock_codec_read(void * jarg1) {
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
+
+ arg1 = (switch_core_session_t *)jarg1;
+ switch_core_session_lock_codec_read(arg1);
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_unlock_codec_read(void * jarg1) {
+ switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
+
+ arg1 = (switch_core_session_t *)jarg1;
+ switch_core_session_unlock_codec_read(arg1);
+}
+
+
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_session_get_read_impl(void * jarg1, void * jarg2) {
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
@@ -19729,7 +19761,7 @@
{
size_t ii;
switch_byte_t *b = (switch_byte_t *) arg1->write_frame_data;
- for (ii = 0; ii < (size_t)(2*32*(120+10)); ii++) b[ii] = *((switch_byte_t *) arg2 + ii);
+ for (ii = 0; ii < (size_t)4096; ii++) b[ii] = *((switch_byte_t *) arg2 + ii);
}
}
@@ -22592,6 +22624,29 @@
}
+SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_channel_set(void * jarg1, int jarg2) {
+ switch_log_node_t *arg1 = (switch_log_node_t *) 0 ;
+ switch_text_channel_t arg2 ;
+
+ arg1 = (switch_log_node_t *)jarg1;
+ arg2 = (switch_text_channel_t)jarg2;
+ if (arg1) (arg1)->channel = arg2;
+
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_log_node_t_channel_get(void * jarg1) {
+ int jresult ;
+ switch_log_node_t *arg1 = (switch_log_node_t *) 0 ;
+ switch_text_channel_t result;
+
+ arg1 = (switch_log_node_t *)jarg1;
+ result = (switch_text_channel_t) ((arg1)->channel);
+ jresult = result;
+ return jresult;
+}
+
+
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_log_node_t() {
void * jresult ;
switch_log_node_t *result = 0 ;
@@ -23109,6 +23164,21 @@
}
+SWIGEXPORT void * SWIGSTDCALL CSharp_switch_xml_find_child_multi(void * jarg1, char * jarg2) {
+ void * jresult ;
+ switch_xml_t arg1 = (switch_xml_t) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *arg3 = 0 ;
+ switch_xml_t result;
+
+ arg1 = (switch_xml_t)jarg1;
+ arg2 = (char *)jarg2;
+ result = (switch_xml_t)switch_xml_find_child_multi(arg1,(char const *)arg2,arg3);
+ jresult = (void *)result;
+ return jresult;
+}
+
+
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_xml_attr(void * jarg1, char * jarg2) {
char * jresult ;
switch_xml_t arg1 = (switch_xml_t) 0 ;
@@ -23428,7 +23498,29 @@
}
-SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, void * jarg8) {
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_group(char * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
+ int jresult ;
+ char *arg1 = (char *) 0 ;
+ char *arg2 = (char *) 0 ;
+ switch_xml_t *arg3 = (switch_xml_t *) 0 ;
+ switch_xml_t *arg4 = (switch_xml_t *) 0 ;
+ switch_xml_t *arg5 = (switch_xml_t *) 0 ;
+ switch_event_t *arg6 = (switch_event_t *) 0 ;
+ switch_status_t result;
+
+ arg1 = (char *)jarg1;
+ arg2 = (char *)jarg2;
+ arg3 = (switch_xml_t *)jarg3;
+ arg4 = (switch_xml_t *)jarg4;
+ arg5 = (switch_xml_t *)jarg5;
+ arg6 = (switch_event_t *)jarg6;
+ result = (switch_status_t)switch_xml_locate_group((char const *)arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
+ jresult = result;
+ return jresult;
+}
+
+
+SWIGEXPORT int SWIGSTDCALL CSharp_switch_xml_locate_user(char * jarg1, char * jarg2, char * jarg3, char * jarg4, void * jarg5, void * jarg6, void * jarg7, void * jarg8, void * jarg9) {
int jresult ;
char *arg1 = (char *) 0 ;
char *arg2 = (char *) 0 ;
@@ -23437,7 +23529,8 @@
switch_xml_t *arg5 = (switch_xml_t *) 0 ;
switch_xml_t *arg6 = (switch_xml_t *) 0 ;
switch_xml_t *arg7 = (switch_xml_t *) 0 ;
- switch_event_t *arg8 = (switch_event_t *) 0 ;
+ switch_xml_t *arg8 = (switch_xml_t *) 0 ;
+ switch_event_t *arg9 = (switch_event_t *) 0 ;
switch_status_t result;
arg1 = (char *)jarg1;
@@ -23447,8 +23540,9 @@
arg5 = (switch_xml_t *)jarg5;
arg6 = (switch_xml_t *)jarg6;
arg7 = (switch_xml_t *)jarg7;
- arg8 = (switch_event_t *)jarg8;
- result = (switch_status_t)switch_xml_locate_user((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8);
+ arg8 = (switch_xml_t *)jarg8;
+ arg9 = (switch_event_t *)jarg9;
+ result = (switch_status_t)switch_xml_locate_user((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9);
jresult = result;
return jresult;
}
Modified: freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs Tue Dec 23 12:46:25 2008
@@ -1499,6 +1499,22 @@
freeswitchPINVOKE.switch_core_session_unset_write_codec(SWIGTYPE_p_switch_core_session.getCPtr(session));
}
+ public static void switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session session) {
+ freeswitchPINVOKE.switch_core_session_lock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session));
+ }
+
+ public static void switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session session) {
+ freeswitchPINVOKE.switch_core_session_unlock_codec_write(SWIGTYPE_p_switch_core_session.getCPtr(session));
+ }
+
+ public static void switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session session) {
+ freeswitchPINVOKE.switch_core_session_lock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session));
+ }
+
+ public static void switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session session) {
+ freeswitchPINVOKE.switch_core_session_unlock_codec_read(SWIGTYPE_p_switch_core_session.getCPtr(session));
+ }
+
public static switch_status_t switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session session, switch_codec_implementation impp) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_core_session_get_read_impl(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_codec_implementation.getCPtr(impp));
return ret;
@@ -3602,6 +3618,12 @@
return ret;
}
+ public static switch_xml switch_xml_find_child_multi(switch_xml node, string childname) {
+ IntPtr cPtr = freeswitchPINVOKE.switch_xml_find_child_multi(switch_xml.getCPtr(node), childname);
+ switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false);
+ return ret;
+ }
+
public static string switch_xml_attr(switch_xml xml, string attr) {
string ret = freeswitchPINVOKE.switch_xml_attr(switch_xml.getCPtr(xml), attr);
return ret;
@@ -3718,8 +3740,13 @@
return ret;
}
- public static switch_status_t switch_xml_locate_user(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml user, switch_event arg7) {
- switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), switch_event.getCPtr(arg7));
+ public static switch_status_t switch_xml_locate_group(string group_name, string domain_name, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml group, switch_event arg5) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_group(group_name, domain_name, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(group), switch_event.getCPtr(arg5));
+ return ret;
+ }
+
+ public static switch_status_t switch_xml_locate_user(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup, switch_event arg8) {
+ switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup), switch_event.getCPtr(arg8));
return ret;
}
@@ -5782,6 +5809,18 @@
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unset_write_codec")]
public static extern void switch_core_session_unset_write_codec(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_write")]
+ public static extern void switch_core_session_lock_codec_write(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_write")]
+ public static extern void switch_core_session_unlock_codec_write(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_lock_codec_read")]
+ public static extern void switch_core_session_lock_codec_read(HandleRef jarg1);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_unlock_codec_read")]
+ public static extern void switch_core_session_unlock_codec_read(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_get_read_impl")]
public static extern int switch_core_session_get_read_impl(HandleRef jarg1, HandleRef jarg2);
@@ -9583,6 +9622,12 @@
[DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_userdata_get")]
public static extern string switch_log_node_t_userdata_get(HandleRef jarg1);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_set")]
+ public static extern void switch_log_node_t_channel_set(HandleRef jarg1, int jarg2);
+
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_log_node_t_channel_get")]
+ public static extern int switch_log_node_t_channel_get(HandleRef jarg1);
+
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_log_node_t")]
public static extern IntPtr new_switch_log_node_t();
@@ -9706,6 +9751,9 @@
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child")]
public static extern IntPtr switch_xml_find_child(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_find_child_multi")]
+ public static extern IntPtr switch_xml_find_child_multi(HandleRef jarg1, string jarg2);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_attr")]
public static extern string switch_xml_attr(HandleRef jarg1, string jarg2);
@@ -9769,8 +9817,11 @@
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_domain")]
public static extern int switch_xml_locate_domain(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
+ [DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_group")]
+ public static extern int switch_xml_locate_group(string jarg1, string jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6);
+
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_locate_user")]
- public static extern int switch_xml_locate_user(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8);
+ public static extern int switch_xml_locate_user(string jarg1, string jarg2, string jarg3, string jarg4, HandleRef jarg5, HandleRef jarg6, HandleRef jarg7, HandleRef jarg8, HandleRef jarg9);
[DllImport("mod_managed", EntryPoint="CSharp_switch_xml_open_cfg")]
public static extern IntPtr switch_xml_open_cfg(string jarg1, HandleRef jarg2, HandleRef jarg3);
@@ -22265,6 +22316,16 @@
}
}
+ public switch_text_channel_t channel {
+ set {
+ freeswitchPINVOKE.switch_log_node_t_channel_set(swigCPtr, (int)value);
+ }
+ get {
+ switch_text_channel_t ret = (switch_text_channel_t)freeswitchPINVOKE.switch_log_node_t_channel_get(swigCPtr);
+ return ret;
+ }
+ }
+
public switch_log_node_t() : this(freeswitchPINVOKE.new_switch_log_node_t(), true) {
}
More information about the Freeswitch-svn
mailing list