diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
| commit | c3d23d3091c23978b12c140e6cfd964eff1d3986 (patch) | |
| tree | 3342a73aea427fa19d2b0936a98e37fbe479c85d /include/kpl/storage.h | |
| parent | 75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (diff) | |
Diffstat (limited to 'include/kpl/storage.h')
| -rw-r--r-- | include/kpl/storage.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/include/kpl/storage.h b/include/kpl/storage.h deleted file mode 100644 index 5b0e13a..0000000 --- a/include/kpl/storage.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * KPL Object storage - */ - -#pragma once - -/* - * Inner tree storage - * Keys will always be kpl_identifier - */ -typedef struct _kpl_storgae_object { - KPL_TREE_HEADER(_kpl_storgae_object); - kpl_type_base *type; - union { - kpl_class class; - kpl_function function; - }; - kpl_identifier identifier; -} kpl_stoage_object; - -// c_string_ptr used for tree search comparisons -#define KPL_STORAGE_HEADER(STRUCT_NAME) \ - KPL_TREE_HEADER(STRUCT_NAME); \ - bool import_ready; \ - kpl_tree object_tree; \ - const char *c_string_ptr - -/* - * Uses const c string keys - * The namespace is c_string_ptr - */ -typedef struct _kpl_storage_namespace { - KPL_STORAGE_HEADER(_kpl_storage_namespace); -} kpl_stoage_namespace; - -/* - * Alias used for string comparison functions - */ -typedef kpl_stoage_namespace kpl_stoage_search; - -/* - * Modules make a copy of absolute file path - * The c_string_ptr is pointed to this file path copy string - * This tree can only be accessed through a mutex - */ -typedef struct _kpl_storage_module { - KPL_STORAGE_HEADER(_kpl_storage_module); - char c_string_array[]; // null term, c_string_ptr points to this -} kpl_storage_module; |
