]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
constify switch_caller_profile_new
authorMichael Jerris <mike@jerris.com>
Mon, 19 Feb 2007 03:23:02 +0000 (03:23 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 19 Feb 2007 03:23:02 +0000 (03:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4321 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_caller.h
src/switch_caller.c

index 3a5a5b5247203277e616b410ae492498209dd9ec..34bf55a41dc0e55cf3f7432ee9548fd7465b1448 100644 (file)
@@ -171,17 +171,17 @@ SWITCH_DECLARE(char *) switch_caller_get_field_by_name(switch_caller_profile_t *
   \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
index ec96741c3137d55b42c6b3c0d08922ff4cc5f8eb..2fa9c67425f843498162466a10815529d58a3ab1 100644 (file)
 #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)
 {