Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
4395e554
提交
4395e554
authored
7月 27, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
typo
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@2185
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
765ee432
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
switch_core.h
src/include/switch_core.h
+3
-3
mod_sndfile.c
src/mod/formats/mod_sndfile/mod_sndfile.c
+1
-1
switch_core.c
src/switch_core.c
+3
-3
switch_loadable_module.c
src/switch_loadable_module.c
+5
-5
没有找到文件。
src/include/switch_core.h
浏览文件 @
4395e554
...
...
@@ -206,7 +206,7 @@ SWITCH_DECLARE(unsigned int) switch_core_session_runing(switch_core_session_t *s
\return a void pointer to the allocated memory
\note this memory never goes out of scope until the core is destroyed
*/
SWITCH_DECLARE
(
void
*
)
switch_core_perm
ena
nt_alloc
(
switch_size_t
memory
);
SWITCH_DECLARE
(
void
*
)
switch_core_perm
ane
nt_alloc
(
switch_size_t
memory
);
/*!
\brief Allocate memory directly from a memory pool
...
...
@@ -226,11 +226,11 @@ SWITCH_DECLARE(void *) switch_core_alloc(switch_memory_pool_t *pool, switch_size
SWITCH_DECLARE
(
void
*
)
switch_core_session_alloc
(
switch_core_session_t
*
session
,
switch_size_t
memory
);
/*!
\brief Copy a string using perm
ena
nt memory allocation
\brief Copy a string using perm
ane
nt memory allocation
\param todup the string to duplicate
\return a pointer to the newly duplicated string
*/
SWITCH_DECLARE
(
char
*
)
switch_core_perm
ena
nt_strdup
(
char
*
todup
);
SWITCH_DECLARE
(
char
*
)
switch_core_perm
ane
nt_strdup
(
char
*
todup
);
/*!
\brief Copy a string using memory allocation from a session's pool
...
...
src/mod/formats/mod_sndfile/mod_sndfile.c
浏览文件 @
4395e554
...
...
@@ -287,7 +287,7 @@ static switch_status_t setup_formats(void)
sfinfo
.
channels
=
1
;
len
=
((
major_count
+
(
exlen
+
2
))
*
sizeof
(
char
*
));
supported_formats
=
switch_core_perm
ena
nt_alloc
(
len
);
supported_formats
=
switch_core_perm
ane
nt_alloc
(
len
);
len
=
0
;
for
(
m
=
0
;
m
<
major_count
;
m
++
)
{
...
...
src/switch_core.c
浏览文件 @
4395e554
...
...
@@ -857,9 +857,9 @@ SWITCH_DECLARE(void *) switch_core_session_alloc(switch_core_session_t *session,
}
/* **ONLY** alloc things with these functions that **WILL NOT** need
to be freed *EVER* ie this is for *PERM
ENA
NT* memory allocation */
to be freed *EVER* ie this is for *PERM
ANE
NT* memory allocation */
SWITCH_DECLARE
(
void
*
)
switch_core_perm
ena
nt_alloc
(
switch_size_t
memory
)
SWITCH_DECLARE
(
void
*
)
switch_core_perm
ane
nt_alloc
(
switch_size_t
memory
)
{
void
*
ptr
=
NULL
;
assert
(
runtime
.
memory_pool
!=
NULL
);
...
...
@@ -874,7 +874,7 @@ SWITCH_DECLARE(void *) switch_core_permenant_alloc(switch_size_t memory)
return
ptr
;
}
SWITCH_DECLARE
(
char
*
)
switch_core_perm
ena
nt_strdup
(
char
*
todup
)
SWITCH_DECLARE
(
char
*
)
switch_core_perm
ane
nt_strdup
(
char
*
todup
)
{
char
*
duped
=
NULL
;
switch_size_t
len
;
...
...
src/switch_loadable_module.c
浏览文件 @
4395e554
...
...
@@ -270,7 +270,7 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
break
;
}
if
((
module
=
switch_core_perm
ena
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
if
((
module
=
switch_core_perm
ane
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
err
=
"Could not allocate memory
\n
"
;
break
;
}
...
...
@@ -283,7 +283,7 @@ static switch_status_t switch_loadable_module_load_file(char *filename, switch_l
return
SWITCH_STATUS_GENERR
;
}
module
->
filename
=
switch_core_perm
ena
nt_strdup
(
filename
);
module
->
filename
=
switch_core_perm
ane
nt_strdup
(
filename
);
module
->
module_interface
=
module_interface
;
module
->
switch_module_load
=
load_func_ptr
;
...
...
@@ -365,7 +365,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
const
char
*
err
=
NULL
;
switch_loadable_module_interface_t
*
module_interface
=
NULL
;
if
((
module
=
switch_core_perm
ena
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
if
((
module
=
switch_core_perm
ane
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Couldn't allocate memory
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
...
...
@@ -384,7 +384,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
break
;
}
if
((
module
=
switch_core_perm
ena
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
if
((
module
=
switch_core_perm
ane
nt_alloc
(
sizeof
(
switch_loadable_module_t
)))
==
0
)
{
err
=
"Could not allocate memory
\n
"
;
break
;
}
...
...
@@ -397,7 +397,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_build_dynamic(char *filen
return
SWITCH_STATUS_GENERR
;
}
module
->
filename
=
switch_core_perm
ena
nt_strdup
(
filename
);
module
->
filename
=
switch_core_perm
ane
nt_strdup
(
filename
);
module
->
module_interface
=
module_interface
;
module
->
switch_module_load
=
load_func_ptr
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论