fold version macros into runtime functions to avoid cascade rebuilds when modifying the core

This commit is contained in:
Anthony Minessale committed 2014-01-17 01:54:47 +05:00
1 parent 104ce2a35f
commit 8dfbd91a3d
22 files changed
+157 -39

No files matched your search

@@ -14626,6 +14626,76 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_debug_pool(void * jarg1)
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_major() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_major();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_minor() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_minor();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_micro() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_micro();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_revision();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_revision_human() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_revision_human();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_full();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_version_full_human() {
char * jresult ;
char *result = 0 ;
result = (char *)switch_version_full_human();
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_loadable_module_interface_module_name_set(void * jarg1, char * jarg2) {
switch_loadable_module_interface *arg1 = (switch_loadable_module_interface *) 0 ;
char *arg2 = (char *) 0 ;
@@ -3150,6 +3150,41 @@ public class freeswitch {
freeswitchPINVOKE.switch_core_session_debug_pool(switch_stream_handle.getCPtr(stream));
}
public static string switch_version_major() {
string ret = freeswitchPINVOKE.switch_version_major();
return ret;
}
public static string switch_version_minor() {
string ret = freeswitchPINVOKE.switch_version_minor();
return ret;
}
public static string switch_version_micro() {
string ret = freeswitchPINVOKE.switch_version_micro();
return ret;
}
public static string switch_version_revision() {
string ret = freeswitchPINVOKE.switch_version_revision();
return ret;
}
public static string switch_version_revision_human() {
string ret = freeswitchPINVOKE.switch_version_revision_human();
return ret;
}
public static string switch_version_full() {
string ret = freeswitchPINVOKE.switch_version_full();
return ret;
}
public static string switch_version_full_human() {
string ret = freeswitchPINVOKE.switch_version_full_human();
return ret;
}
public static switch_status_t switch_loadable_module_init(switch_bool_t autoload) {
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_loadable_module_init((int)autoload);
return ret;
@@ -10712,6 +10747,27 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_debug_pool")]
public static extern void switch_core_session_debug_pool(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_major")]
public static extern string switch_version_major();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_minor")]
public static extern string switch_version_minor();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_micro")]
public static extern string switch_version_micro();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision")]
public static extern string switch_version_revision();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_revision_human")]
public static extern string switch_version_revision_human();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_full")]
public static extern string switch_version_full();
[DllImport("mod_managed", EntryPoint="CSharp_switch_version_full_human")]
public static extern string switch_version_full_human();
[DllImport("mod_managed", EntryPoint="CSharp_switch_loadable_module_interface_module_name_set")]
public static extern void switch_loadable_module_interface_module_name_set(HandleRef jarg1, string jarg2);
@@ -35105,6 +35161,7 @@ namespace FreeSWITCH.Native {
public enum switch_rtp_flag_t {
SWITCH_RTP_FLAG_NOBLOCK = 0,
SWITCH_RTP_FLAG_DTMF_ON,
SWITCH_RTP_FLAG_IO,
SWITCH_RTP_FLAG_USE_TIMER,
SWITCH_RTP_FLAG_RTCP_PASSTHRU,