[Freeswitch-svn] [commit] r9476 - in freeswitch/trunk/src: . include
Freeswitch SVN
robertj at freeswitch.org
Sat Sep 6 23:59:39 EDT 2008
Author: robertj
Date: Sat Sep 6 23:59:39 2008
New Revision: 9476
Modified:
freeswitch/trunk/src/include/switch_core.h
freeswitch/trunk/src/switch_core_codec.c
Log:
Added some const kerywords to parameters.
Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h (original)
+++ freeswitch/trunk/src/include/switch_core.h Sat Sep 6 23:59:39 2008
@@ -1058,8 +1058,8 @@
\return SWITCH_STATUS_SUCCESS if the handle is allocated
*/
SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec,
- char *codec_name,
- char *fmtp,
+ const char *codec_name,
+ const char *fmtp,
uint32_t rate,
int ms,
int channels,
Modified: freeswitch/trunk/src/switch_core_codec.c
==============================================================================
--- freeswitch/trunk/src/switch_core_codec.c (original)
+++ freeswitch/trunk/src/switch_core_codec.c Sat Sep 6 23:59:39 2008
@@ -260,13 +260,13 @@
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,
const switch_codec_settings_t *codec_settings, switch_memory_pool_t *pool)
{
const switch_codec_interface_t *codec_interface;
const switch_codec_implementation_t *iptr, *implementation = NULL;
- char *mode = fmtp;
+ const char *mode = fmtp;
switch_assert(codec != NULL);
switch_assert(codec_name != NULL);
More information about the Freeswitch-svn
mailing list