Add System.FlagsAttribute for flag enums
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8775 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0f9d334033
commit
0521a95bf0
|
@ -11,6 +11,35 @@
|
||||||
%typemap(csclassmodifiers) Event "public partial class"
|
%typemap(csclassmodifiers) Event "public partial class"
|
||||||
%typemap(csclassmodifiers) Stream "public partial class"
|
%typemap(csclassmodifiers) Stream "public partial class"
|
||||||
|
|
||||||
|
// Allow bitwise compare on flag fields
|
||||||
|
%typemap(csclassmodifiers) session_flag_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_application_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_asr_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_bind_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_caller_profile_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_channel_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_codec_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_core_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_core_session_message_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_directory_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_eavesdrop_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_file_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_frame_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_io_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_media_bug_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_media_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_originate_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_port_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_rtp_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_scheduler_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_speech_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_timer_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_unicast_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_vad_flag_enum_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_xml_flag_t "[System.Flags] public enum"
|
||||||
|
%typemap(csclassmodifiers) switch_xml_section_enum_t "[System.Flags] public enum"
|
||||||
|
|
||||||
|
|
||||||
// Some things we dont want exposed to managed users directly, since
|
// Some things we dont want exposed to managed users directly, since
|
||||||
// we're gonna handle them with our own internalcall methods
|
// we're gonna handle them with our own internalcall methods
|
||||||
%ignore dtmfDelegateHandle;
|
%ignore dtmfDelegateHandle;
|
||||||
|
|
|
@ -927,6 +927,17 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_g
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get() {
|
||||||
|
char * jresult ;
|
||||||
|
char *result = 0 ;
|
||||||
|
|
||||||
|
result = (char *) "execute_on_ring";
|
||||||
|
|
||||||
|
jresult = SWIG_csharp_string_callback((const char *)result);
|
||||||
|
return jresult;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get() {
|
SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get() {
|
||||||
char * jresult ;
|
char * jresult ;
|
||||||
char *result = 0 ;
|
char *result = 0 ;
|
||||||
|
|
|
@ -2990,6 +2990,7 @@ public class freeswitch {
|
||||||
public static readonly string SWITCH_URL_SEPARATOR = freeswitchPINVOKE.SWITCH_URL_SEPARATOR_get();
|
public static readonly string SWITCH_URL_SEPARATOR = freeswitchPINVOKE.SWITCH_URL_SEPARATOR_get();
|
||||||
public static readonly string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get();
|
public static readonly string SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE = freeswitchPINVOKE.SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE_get();
|
||||||
public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
public static readonly string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
||||||
|
public static readonly string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE = freeswitchPINVOKE.SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get();
|
||||||
public static readonly string SWITCH_CALL_TIMEOUT_VARIABLE = freeswitchPINVOKE.SWITCH_CALL_TIMEOUT_VARIABLE_get();
|
public static readonly string SWITCH_CALL_TIMEOUT_VARIABLE = freeswitchPINVOKE.SWITCH_CALL_TIMEOUT_VARIABLE_get();
|
||||||
public static readonly string SWITCH_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_HOLDING_UUID_VARIABLE_get();
|
public static readonly string SWITCH_HOLDING_UUID_VARIABLE = freeswitchPINVOKE.SWITCH_HOLDING_UUID_VARIABLE_get();
|
||||||
public static readonly string SWITCH_API_BRIDGE_END_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_END_VARIABLE_get();
|
public static readonly string SWITCH_API_BRIDGE_END_VARIABLE = freeswitchPINVOKE.SWITCH_API_BRIDGE_END_VARIABLE_get();
|
||||||
|
|
|
@ -362,6 +362,9 @@ class freeswitchPINVOKE {
|
||||||
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get")]
|
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get")]
|
||||||
public static extern string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
public static extern string SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
||||||
|
|
||||||
|
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get")]
|
||||||
|
public static extern string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get();
|
||||||
|
|
||||||
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")]
|
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")]
|
||||||
public static extern string SWITCH_CALL_TIMEOUT_VARIABLE_get();
|
public static extern string SWITCH_CALL_TIMEOUT_VARIABLE_get();
|
||||||
|
|
||||||
|
|
|
@ -615,6 +615,14 @@ return _res; }
|
||||||
var _ptr = __SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
var _ptr = __SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE_get();
|
||||||
var _res = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(_ptr);
|
var _res = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(_ptr);
|
||||||
System.Runtime.InteropServices.Marshal.FreeCoTaskMem(_ptr);
|
System.Runtime.InteropServices.Marshal.FreeCoTaskMem(_ptr);
|
||||||
|
return _res; }
|
||||||
|
|
||||||
|
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get")]
|
||||||
|
public static extern IntPtr __SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get();
|
||||||
|
public static string SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get(){
|
||||||
|
var _ptr = __SWITCH_CHANNEL_EXECUTE_ON_RING_VARIABLE_get();
|
||||||
|
var _res = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(_ptr);
|
||||||
|
System.Runtime.InteropServices.Marshal.FreeCoTaskMem(_ptr);
|
||||||
return _res; }
|
return _res; }
|
||||||
|
|
||||||
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")]
|
[DllImport("mod_mono", EntryPoint="CSharp_SWITCH_CALL_TIMEOUT_VARIABLE_get")]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace FreeSWITCH.Native {
|
namespace FreeSWITCH.Native {
|
||||||
|
|
||||||
public enum session_flag_t {
|
[System.Flags] public enum session_flag_t {
|
||||||
S_HUP = (1 << 0),
|
S_HUP = (1 << 0),
|
||||||
S_FREE = (1 << 1),
|
S_FREE = (1 << 1),
|
||||||
S_RDLOCK = (1 << 2)
|
S_RDLOCK = (1 << 2)
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_application_flag_enum_t {
|
||||||
|
SAF_NONE = 0,
|
||||||
|
SAF_SUPPORT_NOMEDIA = (1 << 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace FreeSWITCH.Native {
|
namespace FreeSWITCH.Native {
|
||||||
|
|
||||||
public enum switch_asr_flag_t {
|
[System.Flags] public enum switch_asr_flag_enum_t {
|
||||||
SWITCH_ASR_FLAG_NONE = 0,
|
SWITCH_ASR_FLAG_NONE = 0,
|
||||||
SWITCH_ASR_FLAG_DATA = (1 << 0),
|
SWITCH_ASR_FLAG_DATA = (1 << 0),
|
||||||
SWITCH_ASR_FLAG_FREE_POOL = (1 << 1),
|
SWITCH_ASR_FLAG_FREE_POOL = (1 << 1),
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_bind_flag_enum_t {
|
||||||
|
SBF_DIAL_ALEG = (1 << 0),
|
||||||
|
SBF_EXEC_ALEG = (1 << 1),
|
||||||
|
SBF_DIAL_BLEG = (1 << 2),
|
||||||
|
SBF_EXEC_BLEG = (1 << 3),
|
||||||
|
SBF_EXEC_OPPOSITE = (1 << 4),
|
||||||
|
SBF_EXEC_SAME = (1 << 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_caller_profile_flag_enum_t {
|
||||||
|
SWITCH_CPF_SCREEN = (1 << 0),
|
||||||
|
SWITCH_CPF_HIDE_NAME = (1 << 1),
|
||||||
|
SWITCH_CPF_HIDE_NUMBER = (1 << 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,44 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_channel_flag_enum_t {
|
||||||
|
CF_ANSWERED = (1 << 0),
|
||||||
|
CF_OUTBOUND = (1 << 1),
|
||||||
|
CF_EARLY_MEDIA = (1 << 2),
|
||||||
|
CF_ORIGINATOR = (1 << 3),
|
||||||
|
CF_TRANSFER = (1 << 4),
|
||||||
|
CF_ACCEPT_CNG = (1 << 5),
|
||||||
|
CF_WAIT_FOR_ME = (1 << 6),
|
||||||
|
CF_BRIDGED = (1 << 7),
|
||||||
|
CF_HOLD = (1 << 8),
|
||||||
|
CF_SERVICE = (1 << 9),
|
||||||
|
CF_TAGGED = (1 << 10),
|
||||||
|
CF_WINNER = (1 << 11),
|
||||||
|
CF_CONTROLLED = (1 << 12),
|
||||||
|
CF_PROXY_MODE = (1 << 13),
|
||||||
|
CF_SUSPEND = (1 << 14),
|
||||||
|
CF_EVENT_PARSE = (1 << 15),
|
||||||
|
CF_REPEAT_STATE = (1 << 16),
|
||||||
|
CF_GEN_RINGBACK = (1 << 17),
|
||||||
|
CF_RING_READY = (1 << 18),
|
||||||
|
CF_BREAK = (1 << 19),
|
||||||
|
CF_BROADCAST = (1 << 20),
|
||||||
|
CF_UNICAST = (1 << 21),
|
||||||
|
CF_VIDEO = (1 << 22),
|
||||||
|
CF_EVENT_LOCK = (1 << 23),
|
||||||
|
CF_RESET = (1 << 24),
|
||||||
|
CF_ORIGINATING = (1 << 25),
|
||||||
|
CF_STOP_BROADCAST = (1 << 26),
|
||||||
|
CF_PROXY_MEDIA = (1 << 27),
|
||||||
|
CF_INNER_BRIDGE = (1 << 28),
|
||||||
|
CF_REQ_MEDIA = (1 << 29)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_codec_flag_enum_t {
|
||||||
|
SWITCH_CODEC_FLAG_ENCODE = (1 << 0),
|
||||||
|
SWITCH_CODEC_FLAG_DECODE = (1 << 1),
|
||||||
|
SWITCH_CODEC_FLAG_SILENCE_START = (1 << 2),
|
||||||
|
SWITCH_CODEC_FLAG_SILENCE_STOP = (1 << 3),
|
||||||
|
SWITCH_CODEC_FLAG_SILENCE = (1 << 4),
|
||||||
|
SWITCH_CODEC_FLAG_FREE_POOL = (1 << 5),
|
||||||
|
SWITCH_CODEC_FLAG_AAL2 = (1 << 6),
|
||||||
|
SWITCH_CODEC_FLAG_PASSTHROUGH = (1 << 7)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_core_flag_enum_t {
|
||||||
|
SCF_NONE = 0,
|
||||||
|
SCF_USE_SQL = (1 << 0),
|
||||||
|
SCF_NO_NEW_SESSIONS = (1 << 1),
|
||||||
|
SCF_SHUTTING_DOWN = (1 << 2),
|
||||||
|
SCF_CRASH_PROT = (1 << 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_core_session_message_flag_enum_t {
|
||||||
|
SCSMF_DYNAMIC = (1 << 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_directory_flag_enum_t {
|
||||||
|
SWITCH_DIRECTORY_FLAG_FREE_POOL = (1 << 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_eavesdrop_flag_enum_t {
|
||||||
|
ED_MUX_READ = (1 << 0),
|
||||||
|
ED_MUX_WRITE = (1 << 1),
|
||||||
|
ED_DTMF = (1 << 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_file_flag_enum_t {
|
||||||
|
SWITCH_FILE_FLAG_READ = (1 << 0),
|
||||||
|
SWITCH_FILE_FLAG_WRITE = (1 << 1),
|
||||||
|
SWITCH_FILE_FLAG_FREE_POOL = (1 << 2),
|
||||||
|
SWITCH_FILE_DATA_SHORT = (1 << 3),
|
||||||
|
SWITCH_FILE_DATA_INT = (1 << 4),
|
||||||
|
SWITCH_FILE_DATA_FLOAT = (1 << 5),
|
||||||
|
SWITCH_FILE_DATA_DOUBLE = (1 << 6),
|
||||||
|
SWITCH_FILE_DATA_RAW = (1 << 7),
|
||||||
|
SWITCH_FILE_PAUSE = (1 << 8),
|
||||||
|
SWITCH_FILE_NATIVE = (1 << 9),
|
||||||
|
SWITCH_FILE_SEEK = (1 << 10),
|
||||||
|
SWITCH_FILE_OPEN = (1 << 11),
|
||||||
|
SWITCH_FILE_CALLBACK = (1 << 12)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_frame_flag_enum_t {
|
||||||
|
SFF_NONE = 0,
|
||||||
|
SFF_CNG = (1 << 0),
|
||||||
|
SFF_RAW_RTP = (1 << 1),
|
||||||
|
SFF_RTP_HEADER = (1 << 2),
|
||||||
|
SFF_PLC = (1 << 3),
|
||||||
|
SFF_RFC2833 = (1 << 4),
|
||||||
|
SFF_PROXY_PACKET = (1 << 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_io_flag_enum_t {
|
||||||
|
SWITCH_IO_FLAG_NONE = 0,
|
||||||
|
SWITCH_IO_FLAG_NOBLOCK = (1 << 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
public enum switch_ivr_option_enum_t {
|
||||||
|
SWITCH_IVR_OPTION_NONE = 0,
|
||||||
|
SWITCH_IVR_OPTION_ASYNC = (1 << 0),
|
||||||
|
SWITCH_IVR_OPTION_FILE = (1 << 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_media_bug_flag_enum_t {
|
||||||
|
SMBF_BOTH = 0,
|
||||||
|
SMBF_READ_STREAM = (1 << 0),
|
||||||
|
SMBF_WRITE_STREAM = (1 << 1),
|
||||||
|
SMBF_WRITE_REPLACE = (1 << 2),
|
||||||
|
SMBF_READ_REPLACE = (1 << 3),
|
||||||
|
SMBF_READ_PING = (1 << 4),
|
||||||
|
SMBF_STEREO = (1 << 5),
|
||||||
|
SMBF_RECORD_ANSWER_REQ = (1 << 6),
|
||||||
|
SMBF_THREAD_LOCK = (1 << 7)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_media_flag_enum_t {
|
||||||
|
SMF_NONE = 0,
|
||||||
|
SMF_REBRIDGE = (1 << 0),
|
||||||
|
SMF_ECHO_ALEG = (1 << 1),
|
||||||
|
SMF_ECHO_BLEG = (1 << 2),
|
||||||
|
SMF_FORCE = (1 << 3),
|
||||||
|
SMF_LOOP = (1 << 4),
|
||||||
|
SMF_HOLD_BLEG = (1 << 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_originate_flag_enum_t {
|
||||||
|
SOF_NONE = 0,
|
||||||
|
SOF_NOBLOCK = (1 << 0),
|
||||||
|
SOF_FORKED_DIAL = (1 << 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_port_flag_enum_t {
|
||||||
|
SPF_NONE = 0,
|
||||||
|
SPF_ODD = (1 << 0),
|
||||||
|
SPF_EVEN = (1 << 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_rtp_flag_enum_t {
|
||||||
|
SWITCH_RTP_FLAG_NOBLOCK = (1 << 0),
|
||||||
|
SWITCH_RTP_FLAG_IO = (1 << 1),
|
||||||
|
SWITCH_RTP_FLAG_USE_TIMER = (1 << 2),
|
||||||
|
SWITCH_RTP_FLAG_TIMER_RECLOCK = (1 << 3),
|
||||||
|
SWITCH_RTP_FLAG_SECURE_SEND = (1 << 4),
|
||||||
|
SWITCH_RTP_FLAG_SECURE_RECV = (1 << 5),
|
||||||
|
SWITCH_RTP_FLAG_AUTOADJ = (1 << 6),
|
||||||
|
SWITCH_RTP_FLAG_RAW_WRITE = (1 << 7),
|
||||||
|
SWITCH_RTP_FLAG_GOOGLEHACK = (1 << 8),
|
||||||
|
SWITCH_RTP_FLAG_VAD = (1 << 9),
|
||||||
|
SWITCH_RTP_FLAG_BREAK = (1 << 10),
|
||||||
|
SWITCH_RTP_FLAG_MINI = (1 << 11),
|
||||||
|
SWITCH_RTP_FLAG_DATAWAIT = (1 << 12),
|
||||||
|
SWITCH_RTP_FLAG_BUGGY_2833 = (1 << 13),
|
||||||
|
SWITCH_RTP_FLAG_PASS_RFC2833 = (1 << 14),
|
||||||
|
SWITCH_RTP_FLAG_AUTO_CNG = (1 << 15),
|
||||||
|
SWITCH_RTP_FLAG_SECURE_SEND_RESET = (1 << 16),
|
||||||
|
SWITCH_RTP_FLAG_SECURE_RECV_RESET = (1 << 17),
|
||||||
|
SWITCH_RTP_FLAG_PROXY_MEDIA = (1 << 18),
|
||||||
|
SWITCH_RTP_FLAG_SHUTDOWN = (1 << 19)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_scheduler_flag_enum_t {
|
||||||
|
SSHF_NONE = 0,
|
||||||
|
SSHF_OWN_THREAD = (1 << 0),
|
||||||
|
SSHF_FREE_ARG = (1 << 1),
|
||||||
|
SSHF_NO_DEL = (1 << 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_speech_flag_enum_t {
|
||||||
|
SWITCH_SPEECH_FLAG_NONE = 0,
|
||||||
|
SWITCH_SPEECH_FLAG_HASTEXT = (1 << 0),
|
||||||
|
SWITCH_SPEECH_FLAG_PEEK = (1 << 1),
|
||||||
|
SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 2),
|
||||||
|
SWITCH_SPEECH_FLAG_BLOCKING = (1 << 3),
|
||||||
|
SWITCH_SPEECH_FLAG_PAUSE = (1 << 4)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_timer_flag_enum_t {
|
||||||
|
SWITCH_TIMER_FLAG_FREE_POOL = (1 << 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_unicast_flag_enum_t {
|
||||||
|
SUF_NONE = 0,
|
||||||
|
SUF_THREAD_RUNNING = (1 << 0),
|
||||||
|
SUF_READY = (1 << 1),
|
||||||
|
SUF_NATIVE = (1 << 2)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_vad_flag_enum_t {
|
||||||
|
SWITCH_VAD_FLAG_TALKING = (1 << 0),
|
||||||
|
SWITCH_VAD_FLAG_EVENTS_TALK = (1 << 1),
|
||||||
|
SWITCH_VAD_FLAG_EVENTS_NOTALK = (1 << 2),
|
||||||
|
SWITCH_VAD_FLAG_CNG = (1 << 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace FreeSWITCH.Native {
|
namespace FreeSWITCH.Native {
|
||||||
|
|
||||||
public enum switch_xml_flag_t {
|
[System.Flags] public enum switch_xml_flag_t {
|
||||||
SWITCH_XML_ROOT = (1 << 0),
|
SWITCH_XML_ROOT = (1 << 0),
|
||||||
SWITCH_XML_NAMEM = (1 << 1),
|
SWITCH_XML_NAMEM = (1 << 1),
|
||||||
SWITCH_XML_TXTM = (1 << 2),
|
SWITCH_XML_TXTM = (1 << 2),
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* 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 {
|
||||||
|
|
||||||
|
[System.Flags] public enum switch_xml_section_enum_t {
|
||||||
|
SWITCH_XML_SECTION_RESULT = 0,
|
||||||
|
SWITCH_XML_SECTION_CONFIG = (1 << 0),
|
||||||
|
SWITCH_XML_SECTION_DIRECTORY = (1 << 1),
|
||||||
|
SWITCH_XML_SECTION_DIALPLAN = (1 << 2),
|
||||||
|
SWITCH_XML_SECTION_PHRASES = (1 << 3)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue