Implemented the ObjectStore functionality.

This commit is contained in:
abdelrahman committed 2022-09-19 23:44:31 +01:00
1 parent 20f476c4ab
commit a0e76bc1fc
4 files changed
+259 -21

No files matched your search

+11 -1
View File
@@ -1,13 +1,23 @@
#ifndef HASHMAP_H
#define HASHMAP_H
#include "engine_build_config.h"
#include <stddef.h>
#include <stdint.h>
#ifdef DEBUG_ENGINE
#include <stdio.h>
#endif /* DEBUG_ENGINE */
void init_hashmap();
int32_t add_object_to_map(const char *key);
int32_t get_object_index(const char *key);
void delete_object_from_map(const char *key);
int32_t delete_object_from_map(const char *key);
void destroy_hashmap();
#ifdef DEBUG_ENGINE
void print_hashmap();
void print_non_empty();
#endif // DEBUG_ENGINE
#endif // !HASHMAP_H