mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-19 01:34:13 +00:00
swigall
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14159 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b75a25ee5f
commit
b76bb2d5a3
22 files changed
+160
-128
No files matched your search
@@ -10,6 +10,7 @@
|
||||
%typemap(csclassmodifiers) ManagedSession "public partial class"
|
||||
%typemap(csclassmodifiers) Event "public partial class"
|
||||
%typemap(csclassmodifiers) Stream "public partial class"
|
||||
%newobject EventConsumer::pop;
|
||||
|
||||
// Allow bitwise compare on flag fields
|
||||
%typemap(csclassmodifiers) session_flag_t "[System.Flags] public enum"
|
||||
|
||||
@@ -5312,6 +5312,18 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_resume(void * jarg1) {
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_media_bug_inuse(void * jarg1, void * jarg2, void * jarg3) {
|
||||
switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ;
|
||||
switch_size_t *arg2 = (switch_size_t *) 0 ;
|
||||
switch_size_t *arg3 = (switch_size_t *) 0 ;
|
||||
|
||||
arg1 = (switch_media_bug_t *)jarg1;
|
||||
arg2 = (switch_size_t *)jarg2;
|
||||
arg3 = (switch_size_t *)jarg3;
|
||||
switch_core_media_bug_inuse(arg1,arg2,arg3);
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_core_media_bug_get_user_data(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_media_bug_t *arg1 = (switch_media_bug_t *) 0 ;
|
||||
@@ -9391,6 +9403,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip_token(void * j
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_number_cmp(char * jarg1, int jarg2) {
|
||||
int jresult ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
int arg2 ;
|
||||
int result;
|
||||
|
||||
arg1 = (char *)jarg1;
|
||||
arg2 = (int)jarg2;
|
||||
result = (int)switch_number_cmp((char const *)arg1,arg2);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) {
|
||||
switch_caller_profile *arg1 = (switch_caller_profile *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
|
||||
@@ -555,7 +555,7 @@ public class EventConsumer : IDisposable {
|
||||
|
||||
public Event pop(int block) {
|
||||
IntPtr cPtr = freeswitchPINVOKE.EventConsumer_pop(swigCPtr, block);
|
||||
Event ret = (cPtr == IntPtr.Zero) ? null : new Event(cPtr, false);
|
||||
Event ret = (cPtr == IntPtr.Zero) ? null : new Event(cPtr, true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -888,6 +888,10 @@ public class freeswitch {
|
||||
freeswitchPINVOKE.switch_core_media_bug_resume(SWIGTYPE_p_switch_core_session.getCPtr(session));
|
||||
}
|
||||
|
||||
public static void switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug bug, SWIGTYPE_p_switch_size_t readp, SWIGTYPE_p_switch_size_t writep) {
|
||||
freeswitchPINVOKE.switch_core_media_bug_inuse(SWIGTYPE_p_switch_media_bug.getCPtr(bug), SWIGTYPE_p_switch_size_t.getCPtr(readp), SWIGTYPE_p_switch_size_t.getCPtr(writep));
|
||||
}
|
||||
|
||||
public static SWIGTYPE_p_void switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug bug) {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_core_media_bug_get_user_data(SWIGTYPE_p_switch_media_bug.getCPtr(bug));
|
||||
SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
|
||||
@@ -2341,6 +2345,11 @@ public class freeswitch {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int switch_number_cmp(string exp, int val) {
|
||||
int ret = freeswitchPINVOKE.switch_number_cmp(exp, val);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static switch_caller_extension switch_caller_extension_new(SWIGTYPE_p_switch_core_session session, string extension_name, string extension_number) {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_caller_extension_new(SWIGTYPE_p_switch_core_session.getCPtr(session), extension_name, extension_number);
|
||||
switch_caller_extension ret = (cPtr == IntPtr.Zero) ? null : new switch_caller_extension(cPtr, false);
|
||||
@@ -5817,6 +5826,9 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_resume")]
|
||||
public static extern void switch_core_media_bug_resume(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_inuse")]
|
||||
public static extern void switch_core_media_bug_inuse(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_media_bug_get_user_data")]
|
||||
public static extern IntPtr switch_core_media_bug_get_user_data(HandleRef jarg1);
|
||||
|
||||
@@ -6702,6 +6714,9 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_network_list_validate_ip_token")]
|
||||
public static extern int switch_network_list_validate_ip_token(HandleRef jarg1, uint jarg2, ref string jarg3);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_number_cmp")]
|
||||
public static extern int switch_number_cmp(string jarg1, int jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_caller_profile_username_set")]
|
||||
public static extern void switch_caller_profile_username_set(HandleRef jarg1, string jarg2);
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ typedef unsigned long in_addr_t;
|
||||
}
|
||||
%}
|
||||
|
||||
%newobject EventConsumer::pop;
|
||||
|
||||
#define SWITCH_DECLARE(type) type
|
||||
#define SWITCH_DECLARE_NONSTD(type) type
|
||||
#define SWITCH_MOD_DECLARE(type) type
|
||||
|
||||
Reference in new issue
Block a user