]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/stringpool.h
Move all database format definition into format.h
[people/ms/libloc.git] / src / stringpool.h
index a07cd5ccdabc31a09e679e1bac7871ef8b397ce4..c3dffdd564e8ab89eedcc373de3b5fa8aa3caed0 100644 (file)
@@ -18,6 +18,7 @@
 #define LIBLOC_STRINGPOOL_H
 
 #include <stddef.h>
+#include <stdio.h>
 
 #include <loc/libloc.h>
 
@@ -27,7 +28,12 @@ struct loc_stringpool* loc_stringpool_ref(struct loc_stringpool* pool);
 struct loc_stringpool* loc_stringpool_unref(struct loc_stringpool* pool);
 
 const char* loc_stringpool_get(struct loc_stringpool* pool, off_t offset);
+size_t loc_stringpool_get_size(struct loc_stringpool* pool);
+
 off_t loc_stringpool_add(struct loc_stringpool* pool, const char* string);
 void loc_stringpool_dump(struct loc_stringpool* pool);
 
+int loc_stringpool_read(struct loc_stringpool* pool, FILE* f, off_t offset, size_t length);
+size_t loc_stringpool_write(struct loc_stringpool* pool, FILE* f);
+
 #endif