]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
constification for switch_core_hash_find and switch_event_create_subclass
authorMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 03:22:43 +0000 (03:22 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 03:22:43 +0000 (03:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4251 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_core.h
src/include/switch_event.h
src/switch_core.c
src/switch_event.c

index 5b783f2affc96d32738d7a79cbd26b6ea83e383a..02f011408ab4b6a7d3ca09acf6c1b331bd521c20 100644 (file)
@@ -886,7 +886,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_hash_delete(switch_hash_t *hash, cha
   \param key the key to retrieve
   \return a pointer to the data held in the key
 */
-SWITCH_DECLARE(void *) switch_core_hash_find(switch_hash_t *hash, char *key);
+SWITCH_DECLARE(void *) switch_core_hash_find(switch_hash_t *hash, const char *key);
 ///\}
 
 ///\defgroup timer Timer Functions
index 05254128fce6cf75bd5969c8438f9140910dc929..97c9c7264186003ca21e386916199b62f6d4d984 100644 (file)
@@ -139,7 +139,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_shutdown(void);
   \param subclass_name the subclass name for custom event (only valid when event_id is SWITCH_EVENT_CUSTOM)
   \return SWITCH_STATUS_SUCCESS on success
 */
-SWITCH_DECLARE(switch_status_t) switch_event_create_subclass(switch_event_t **event, switch_event_types_t event_id, char *subclass_name);
+SWITCH_DECLARE(switch_status_t) switch_event_create_subclass(switch_event_t **event, switch_event_types_t event_id, const char *subclass_name);
 
 /*!
   \brief Set the priority of an event
index 4d73b4acce614527b0226ead19e8e7058f613921..4c473d01865d3bfd7e7cecb7ef64477d2e3cb383 100644 (file)
@@ -3504,7 +3504,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_hash_delete(switch_hash_t *hash, cha
        return SWITCH_STATUS_SUCCESS;
 }
 
-SWITCH_DECLARE(void *) switch_core_hash_find(switch_hash_t *hash, char *key)
+SWITCH_DECLARE(void *) switch_core_hash_find(switch_hash_t *hash, const char *key)
 {
        return apr_hash_get(hash, key, APR_HASH_KEY_STRING);
 }
index fe72863ca42bd6bc632f84fc9951f48a3d237cf9..e4373e29c2b3a79872514e96ef1f3c6761ebf0cc 100644 (file)
@@ -423,7 +423,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_init(switch_memory_pool_t *pool)
 
 SWITCH_DECLARE(switch_status_t) switch_event_create_subclass(switch_event_t **event,
                                                                                                                   switch_event_types_t event_id,
-                                                                                                                  char *subclass_name)
+                                                                                                                  const char *subclass_name)
 {
 
        if (event_id != SWITCH_EVENT_CUSTOM && subclass_name) {