11 long (*datahash
) (void *data
);
12 long (*keyhash
) (void *data
);
13 int (*datacmp
) (void *data
, void *key
);
18 struct hash
*hash_init(long (*datahash
) (void *data
),
19 long (*keyhash
) (void *data
),
20 int (*datacmp
) (void *data
, void *key
),
22 void hash_release(struct hash
*hash
);
24 void hash_put(struct hash
*hash
, void *value
);
25 void *hash_get(struct hash
*hash
, void *key
);
26 void hash_walk(struct hash
*hash
,
27 void (*walk
)(void *data
, void *arg
),
30 long str_hash(void *s
);