]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Add pointers to reference counting routines to hash table definition.
authorTed Lemon <source@isc.org>
Mon, 6 Mar 2000 23:26:47 +0000 (23:26 +0000)
committerTed Lemon <source@isc.org>
Mon, 6 Mar 2000 23:26:47 +0000 (23:26 +0000)
- Use void * instead of unsigned char * for pointers to hashed objects.

includes/hash.h

index ce4ac47c4950eedf18b0fe4fae80584357129243..c4b063559c2bedeb69c785ac903feb3050b2abf0 100644 (file)
 
 #define DEFAULT_HASH_SIZE      97
 
+typedef int (*hash_reference) (void *, void *, const char *, int);
+typedef int (*hash_dereference) (void *, const char *, int);
+
 struct hash_bucket {
        struct hash_bucket *next;
        const unsigned char *name;
        unsigned len;
-       unsigned char *value;
+       void *value;
 };
 
 struct hash_table {
        unsigned hash_count;
        struct hash_bucket *buckets [DEFAULT_HASH_SIZE];
+       hash_reference referencer;
+       hash_dereference dereferencer;
 };
 
 struct named_hash {