[Freeswitch-svn] [commit] r4321 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Sun Feb 18 22:23:02 EST 2007


Author: mikej
Date: Sun Feb 18 22:23:02 2007
New Revision: 4321

Modified:
   freeswitch/trunk/src/include/switch_caller.h
   freeswitch/trunk/src/switch_caller.c

Log:
constify switch_caller_profile_new

Modified: freeswitch/trunk/src/include/switch_caller.h
==============================================================================
--- freeswitch/trunk/src/include/switch_caller.h	(original)
+++ freeswitch/trunk/src/include/switch_caller.h	Sun Feb 18 22:23:02 2007
@@ -171,17 +171,17 @@
   \return a new profile object allocated from the session's memory pool
 */
 SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memory_pool_t *pool,
-																	char *username,
-																	char *dialplan,
-																	char *caller_id_name,
-																	char *caller_id_number,
-																	char *network_addr,
-																	char *ani,
-																	char *aniii,
-																	char *rdnis,
-																	char *source,
-																	char *context,
-																	char *destination_number);
+																	const char *username,
+																	const char *dialplan,
+																	const char *caller_id_name,
+																	const char *caller_id_number,
+																	const char *network_addr,
+																	const char *ani,
+																	const char *aniii,
+																	const char *rdnis,
+																	const char *source,
+																	const char *context,
+																	const char *destination_number);
 
 /*!
   \brief Clone an existing caller profile object

Modified: freeswitch/trunk/src/switch_caller.c
==============================================================================
--- freeswitch/trunk/src/switch_caller.c	(original)
+++ freeswitch/trunk/src/switch_caller.c	Sun Feb 18 22:23:02 2007
@@ -33,17 +33,17 @@
 #include <switch_caller.h>
 
 SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memory_pool_t *pool,
-																	char *username,
-																	char *dialplan,
-																	char *caller_id_name,
-																	char *caller_id_number,
-																	char *network_addr,
-																	char *ani,
-																	char *aniii, 
-																	char *rdnis,
-																	char *source,
-																	char *context,
-																	char *destination_number)
+																	const char *username,
+																	const char *dialplan,
+																	const char *caller_id_name,
+																	const char *caller_id_number,
+																	const char *network_addr,
+																	const char *ani,
+																	const char *aniii, 
+																	const char *rdnis,
+																	const char *source,
+																	const char *context,
+																	const char *destination_number)
 {
 
 



More information about the Freeswitch-svn mailing list