提交 59d134c7 authored 作者: Robert Joly's avatar Robert Joly

Added some const kerywords to parameters.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9476 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 663344af
...@@ -1058,8 +1058,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_timer_destroy(switch_timer_t *timer) ...@@ -1058,8 +1058,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_timer_destroy(switch_timer_t *timer)
\return SWITCH_STATUS_SUCCESS if the handle is allocated \return SWITCH_STATUS_SUCCESS if the handle is allocated
*/ */
SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec, SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec,
char *codec_name, const char *codec_name,
char *fmtp, const char *fmtp,
uint32_t rate, uint32_t rate,
int ms, int ms,
int channels, int channels,
......
...@@ -260,13 +260,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, sw ...@@ -260,13 +260,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, sw
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec, char *codec_name, char *fmtp, SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec, const char *codec_name, const char *fmtp,
uint32_t rate, int ms, int channels, uint32_t flags, uint32_t rate, int ms, int channels, uint32_t flags,
const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool) const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool)
{ {
const switch_codec_interface_t *codec_interface; const switch_codec_interface_t *codec_interface;
const switch_codec_implementation_t *iptr, *implementation = NULL; const switch_codec_implementation_t *iptr, *implementation = NULL;
char *mode = fmtp; const char *mode = fmtp;
switch_assert(codec != NULL); switch_assert(codec != NULL);
switch_assert(codec_name != NULL); switch_assert(codec_name != NULL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论