From f230eb2a982b638270275215609bf0a34c4a354d Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Mon, 8 Sep 2014 10:32:35 -0500 Subject: [PATCH] vs2010 reswig again --- .../mod_managed/freeswitch_wrap.2010.cxx | 208 +++++++++++++----- .../mod_managed/managed/swig.2010.cs | 129 ++++++++--- 2 files changed, 246 insertions(+), 91 deletions(-) diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx index 9079a210d5..6edc41deb3 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.2010.cxx @@ -18870,6 +18870,147 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_http_request_t_keepalive_get(void * jar } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_type_set(void * jarg1, char * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_t *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->content_type = (char const *) (new char[strlen((const char *)arg2)+1]); + strcpy((char *)arg1->content_type, (const char *)arg2); + } else { + arg1->content_type = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t_content_type_get(void * jarg1) { + char * jresult ; + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + char *result = 0 ; + + arg1 = (switch_http_request_t *)jarg1; + result = (char *) ((arg1)->content_type); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_content_length_set(void * jarg1, void * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->content_length = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_content_length_get(void * jarg1) { + void * jresult ; + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_t *)jarg1; + result = ((arg1)->content_length); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_set(void * jarg1, void * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_header = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_header_get(void * jarg1) { + void * jresult ; + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_t *)jarg1; + result = ((arg1)->bytes_header); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_set(void * jarg1, void * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_read = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_read_get(void * jarg1) { + void * jresult ; + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_t *)jarg1; + result = ((arg1)->bytes_read); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_set(void * jarg1, void * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t arg2 ; + switch_size_t *argp2 ; + + arg1 = (switch_http_request_t *)jarg1; + argp2 = (switch_size_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->bytes_buffered = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t_bytes_buffered_get(void * jarg1) { + void * jresult ; + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + switch_size_t result; + + arg1 = (switch_http_request_t *)jarg1; + result = ((arg1)->bytes_buffered); + jresult = new switch_size_t((const switch_size_t &)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t_headers_set(void * jarg1, void * jarg2) { switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; switch_event_t *arg2 = (switch_event_t *) 0 ; @@ -18944,63 +19085,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t__buffer_get(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__unparsed_data_set(void * jarg1, char * jarg2) { - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (switch_http_request_t *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->_unparsed_data = (char const *) (new char[strlen((const char *)arg2)+1]); - strcpy((char *)arg1->_unparsed_data, (const char *)arg2); - } else { - arg1->_unparsed_data = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_switch_http_request_t__unparsed_data_get(void * jarg1) { - char * jresult ; - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - char *result = 0 ; - - arg1 = (switch_http_request_t *)jarg1; - result = (char *) ((arg1)->_unparsed_data); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__unparsed_len_set(void * jarg1, void * jarg2) { - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - switch_size_t arg2 ; - switch_size_t *argp2 ; - - arg1 = (switch_http_request_t *)jarg1; - argp2 = (switch_size_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->_unparsed_len = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_switch_http_request_t__unparsed_len_get(void * jarg1) { - void * jresult ; - switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; - switch_size_t result; - - arg1 = (switch_http_request_t *)jarg1; - result = ((arg1)->_unparsed_len); - jresult = new switch_size_t((const switch_size_t &)result); - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_request_t__destroy_headers_set(void * jarg1, int jarg2) { switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; switch_bool_t arg2 ; @@ -19073,6 +19157,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_dump_request(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_switch_http_parse_qs(void * jarg1, char * jarg2) { + switch_http_request_t *arg1 = (switch_http_request_t *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (switch_http_request_t *)jarg1; + arg2 = (char *)jarg2; + switch_http_parse_qs(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_var_set(void * jarg1, char * jarg2) { profile_node_t *arg1 = (profile_node_t *) 0 ; char *arg2 = (char *) 0 ; diff --git a/src/mod/languages/mod_managed/managed/swig.2010.cs b/src/mod/languages/mod_managed/managed/swig.2010.cs index b6b58a34c1..3b9815e11e 100644 --- a/src/mod/languages/mod_managed/managed/swig.2010.cs +++ b/src/mod/languages/mod_managed/managed/swig.2010.cs @@ -4081,6 +4081,10 @@ public class freeswitch { freeswitchPINVOKE.switch_http_dump_request(switch_http_request_t.getCPtr(request)); } + public static void switch_http_parse_qs(switch_http_request_t request, string qs) { + freeswitchPINVOKE.switch_http_parse_qs(switch_http_request_t.getCPtr(request), qs); + } + 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); @@ -11909,6 +11913,36 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_keepalive_get")] public static extern int switch_http_request_t_keepalive_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_set")] + public static extern void switch_http_request_t_content_type_set(HandleRef jarg1, string jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_type_get")] + public static extern string switch_http_request_t_content_type_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_set")] + public static extern void switch_http_request_t_content_length_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_content_length_get")] + public static extern IntPtr switch_http_request_t_content_length_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_set")] + public static extern void switch_http_request_t_bytes_header_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_header_get")] + public static extern IntPtr switch_http_request_t_bytes_header_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_set")] + public static extern void switch_http_request_t_bytes_read_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_read_get")] + public static extern IntPtr switch_http_request_t_bytes_read_get(HandleRef jarg1); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_set")] + public static extern void switch_http_request_t_bytes_buffered_set(HandleRef jarg1, HandleRef jarg2); + + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_bytes_buffered_get")] + public static extern IntPtr switch_http_request_t_bytes_buffered_get(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t_headers_set")] public static extern void switch_http_request_t_headers_set(HandleRef jarg1, HandleRef jarg2); @@ -11927,18 +11961,6 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__buffer_get")] public static extern string switch_http_request_t__buffer_get(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__unparsed_data_set")] - public static extern void switch_http_request_t__unparsed_data_set(HandleRef jarg1, string jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__unparsed_data_get")] - public static extern string switch_http_request_t__unparsed_data_get(HandleRef jarg1); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__unparsed_len_set")] - public static extern void switch_http_request_t__unparsed_len_set(HandleRef jarg1, HandleRef jarg2); - - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__unparsed_len_get")] - public static extern IntPtr switch_http_request_t__unparsed_len_get(HandleRef jarg1); - [DllImport("mod_managed", EntryPoint="CSharp_switch_http_request_t__destroy_headers_set")] public static extern void switch_http_request_t__destroy_headers_set(HandleRef jarg1, int jarg2); @@ -11960,6 +11982,9 @@ class freeswitchPINVOKE { [DllImport("mod_managed", EntryPoint="CSharp_switch_http_dump_request")] public static extern void switch_http_dump_request(HandleRef jarg1); + [DllImport("mod_managed", EntryPoint="CSharp_switch_http_parse_qs")] + public static extern void switch_http_parse_qs(HandleRef jarg1, string jarg2); + [DllImport("mod_managed", EntryPoint="CSharp_profile_node_t_var_set")] public static extern void profile_node_t_var_set(HandleRef jarg1, string jarg2); @@ -33346,6 +33371,64 @@ public class switch_http_request_t : IDisposable { } } + public string content_type { + set { + freeswitchPINVOKE.switch_http_request_t_content_type_set(swigCPtr, value); + } + get { + string ret = freeswitchPINVOKE.switch_http_request_t_content_type_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t content_length { + set { + freeswitchPINVOKE.switch_http_request_t_content_length_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_http_request_t_content_length_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_header { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_header_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_http_request_t_bytes_header_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_read { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_read_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_http_request_t_bytes_read_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_switch_size_t bytes_buffered { + set { + freeswitchPINVOKE.switch_http_request_t_bytes_buffered_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_http_request_t_bytes_buffered_get(swigCPtr), true); + if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + public switch_event headers { set { freeswitchPINVOKE.switch_http_request_t_headers_set(swigCPtr, switch_event.getCPtr(value)); @@ -33378,28 +33461,6 @@ public class switch_http_request_t : IDisposable { } } - public string _unparsed_data { - set { - freeswitchPINVOKE.switch_http_request_t__unparsed_data_set(swigCPtr, value); - } - get { - string ret = freeswitchPINVOKE.switch_http_request_t__unparsed_data_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_switch_size_t _unparsed_len { - set { - freeswitchPINVOKE.switch_http_request_t__unparsed_len_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_http_request_t__unparsed_len_get(swigCPtr), true); - if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - public switch_bool_t _destroy_headers { set { freeswitchPINVOKE.switch_http_request_t__destroy_headers_set(swigCPtr, (int)value);