reswig
This commit is contained in:
parent
db91f0e81f
commit
97c65a004e
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.0
|
||||
* Version 2.0.1
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
|
@ -11634,6 +11634,108 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_isxdigit(int jarg1) {
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v4_set(void * jarg1, unsigned long jarg2) {
|
||||
ip_t *arg1 = (ip_t *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
|
||||
arg1 = (ip_t *)jarg1;
|
||||
arg2 = (uint32_t)jarg2;
|
||||
if (arg1) (arg1)->v4 = arg2;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_ip_t_v4_get(void * jarg1) {
|
||||
unsigned long jresult ;
|
||||
ip_t *arg1 = (ip_t *) 0 ;
|
||||
uint32_t result;
|
||||
|
||||
arg1 = (ip_t *)jarg1;
|
||||
result = (uint32_t) ((arg1)->v4);
|
||||
jresult = (unsigned long)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_ip_t_v6_set(void * jarg1, void * jarg2) {
|
||||
ip_t *arg1 = (ip_t *) 0 ;
|
||||
in6_addr arg2 ;
|
||||
in6_addr *argp2 ;
|
||||
|
||||
arg1 = (ip_t *)jarg1;
|
||||
argp2 = (in6_addr *)jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null in6_addr", 0);
|
||||
return ;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
if (arg1) (arg1)->v6 = arg2;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_ip_t_v6_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
ip_t *arg1 = (ip_t *) 0 ;
|
||||
in6_addr result;
|
||||
|
||||
arg1 = (ip_t *)jarg1;
|
||||
result = ((arg1)->v6);
|
||||
jresult = new in6_addr((const in6_addr &)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_new_ip_t() {
|
||||
void * jresult ;
|
||||
ip_t *result = 0 ;
|
||||
|
||||
result = (ip_t *)new ip_t();
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_delete_ip_t(void * jarg1) {
|
||||
ip_t *arg1 = (ip_t *) 0 ;
|
||||
|
||||
arg1 = (ip_t *)jarg1;
|
||||
delete arg1;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_testv6_subnet(void * jarg1, void * jarg2, void * jarg3) {
|
||||
int jresult ;
|
||||
ip_t arg1 ;
|
||||
ip_t arg2 ;
|
||||
ip_t arg3 ;
|
||||
ip_t *argp1 ;
|
||||
ip_t *argp2 ;
|
||||
ip_t *argp3 ;
|
||||
switch_bool_t result;
|
||||
|
||||
argp1 = (ip_t *)jarg1;
|
||||
if (!argp1) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0);
|
||||
return 0;
|
||||
}
|
||||
arg1 = *argp1;
|
||||
argp2 = (ip_t *)jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0);
|
||||
return 0;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
argp3 = (ip_t *)jarg3;
|
||||
if (!argp3) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0);
|
||||
return 0;
|
||||
}
|
||||
arg3 = *argp3;
|
||||
result = (switch_bool_t)switch_testv6_subnet(arg1,arg2,arg3);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_SWITCH_SMAX_get() {
|
||||
int jresult ;
|
||||
int result;
|
||||
|
@ -12589,14 +12691,14 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_is_file_path(char * jarg1) {
|
|||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_parse_cidr(char * jarg1, void * jarg2, void * jarg3, void * jarg4) {
|
||||
int jresult ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
uint32_t *arg2 = (uint32_t *) 0 ;
|
||||
uint32_t *arg3 = (uint32_t *) 0 ;
|
||||
ip_t *arg2 = (ip_t *) 0 ;
|
||||
ip_t *arg3 = (ip_t *) 0 ;
|
||||
uint32_t *arg4 = (uint32_t *) 0 ;
|
||||
int result;
|
||||
|
||||
arg1 = (char *)jarg1;
|
||||
arg2 = (uint32_t *)jarg2;
|
||||
arg3 = (uint32_t *)jarg3;
|
||||
arg2 = (ip_t *)jarg2;
|
||||
arg3 = (ip_t *)jarg3;
|
||||
arg4 = (uint32_t *)jarg4;
|
||||
result = (int)switch_parse_cidr((char const *)arg1,arg2,arg3,arg4);
|
||||
jresult = result;
|
||||
|
@ -12674,6 +12776,28 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip_token(void * j
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT int SWIGSTDCALL CSharp_switch_network_list_validate_ip6_token(void * jarg1, void * jarg2, void * jarg3) {
|
||||
int jresult ;
|
||||
switch_network_list_t *arg1 = (switch_network_list_t *) 0 ;
|
||||
ip_t arg2 ;
|
||||
char **arg3 = (char **) 0 ;
|
||||
ip_t *argp2 ;
|
||||
switch_bool_t result;
|
||||
|
||||
arg1 = (switch_network_list_t *)jarg1;
|
||||
argp2 = (ip_t *)jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ip_t", 0);
|
||||
return 0;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
arg3 = (char **)jarg3;
|
||||
result = (switch_bool_t)switch_network_list_validate_ip6_token(arg1,arg2,(char const **)arg3);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT char * SWIGSTDCALL CSharp_switch_dow_int2str(int jarg1) {
|
||||
char * jresult ;
|
||||
int arg1 ;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue