1 | #ifndef _RP_HASH_HELPER_H |
---|
2 | #define _RP_HASH_HELPER_H 1 |
---|
3 | |
---|
4 | #include "RpInt.h" |
---|
5 | #include "RpHash.h" |
---|
6 | |
---|
7 | #ifdef __cplusplus |
---|
8 | extern "C" { |
---|
9 | #endif |
---|
10 | |
---|
11 | |
---|
12 | int Rp_HashPrint ( Rp_HashTable *h); |
---|
13 | |
---|
14 | int Rp_HashAddNode ( Rp_HashTable *h, const char *key, const void *n); |
---|
15 | |
---|
16 | int Rp_HashUnion ( Rp_HashTable *hRslt, |
---|
17 | Rp_HashTable *h1, |
---|
18 | Rp_HashTable *h2, |
---|
19 | int (*cpyFxn)(void **to, void *from), |
---|
20 | int (*cmpFxn) (void *he1, void *he2)); |
---|
21 | |
---|
22 | int Rp_HashSubrtact ( Rp_HashTable *hRslt, |
---|
23 | Rp_HashTable *h1, |
---|
24 | Rp_HashTable *h2, |
---|
25 | int (*cpyFxn)(void **to, void *from), |
---|
26 | int (*cmpFxn)(void *he1, void *he2)); |
---|
27 | |
---|
28 | int Rp_HashCompare ( Rp_HashTable *h1, |
---|
29 | Rp_HashTable *h2, |
---|
30 | int (*cmpFxn)(void *n1,void *n2)); |
---|
31 | |
---|
32 | int Rp_HashCopy ( Rp_HashTable *h1, |
---|
33 | Rp_HashTable *h2, |
---|
34 | int (*cpyFxn)(void **to,void *from)); |
---|
35 | |
---|
36 | void *Rp_HashSearchNode ( Rp_HashTable *h, const char *key); |
---|
37 | |
---|
38 | void *Rp_HashRemoveNode ( Rp_HashTable *h, const char *key); |
---|
39 | |
---|
40 | int charCpyFxn(void **to, void *from); |
---|
41 | int charCmpFxn( void *to, void *from); |
---|
42 | |
---|
43 | #ifdef __cplusplus |
---|
44 | } |
---|
45 | #endif |
---|
46 | |
---|
47 | #endif // _RP_HASH_HELPER_H |
---|