16 lines
390 B
C
16 lines
390 B
C
#ifndef DICTIONARY_H
|
|
#define DICTIONARY_H
|
|
|
|
typedef struct {
|
|
const char* Key;
|
|
void* Value;
|
|
} KeyValPair;
|
|
|
|
typedef struct _dictionary Dictionary;
|
|
|
|
Dictionary* DictionaryCreate(void);
|
|
KeyValPair* KeyValPairCreate(const char* key, void* value);
|
|
int DictionaryAdd(Dictionary* dict, const char* key, void* value);
|
|
void* DictionaryGetValue(const Dictionary* dict, const char* key);
|
|
|
|
#endif |