/usr/include/rxp/hash.h is in librxp-dev 1.5.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /*
* Copyright Richard Tobin 1995-9.
*/
#ifndef HASH_H
#define HASH_H
typedef struct hash_entry {
void *key;
int key_len;
void *value;
struct hash_entry *next;
} HashEntryStruct;
typedef HashEntryStruct *HashEntry;
typedef struct hash_table *HashTable;
HashTable create_hash_table(int init_size);
void free_hash_table(HashTable table);
HashEntry hash_find(HashTable table, const void *key, int key_len);
HashEntry hash_find_or_add(HashTable table, const void *key, int key_len, int *foundp);
void hash_remove(HashTable table, HashEntry entry);
void hash_map(HashTable table,
void (*function)(const HashEntryStruct *, void *), void *arg);
int hash_count(HashTable table);
#endif /* HASH_H */
|