Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
34a008d2
提交
34a008d2
authored
5月 23, 2011
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swigall
上级
765908f3
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
331 行增加
和
0 行删除
+331
-0
freeswitch_wrap.cxx
src/mod/languages/mod_managed/freeswitch_wrap.cxx
+178
-0
swig.cs
src/mod/languages/mod_managed/managed/swig.cs
+153
-0
没有找到文件。
src/mod/languages/mod_managed/freeswitch_wrap.cxx
浏览文件 @
34a008d2
...
@@ -5710,6 +5710,35 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_arg_get(void * jarg1) {
...
@@ -5710,6 +5710,35 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_switch_app_log_arg_get(void * jarg1) {
}
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_stamp_set(void * jarg1, void * jarg2) {
switch_app_log *arg1 = (switch_app_log *) 0 ;
switch_time_t arg2 ;
switch_time_t *argp2 ;
arg1 = (switch_app_log *)jarg1;
argp2 = (switch_time_t *)jarg2;
if (!argp2) {
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_time_t", 0);
return ;
}
arg2 = *argp2;
if (arg1) (arg1)->stamp = arg2;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_app_log_stamp_get(void * jarg1) {
void * jresult ;
switch_app_log *arg1 = (switch_app_log *) 0 ;
switch_time_t result;
arg1 = (switch_app_log *)jarg1;
result = ((arg1)->stamp);
jresult = new switch_time_t((switch_time_t &)result);
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_next_set(void * jarg1, void * jarg2) {
SWIGEXPORT void SWIGSTDCALL CSharp_switch_app_log_next_set(void * jarg1, void * jarg2) {
switch_app_log *arg1 = (switch_app_log *) 0 ;
switch_app_log *arg1 = (switch_app_log *) 0 ;
switch_app_log *arg2 = (switch_app_log *) 0 ;
switch_app_log *arg2 = (switch_app_log *) 0 ;
...
@@ -6926,6 +6955,30 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_state_handler(void * jarg1) {
...
@@ -6926,6 +6955,30 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_add_state_handler(void * jarg1) {
}
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_curl_count(void * jarg1) {
int jresult ;
int *arg1 = (int *) 0 ;
int result;
arg1 = (int *)jarg1;
result = (int)switch_core_curl_count(arg1);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_ssl_count(void * jarg1) {
int jresult ;
int *arg1 = (int *) 0 ;
int result;
arg1 = (int *)jarg1;
result = (int)switch_core_ssl_count(arg1);
jresult = result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_remove_state_handler(void * jarg1) {
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_remove_state_handler(void * jarg1) {
switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ;
switch_state_handler_table_t *arg1 = (switch_state_handler_table_t *) 0 ;
...
@@ -13455,6 +13508,108 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_split_user_domain(char * jarg1, void *
...
@@ -13455,6 +13508,108 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_split_user_domain(char * jarg1, void *
}
}
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 ;
arg1 = (profile_node_t *)jarg1;
arg2 = (char *)jarg2;
{
if (arg1->var) delete [] arg1->var;
if (arg2) {
arg1->var = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->var, (const char *)arg2);
} else {
arg1->var = 0;
}
}
}
SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_var_get(void * jarg1) {
char * jresult ;
profile_node_t *arg1 = (profile_node_t *) 0 ;
char *result = 0 ;
arg1 = (profile_node_t *)jarg1;
result = (char *) ((arg1)->var);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_val_set(void * jarg1, char * jarg2) {
profile_node_t *arg1 = (profile_node_t *) 0 ;
char *arg2 = (char *) 0 ;
arg1 = (profile_node_t *)jarg1;
arg2 = (char *)jarg2;
{
if (arg1->val) delete [] arg1->val;
if (arg2) {
arg1->val = (char *) (new char[strlen((const char *)arg2)+1]);
strcpy((char *)arg1->val, (const char *)arg2);
} else {
arg1->val = 0;
}
}
}
SWIGEXPORT char * SWIGSTDCALL CSharp_profile_node_t_val_get(void * jarg1) {
char * jresult ;
profile_node_t *arg1 = (profile_node_t *) 0 ;
char *result = 0 ;
arg1 = (profile_node_t *)jarg1;
result = (char *) ((arg1)->val);
jresult = SWIG_csharp_string_callback((const char *)result);
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_profile_node_t_next_set(void * jarg1, void * jarg2) {
profile_node_t *arg1 = (profile_node_t *) 0 ;
profile_node_s *arg2 = (profile_node_s *) 0 ;
arg1 = (profile_node_t *)jarg1;
arg2 = (profile_node_s *)jarg2;
if (arg1) (arg1)->next = arg2;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_profile_node_t_next_get(void * jarg1) {
void * jresult ;
profile_node_t *arg1 = (profile_node_t *) 0 ;
profile_node_s *result = 0 ;
arg1 = (profile_node_t *)jarg1;
result = (profile_node_s *) ((arg1)->next);
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_profile_node_t() {
void * jresult ;
profile_node_t *result = 0 ;
result = (profile_node_t *)new profile_node_t();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_profile_node_t(void * jarg1) {
profile_node_t *arg1 = (profile_node_t *) 0 ;
arg1 = (profile_node_t *)jarg1;
delete arg1;
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) {
SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_username_set(void * jarg1, char * jarg2) {
switch_caller_profile *arg1 = (switch_caller_profile *) 0 ;
switch_caller_profile *arg1 = (switch_caller_profile *) 0 ;
char *arg2 = (char *) 0 ;
char *arg2 = (char *) 0 ;
...
@@ -14336,6 +14491,29 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jar
...
@@ -14336,6 +14491,29 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_caller_profile_direction_get(void * jar
}
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_caller_profile_soft_set(void * jarg1, void * jarg2) {
switch_caller_profile *arg1 = (switch_caller_profile *) 0 ;
profile_node_t *arg2 = (profile_node_t *) 0 ;
arg1 = (switch_caller_profile *)jarg1;
arg2 = (profile_node_t *)jarg2;
if (arg1) (arg1)->soft = arg2;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_caller_profile_soft_get(void * jarg1) {
void * jresult ;
switch_caller_profile *arg1 = (switch_caller_profile *) 0 ;
profile_node_t *result = 0 ;
arg1 = (switch_caller_profile *)jarg1;
result = (profile_node_t *) ((arg1)->soft);
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() {
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_caller_profile() {
void * jresult ;
void * jresult ;
switch_caller_profile *result = 0 ;
switch_caller_profile *result = 0 ;
...
...
src/mod/languages/mod_managed/managed/swig.cs
浏览文件 @
34a008d2
...
@@ -1151,6 +1151,16 @@ public class freeswitch {
...
@@ -1151,6 +1151,16 @@ public class freeswitch {
return
ret
;
return
ret
;
}
}
public
static
int
switch_core_curl_count
(
SWIGTYPE_p_int
val
)
{
int
ret
=
freeswitchPINVOKE
.
switch_core_curl_count
(
SWIGTYPE_p_int
.
getCPtr
(
val
));
return
ret
;
}
public
static
int
switch_core_ssl_count
(
SWIGTYPE_p_int
val
)
{
int
ret
=
freeswitchPINVOKE
.
switch_core_ssl_count
(
SWIGTYPE_p_int
.
getCPtr
(
val
));
return
ret
;
}
public
static
void
switch_core_remove_state_handler
(
switch_state_handler_table
state_handler
)
{
public
static
void
switch_core_remove_state_handler
(
switch_state_handler_table
state_handler
)
{
freeswitchPINVOKE
.
switch_core_remove_state_handler
(
switch_state_handler_table
.
getCPtr
(
state_handler
));
freeswitchPINVOKE
.
switch_core_remove_state_handler
(
switch_state_handler_table
.
getCPtr
(
state_handler
));
}
}
...
@@ -7272,6 +7282,12 @@ class freeswitchPINVOKE {
...
@@ -7272,6 +7282,12 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_arg_get"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_arg_get"
)]
public
static
extern
string
switch_app_log_arg_get
(
HandleRef
jarg1
);
public
static
extern
string
switch_app_log_arg_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_stamp_set"
)]
public
static
extern
void
switch_app_log_stamp_set
(
HandleRef
jarg1
,
HandleRef
jarg2
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_stamp_get"
)]
public
static
extern
IntPtr
switch_app_log_stamp_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_next_set"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_app_log_next_set"
)]
public
static
extern
void
switch_app_log_next_set
(
HandleRef
jarg1
,
HandleRef
jarg2
);
public
static
extern
void
switch_app_log_next_set
(
HandleRef
jarg1
,
HandleRef
jarg2
);
...
@@ -7566,6 +7582,12 @@ class freeswitchPINVOKE {
...
@@ -7566,6 +7582,12 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_add_state_handler"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_add_state_handler"
)]
public
static
extern
int
switch_core_add_state_handler
(
HandleRef
jarg1
);
public
static
extern
int
switch_core_add_state_handler
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_curl_count"
)]
public
static
extern
int
switch_core_curl_count
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_ssl_count"
)]
public
static
extern
int
switch_core_ssl_count
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_remove_state_handler"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_remove_state_handler"
)]
public
static
extern
void
switch_core_remove_state_handler
(
HandleRef
jarg1
);
public
static
extern
void
switch_core_remove_state_handler
(
HandleRef
jarg1
);
...
@@ -9009,6 +9031,30 @@ class freeswitchPINVOKE {
...
@@ -9009,6 +9031,30 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_split_user_domain"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_split_user_domain"
)]
public
static
extern
int
switch_split_user_domain
(
string
jarg1
,
ref
string
jarg2
,
ref
string
jarg3
);
public
static
extern
int
switch_split_user_domain
(
string
jarg1
,
ref
string
jarg2
,
ref
string
jarg3
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_var_set"
)]
public
static
extern
void
profile_node_t_var_set
(
HandleRef
jarg1
,
string
jarg2
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_var_get"
)]
public
static
extern
string
profile_node_t_var_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_val_set"
)]
public
static
extern
void
profile_node_t_val_set
(
HandleRef
jarg1
,
string
jarg2
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_val_get"
)]
public
static
extern
string
profile_node_t_val_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_next_set"
)]
public
static
extern
void
profile_node_t_next_set
(
HandleRef
jarg1
,
HandleRef
jarg2
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_profile_node_t_next_get"
)]
public
static
extern
IntPtr
profile_node_t_next_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_new_profile_node_t"
)]
public
static
extern
IntPtr
new_profile_node_t
();
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_delete_profile_node_t"
)]
public
static
extern
void
delete_profile_node_t
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_username_set"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_username_set"
)]
public
static
extern
void
switch_caller_profile_username_set
(
HandleRef
jarg1
,
string
jarg2
);
public
static
extern
void
switch_caller_profile_username_set
(
HandleRef
jarg1
,
string
jarg2
);
...
@@ -9213,6 +9259,12 @@ class freeswitchPINVOKE {
...
@@ -9213,6 +9259,12 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_direction_get"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_direction_get"
)]
public
static
extern
int
switch_caller_profile_direction_get
(
HandleRef
jarg1
);
public
static
extern
int
switch_caller_profile_direction_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_soft_set"
)]
public
static
extern
void
switch_caller_profile_soft_set
(
HandleRef
jarg1
,
HandleRef
jarg2
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_caller_profile_soft_get"
)]
public
static
extern
IntPtr
switch_caller_profile_soft_get
(
HandleRef
jarg1
);
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_new_switch_caller_profile"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_new_switch_caller_profile"
)]
public
static
extern
IntPtr
new_switch_caller_profile
();
public
static
extern
IntPtr
new_switch_caller_profile
();
...
@@ -14456,6 +14508,84 @@ public partial class ManagedSession : CoreSession {
...
@@ -14456,6 +14508,84 @@ public partial class ManagedSession : CoreSession {
namespace
FreeSWITCH.Native
{
namespace
FreeSWITCH.Native
{
using
System
;
using
System.Runtime.InteropServices
;
public
class
profile_node_t
:
IDisposable
{
private
HandleRef
swigCPtr
;
protected
bool
swigCMemOwn
;
internal
profile_node_t
(
IntPtr
cPtr
,
bool
cMemoryOwn
)
{
swigCMemOwn
=
cMemoryOwn
;
swigCPtr
=
new
HandleRef
(
this
,
cPtr
);
}
internal
static
HandleRef
getCPtr
(
profile_node_t
obj
)
{
return
(
obj
==
null
)
?
new
HandleRef
(
null
,
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
}
~
profile_node_t
()
{
Dispose
();
}
public
virtual
void
Dispose
()
{
lock
(
this
)
{
if
(
swigCPtr
.
Handle
!=
IntPtr
.
Zero
&&
swigCMemOwn
)
{
swigCMemOwn
=
false
;
freeswitchPINVOKE
.
delete_profile_node_t
(
swigCPtr
);
}
swigCPtr
=
new
HandleRef
(
null
,
IntPtr
.
Zero
);
GC
.
SuppressFinalize
(
this
);
}
}
public
string
var
{
set
{
freeswitchPINVOKE
.
profile_node_t_var_set
(
swigCPtr
,
value
);
}
get
{
string
ret
=
freeswitchPINVOKE
.
profile_node_t_var_get
(
swigCPtr
);
return
ret
;
}
}
public
string
val
{
set
{
freeswitchPINVOKE
.
profile_node_t_val_set
(
swigCPtr
,
value
);
}
get
{
string
ret
=
freeswitchPINVOKE
.
profile_node_t_val_get
(
swigCPtr
);
return
ret
;
}
}
public
profile_node_t
next
{
set
{
freeswitchPINVOKE
.
profile_node_t_next_set
(
swigCPtr
,
profile_node_t
.
getCPtr
(
value
));
}
get
{
IntPtr
cPtr
=
freeswitchPINVOKE
.
profile_node_t_next_get
(
swigCPtr
);
profile_node_t
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
profile_node_t
(
cPtr
,
false
);
return
ret
;
}
}
public
profile_node_t
()
:
this
(
freeswitchPINVOKE
.
new_profile_node_t
(),
true
)
{
}
}
}
/* ----------------------------------------------------------------------------
* 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
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
),
...
@@ -19936,6 +20066,18 @@ public class switch_app_log : IDisposable {
...
@@ -19936,6 +20066,18 @@ public class switch_app_log : IDisposable {
}
}
}
}
public
SWIGTYPE_p_switch_time_t
stamp
{
set
{
freeswitchPINVOKE
.
switch_app_log_stamp_set
(
swigCPtr
,
SWIGTYPE_p_switch_time_t
.
getCPtr
(
value
));
if
(
freeswitchPINVOKE
.
SWIGPendingException
.
Pending
)
throw
freeswitchPINVOKE
.
SWIGPendingException
.
Retrieve
();
}
get
{
SWIGTYPE_p_switch_time_t
ret
=
new
SWIGTYPE_p_switch_time_t
(
freeswitchPINVOKE
.
switch_app_log_stamp_get
(
swigCPtr
),
true
);
if
(
freeswitchPINVOKE
.
SWIGPendingException
.
Pending
)
throw
freeswitchPINVOKE
.
SWIGPendingException
.
Retrieve
();
return
ret
;
}
}
public
switch_app_log
next
{
public
switch_app_log
next
{
set
{
set
{
freeswitchPINVOKE
.
switch_app_log_next_set
(
swigCPtr
,
switch_app_log
.
getCPtr
(
value
));
freeswitchPINVOKE
.
switch_app_log_next_set
(
swigCPtr
,
switch_app_log
.
getCPtr
(
value
));
...
@@ -21775,6 +21917,17 @@ public class switch_caller_profile : IDisposable {
...
@@ -21775,6 +21917,17 @@ public class switch_caller_profile : IDisposable {
}
}
}
}
public
profile_node_t
soft
{
set
{
freeswitchPINVOKE
.
switch_caller_profile_soft_set
(
swigCPtr
,
profile_node_t
.
getCPtr
(
value
));
}
get
{
IntPtr
cPtr
=
freeswitchPINVOKE
.
switch_caller_profile_soft_get
(
swigCPtr
);
profile_node_t
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
profile_node_t
(
cPtr
,
false
);
return
ret
;
}
}
public
switch_caller_profile
()
:
this
(
freeswitchPINVOKE
.
new_switch_caller_profile
(),
true
)
{
public
switch_caller_profile
()
:
this
(
freeswitchPINVOKE
.
new_switch_caller_profile
(),
true
)
{
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论