28 lines
336 B
C
28 lines
336 B
C
/* hash.h */
|
|
|
|
|
|
|
|
#ifndef _HASH_H
|
|
# define _HASH_H
|
|
|
|
# include "array.h"
|
|
|
|
|
|
/* Hash */
|
|
/* types */
|
|
typedef Array Hash;
|
|
|
|
|
|
/* functions */
|
|
/* hash */
|
|
Hash * hash_new(void);
|
|
void hash_delete(Hash * h);
|
|
|
|
|
|
/* useful */
|
|
void * hash_get(Hash * h, char const * name);
|
|
int hash_set(Hash * h, char const * name, void * data);
|
|
|
|
|
|
#endif /* !_HASH_H */
|