diff options
Diffstat (limited to 'squarkdb.h')
-rw-r--r-- | squarkdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,9 @@ #include <stddef.h> #include <stdint.h> +#include "blob.h" + +#define SQDB_LENGTH_BITS 5 #define SQDB_SECTION_STRINGS 0 #define SQDB_SECTION_CATEGORIES 1 @@ -39,6 +42,7 @@ struct sqdb_index_entry { uint32_t component; }; + const char *sqdb_section_names[SQDB_SECTION_MAX]; int sqdb_create(struct sqdb *db, const char *fn); @@ -47,5 +51,6 @@ void sqdb_close(struct sqdb *db); void *sqdb_section_create(struct sqdb *db, int id, uint32_t size); void *sqdb_section_get(struct sqdb *db, int id, uint32_t *size); +blob_t sqdb_get_string_literal(struct sqdb *db, uint32_t encoded_ptr); #endif |