Changeset 196 for trunk/archive/pslib/include/psHash.h
- Timestamp:
- Mar 9, 2004, 5:19:15 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psHash.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psHash.h
r181 r196 2 2 #define PS_HASH_H 3 3 4 typedef struct HashTable psHash; 4 typedef struct HashTable psHash; //!< Opaque type for a hash table 5 5 6 psHash *psHashAlloc(int nbucket); // initial number of buckets 7 void psHashFree(psHash *table, // hash table to be freed 8 void (*itemFree)(void *item)); // how to free hashed data; 9 // or NULL 6 psHash *psHashAlloc(int nbucket //!< initial number of buckets 7 ); 8 void psHashFree(psHash *table, //!< hash table to be freed 9 void (*itemFree)(void *item) //!< how to free hashed data; or NULL 10 ); 10 11 11 void *psHashInsert(psHash *table, // table to insert in 12 const char *key, // key to use 13 void *data, // data to insert 14 void (*itemFree)(void *item)); // how to free hashed data; 15 // or NULL 16 void *psHashLookup(psHash *table, // table to lookup key in 17 const char *key); // key to lookup 12 void *psHashInsert(psHash *table, //!< table to insert in 13 const char *key, //!< key to use 14 void *data, //!< data to insert 15 void (*itemFree)(void *item) //!< how to free hashed data; or NULL 16 ); 17 void *psHashLookup(psHash *table, //!< table to lookup key in 18 const char *key //!< key to lookup 19 ); 18 20 19 void *psHashRemove(psHash *table, // table to lookup key in 20 const char *key); // key to lookup 21 void *psHashRemove(psHash *table, //!< table to lookup key in 22 const char *key //!< key to lookup 23 ); 24 25 21 26 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
