source: branches/blt4/src/objects/RpHashHelper.h @ 4988

Last change on this file since 4988 was 1386, checked in by dkearney, 15 years ago

adding a few object prototypes we can play with for future developement. the plot object is probably the most interesting. examples are located in examples/objects dirs

File size: 1.3 KB
Line 
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
8extern "C" {
9#endif
10
11
12int Rp_HashPrint        ( Rp_HashTable *h);
13
14int Rp_HashAddNode      ( Rp_HashTable *h, const char *key, const void *n);
15
16int 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
22int 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
28int Rp_HashCompare      ( Rp_HashTable *h1,
29                          Rp_HashTable *h2,
30                          int (*cmpFxn)(void *n1,void *n2));
31
32int Rp_HashCopy         ( Rp_HashTable *h1,
33                          Rp_HashTable *h2,
34                          int (*cpyFxn)(void **to,void *from));
35
36void *Rp_HashSearchNode ( Rp_HashTable *h, const char *key);
37
38void *Rp_HashRemoveNode ( Rp_HashTable *h, const char *key);
39
40int charCpyFxn(void **to, void *from);
41int charCmpFxn( void *to, void *from);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif // _RP_HASH_HELPER_H
Note: See TracBrowser for help on using the repository browser.