- Timestamp:
- May 28, 2007 12:01:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.5-stable/pjlib/include/pj/hash.h
r974 r1308 48 48 * This indicates the size of of each hash entry. 49 49 */ 50 #define PJ_HASH_ENTRY_SIZE (3*sizeof(void*) + 2*sizeof(pj_uint32_t)) 50 #define PJ_HASH_ENTRY_BUF_SIZE (3*sizeof(void*) + 2*sizeof(pj_uint32_t)) 51 52 /** 53 * Type declaration for entry buffer, used by #pj_hash_set_np() 54 */ 55 typedef void *pj_hash_entry_buf[(PJ_HASH_ENTRY_BUF_SIZE+sizeof(void*)-1)/(sizeof(void*))]; 51 56 52 57 /** … … 148 153 * compute the key. This value can be obtained when calling 149 154 * #pj_hash_get(). 150 * @param entry_buf Pointer to buffer which will be used for the new entry, 151 * when one needs to be created. The buffer must be at least 152 * PJ_HASH_ENTRY_SIZE long, and the first PJ_HASH_ENTRY_SIZE 153 * bytes of the buffer will be used by the hash table. 154 * Application may use the remaining portion of the buffer 155 * for its own purpose. 155 * @param entry_buf Buffer which will be used for the new entry, when one needs 156 * to be created. 156 157 * @param value value to be associated, or NULL to delete the entry with 157 158 * the specified key. … … 159 160 PJ_DECL(void) pj_hash_set_np(pj_hash_table_t *ht, 160 161 const void *key, unsigned keylen, 161 pj_uint32_t hval, void *entry_buf, void *value); 162 pj_uint32_t hval, pj_hash_entry_buf entry_buf, 163 void *value); 162 164 163 165 /**
Note: See TracChangeset
for help on using the changeset viewer.