Ignore:
Timestamp:
Feb 27, 2013 10:11:59 AM (11 years ago)
Author:
nanang
Message:

Re #1556: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjlib/include/pj/hash.h

    r3673 r4385  
    7676 * 
    7777 * @param hval      The initial hash value, normally zero. 
    78  * @param result    Buffer to store the result, which must be enough to hold 
    79  *                  the string. 
     78 * @param result    Optional. Buffer to store the result, which must be enough 
     79 *                  to hold the string. 
    8080 * @param key       The input key to be converted and calculated. 
    8181 * 
     
    114114                             const void *key, unsigned keylen, 
    115115                             pj_uint32_t *hval ); 
     116 
     117 
     118/** 
     119 * Variant of #pj_hash_get() with the key being converted to lowercase when 
     120 * calculating the hash value. 
     121 * 
     122 * @see pj_hash_get() 
     123 */ 
     124PJ_DECL(void *) pj_hash_get_lower( pj_hash_table_t *ht, 
     125                                   const void *key, unsigned keylen, 
     126                                   pj_uint32_t *hval ); 
    116127 
    117128 
     
    143154 
    144155/** 
     156 * Variant of #pj_hash_set() with the key being converted to lowercase when 
     157 * calculating the hash value. 
     158 * 
     159 * @see pj_hash_set() 
     160 */ 
     161PJ_DECL(void) pj_hash_set_lower( pj_pool_t *pool, pj_hash_table_t *ht, 
     162                                 const void *key, unsigned keylen, 
     163                                 pj_uint32_t hval, void *value ); 
     164 
     165 
     166/** 
    145167 * Associate/disassociate a value with the specified key. This function works 
    146168 * like #pj_hash_set(), except that it doesn't use pool (hence the np -- no  
     
    166188 
    167189/** 
     190 * Variant of #pj_hash_set_np() with the key being converted to lowercase 
     191 * when calculating the hash value. 
     192 * 
     193 * @see pj_hash_set_np() 
     194 */ 
     195PJ_DECL(void) pj_hash_set_np_lower(pj_hash_table_t *ht, 
     196                                   const void *key, unsigned keylen, 
     197                                   pj_uint32_t hval, 
     198                                   pj_hash_entry_buf entry_buf, 
     199                                   void *value); 
     200 
     201/** 
    168202 * Get the total number of entries in the hash table. 
    169203 * 
Note: See TracChangeset for help on using the changeset viewer.