#include "keyval.h"
|
|
|
|
|
|
|
|
extern void *dictionary_not_found;
|
|
|
|
typedef struct dictionary {
|
|
keyval **pairs;
|
|
size_t length;
|
|
} dictionary;
|
|
|
|
|
|
dictionary *dictionary_new(void);
|
|
dictionary *dictionary_copy(dictionary *in);
|
|
void dictionary_free(dictionary *in);
|
|
void dictionary_add(dictionary *in, char *key, void *value);
|
|
void *dictionary_find(const dictionary *in, const char *key);
|