Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fc004ddc
提交
fc004ddc
authored
5月 26, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3315 --resolve Fix typedef declaration for switch_cap_callback_t Thanks Peter
上级
8ba8b501
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
3 行删除
+8
-3
switch_platform.h
src/include/switch_platform.h
+5
-0
switch_types.h
src/include/switch_types.h
+1
-1
mod_dptools.c
src/mod/applications/mod_dptools/mod_dptools.c
+1
-1
mod_dialplan_xml.c
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
+1
-1
没有找到文件。
src/include/switch_platform.h
浏览文件 @
fc004ddc
...
@@ -137,14 +137,17 @@ typedef int gid_t;
...
@@ -137,14 +137,17 @@ typedef int gid_t;
#ifdef WIN32
#ifdef WIN32
#if defined(SWITCH_CORE_DECLARE_STATIC)
#if defined(SWITCH_CORE_DECLARE_STATIC)
#define SWITCH_DECLARE(type) type __stdcall
#define SWITCH_DECLARE(type) type __stdcall
#define SWITCH_DECLARE_TYPEDEF(type, name) type (__stdcall name)
#define SWITCH_DECLARE_NONSTD(type) type __cdecl
#define SWITCH_DECLARE_NONSTD(type) type __cdecl
#define SWITCH_DECLARE_DATA
#define SWITCH_DECLARE_DATA
#elif defined(FREESWITCHCORE_EXPORTS)
#elif defined(FREESWITCHCORE_EXPORTS)
#define SWITCH_DECLARE(type) __declspec(dllexport) type __stdcall
#define SWITCH_DECLARE(type) __declspec(dllexport) type __stdcall
#define SWITCH_DECLARE_TYPEDEF(type, name) __declspec(dllexport) type (__stdcall name)
#define SWITCH_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
#define SWITCH_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
#define SWITCH_DECLARE_DATA __declspec(dllexport)
#define SWITCH_DECLARE_DATA __declspec(dllexport)
#else
#else
#define SWITCH_DECLARE(type) __declspec(dllimport) type __stdcall
#define SWITCH_DECLARE(type) __declspec(dllimport) type __stdcall
#define SWITCH_DECLARE_TYPEDEF(type, name) __declspec(dllimport) type (__stdcall name)
#define SWITCH_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
#define SWITCH_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
#define SWITCH_DECLARE_DATA __declspec(dllimport)
#define SWITCH_DECLARE_DATA __declspec(dllimport)
#endif
#endif
...
@@ -174,6 +177,7 @@ typedef int gid_t;
...
@@ -174,6 +177,7 @@ typedef int gid_t;
#define O_BINARY 0
#define O_BINARY 0
#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(SWITCH_API_VISIBILITY)
#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(SWITCH_API_VISIBILITY)
#define SWITCH_DECLARE(type) __attribute__((visibility("default"))) type
#define SWITCH_DECLARE(type) __attribute__((visibility("default"))) type
#define SWITCH_DECLARE_TYPEDEF(type, name) type (name)
#define SWITCH_DECLARE_NONSTD(type) __attribute__((visibility("default"))) type
#define SWITCH_DECLARE_NONSTD(type) __attribute__((visibility("default"))) type
#define SWITCH_DECLARE_DATA __attribute__((visibility("default")))
#define SWITCH_DECLARE_DATA __attribute__((visibility("default")))
#define SWITCH_MOD_DECLARE(type) __attribute__((visibility("default"))) type
#define SWITCH_MOD_DECLARE(type) __attribute__((visibility("default"))) type
...
@@ -182,6 +186,7 @@ typedef int gid_t;
...
@@ -182,6 +186,7 @@ typedef int gid_t;
#define SWITCH_DECLARE_CLASS __attribute__((visibility("default")))
#define SWITCH_DECLARE_CLASS __attribute__((visibility("default")))
#else
#else
#define SWITCH_DECLARE(type) type
#define SWITCH_DECLARE(type) type
#define SWITCH_DECLARE_TYPEDEF(type, name) type (name)
#define SWITCH_DECLARE_NONSTD(type) type
#define SWITCH_DECLARE_NONSTD(type) type
#define SWITCH_DECLARE_DATA
#define SWITCH_DECLARE_DATA
#define SWITCH_MOD_DECLARE(type) type
#define SWITCH_MOD_DECLARE(type) type
...
...
src/include/switch_types.h
浏览文件 @
fc004ddc
...
@@ -1690,7 +1690,7 @@ struct switch_console_callback_match {
...
@@ -1690,7 +1690,7 @@ struct switch_console_callback_match {
};
};
typedef
struct
switch_console_callback_match
switch_console_callback_match_t
;
typedef
struct
switch_console_callback_match
switch_console_callback_match_t
;
typedef
void
(
*
switch_cap_callback_t
)
(
const
char
*
var
,
const
char
*
val
,
void
*
user_data
);
typedef
SWITCH_DECLARE_TYPEDEF
(
void
,
*
switch_cap_callback_t
)
(
const
char
*
var
,
const
char
*
val
,
void
*
user_data
);
typedef
switch_status_t
(
*
switch_console_complete_callback_t
)
(
const
char
*
,
const
char
*
,
switch_console_callback_match_t
**
matches
);
typedef
switch_status_t
(
*
switch_console_complete_callback_t
)
(
const
char
*
,
const
char
*
,
switch_console_callback_match_t
**
matches
);
typedef
switch_bool_t
(
*
switch_media_bug_callback_t
)
(
switch_media_bug_t
*
,
void
*
,
switch_abc_type_t
);
typedef
switch_bool_t
(
*
switch_media_bug_callback_t
)
(
switch_media_bug_t
*
,
void
*
,
switch_abc_type_t
);
typedef
switch_bool_t
(
*
switch_tone_detect_callback_t
)
(
switch_core_session_t
*
,
const
char
*
,
const
char
*
);
typedef
switch_bool_t
(
*
switch_tone_detect_callback_t
)
(
switch_core_session_t
*
,
const
char
*
,
const
char
*
);
...
...
src/mod/applications/mod_dptools/mod_dptools.c
浏览文件 @
fc004ddc
...
@@ -2320,7 +2320,7 @@ SWITCH_STANDARD_APP(capture_function)
...
@@ -2320,7 +2320,7 @@ SWITCH_STANDARD_APP(capture_function)
if
(
!
zstr
(
data
)
&&
(
lbuf
=
switch_core_session_strdup
(
session
,
data
))
if
(
!
zstr
(
data
)
&&
(
lbuf
=
switch_core_session_strdup
(
session
,
data
))
&&
(
argc
=
switch_separate_string
(
lbuf
,
'|'
,
argv
,
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
]))))
==
3
)
{
&&
(
argc
=
switch_separate_string
(
lbuf
,
'|'
,
argv
,
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
]))))
==
3
)
{
if
((
proceed
=
switch_regex_perform
(
argv
[
1
],
argv
[
2
],
&
re
,
ovector
,
sizeof
(
ovector
)
/
sizeof
(
ovector
[
0
]))))
{
if
((
proceed
=
switch_regex_perform
(
argv
[
1
],
argv
[
2
],
&
re
,
ovector
,
sizeof
(
ovector
)
/
sizeof
(
ovector
[
0
]))))
{
switch_capture_regex
(
re
,
proceed
,
argv
[
1
],
ovector
,
argv
[
0
],
(
switch_cap_callback_t
)
switch_regex_set_var_callback
,
session
);
switch_capture_regex
(
re
,
proceed
,
argv
[
1
],
ovector
,
argv
[
0
],
switch_regex_set_var_callback
,
session
);
}
}
switch_regex_safe_free
(
re
);
switch_regex_safe_free
(
re
);
}
else
{
}
else
{
...
...
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
浏览文件 @
fc004ddc
...
@@ -224,7 +224,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
...
@@ -224,7 +224,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
}
else
{
}
else
{
if
(
field
&&
strchr
(
expression
,
'('
))
{
if
(
field
&&
strchr
(
expression
,
'('
))
{
switch_channel_set_variable
(
channel
,
"DP_MATCH"
,
NULL
);
switch_channel_set_variable
(
channel
,
"DP_MATCH"
,
NULL
);
switch_capture_regex
(
re
,
proceed
,
field_data
,
ovector
,
"DP_MATCH"
,
(
switch_cap_callback_t
)
switch_regex_set_var_callback
,
session
);
switch_capture_regex
(
re
,
proceed
,
field_data
,
ovector
,
"DP_MATCH"
,
switch_regex_set_var_callback
,
session
);
}
}
for
(
xaction
=
switch_xml_child
(
xcond
,
"action"
);
xaction
;
xaction
=
xaction
->
next
)
{
for
(
xaction
=
switch_xml_child
(
xcond
,
"action"
);
xaction
;
xaction
=
xaction
->
next
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论