Added / started some infrastructure / boilerplate code.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user