Xext: hashtable.h: unexport functions not used by drivers
This header isn't part of SDK and no external module using those functions, so no need to keep them exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
8060c995f5
commit
2be400cd99
|
@ -51,7 +51,7 @@ typedef struct {
|
||||||
@param[in] cdata Opaque data that will be passed to hash and
|
@param[in] cdata Opaque data that will be passed to hash and
|
||||||
comparison functions
|
comparison functions
|
||||||
*/
|
*/
|
||||||
extern _X_EXPORT HashTable ht_create(int keySize,
|
HashTable ht_create(int keySize,
|
||||||
int dataSize,
|
int dataSize,
|
||||||
HashFunc hash,
|
HashFunc hash,
|
||||||
HashCompareFunc compare,
|
HashCompareFunc compare,
|
||||||
|
@ -59,7 +59,7 @@ extern _X_EXPORT HashTable ht_create(int keySize,
|
||||||
/** @brief HtDestruct deinitializes the structure. It does not free the
|
/** @brief HtDestruct deinitializes the structure. It does not free the
|
||||||
memory allocated to HashTableRec
|
memory allocated to HashTableRec
|
||||||
*/
|
*/
|
||||||
extern _X_EXPORT void ht_destroy(HashTable ht);
|
void ht_destroy(HashTable ht);
|
||||||
|
|
||||||
/** @brief Adds a new key to the hash table. The key will be copied
|
/** @brief Adds a new key to the hash table. The key will be copied
|
||||||
and a pointer to the value will be returned. The data will
|
and a pointer to the value will be returned. The data will
|
||||||
|
@ -75,12 +75,12 @@ extern _X_EXPORT void ht_destroy(HashTable ht);
|
||||||
to avoid returning NULL. Obviously the data pointed cannot be
|
to avoid returning NULL. Obviously the data pointed cannot be
|
||||||
modified, as implied by dataSize being 0.
|
modified, as implied by dataSize being 0.
|
||||||
*/
|
*/
|
||||||
extern _X_EXPORT void *ht_add(HashTable ht, const void *key);
|
void *ht_add(HashTable ht, const void *key);
|
||||||
|
|
||||||
/** @brief Removes a key from the hash table along with its
|
/** @brief Removes a key from the hash table along with its
|
||||||
associated data, which will be free'd.
|
associated data, which will be free'd.
|
||||||
*/
|
*/
|
||||||
extern _X_EXPORT void ht_remove(HashTable ht, const void *key);
|
void ht_remove(HashTable ht, const void *key);
|
||||||
|
|
||||||
/** @brief Finds the associated data of a key from the hash table.
|
/** @brief Finds the associated data of a key from the hash table.
|
||||||
|
|
||||||
|
@ -93,27 +93,27 @@ extern _X_EXPORT void ht_remove(HashTable ht, const void *key);
|
||||||
use HtMember instead to determine if a key has been
|
use HtMember instead to determine if a key has been
|
||||||
inserted.
|
inserted.
|
||||||
*/
|
*/
|
||||||
extern _X_EXPORT void *ht_find(HashTable ht, const void *key);
|
void *ht_find(HashTable ht, const void *key);
|
||||||
|
|
||||||
/** @brief A generic hash function */
|
/** @brief A generic hash function */
|
||||||
extern _X_EXPORT unsigned ht_generic_hash(void *cdata,
|
unsigned ht_generic_hash(void *cdata,
|
||||||
const void *ptr,
|
const void *ptr,
|
||||||
int numBits);
|
int numBits);
|
||||||
|
|
||||||
/** @brief A generic comparison function. It compares data byte-wise. */
|
/** @brief A generic comparison function. It compares data byte-wise. */
|
||||||
extern _X_EXPORT int ht_generic_compare(void *cdata,
|
int ht_generic_compare(void *cdata,
|
||||||
const void *l,
|
const void *l,
|
||||||
const void *r);
|
const void *r);
|
||||||
|
|
||||||
/** @brief A debugging function that dumps the distribution of the
|
/** @brief A debugging function that dumps the distribution of the
|
||||||
hash table: for each bucket, list the number of elements
|
hash table: for each bucket, list the number of elements
|
||||||
contained within. */
|
contained within. */
|
||||||
extern _X_EXPORT void ht_dump_distribution(HashTable ht);
|
void ht_dump_distribution(HashTable ht);
|
||||||
|
|
||||||
/** @brief A debugging function that dumps the contents of the hash
|
/** @brief A debugging function that dumps the contents of the hash
|
||||||
table: for each bucket, list the elements contained
|
table: for each bucket, list the elements contained
|
||||||
within. */
|
within. */
|
||||||
extern _X_EXPORT void ht_dump_contents(HashTable ht,
|
void ht_dump_contents(HashTable ht,
|
||||||
void (*print_key)(void *opaque, void *key),
|
void (*print_key)(void *opaque, void *key),
|
||||||
void (*print_value)(void *opaque, void *value),
|
void (*print_value)(void *opaque, void *value),
|
||||||
void* opaque);
|
void* opaque);
|
||||||
|
@ -123,14 +123,14 @@ extern _X_EXPORT void ht_dump_contents(HashTable ht,
|
||||||
be NULL. It uses HashXID underneath, and should HashXID be
|
be NULL. It uses HashXID underneath, and should HashXID be
|
||||||
unable to hash the value, it switches into using the generic
|
unable to hash the value, it switches into using the generic
|
||||||
hash function. */
|
hash function. */
|
||||||
extern _X_EXPORT unsigned ht_resourceid_hash(void *cdata,
|
unsigned ht_resourceid_hash(void *cdata,
|
||||||
const void * data,
|
const void * data,
|
||||||
int numBits);
|
int numBits);
|
||||||
|
|
||||||
/** @brief A comparison function to be used for comparing resource
|
/** @brief A comparison function to be used for comparing resource
|
||||||
IDs when used with HashTables. It makes no use of cdata,
|
IDs when used with HashTables. It makes no use of cdata,
|
||||||
so that can be NULL. */
|
so that can be NULL. */
|
||||||
extern _X_EXPORT int ht_resourceid_compare(void *cdata,
|
int ht_resourceid_compare(void *cdata,
|
||||||
const void *a,
|
const void *a,
|
||||||
const void *b);
|
const void *b);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue