Added / started some infrastructure / boilerplate code.

This commit is contained in:
2024-10-30 00:28:11 -05:00
parent 8923a2006d
commit 2c85077031
12 changed files with 273 additions and 27 deletions
+16
View File
@@ -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