summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/id_table.h5
-rw-r--r--include/table.h9
2 files changed, 8 insertions, 6 deletions
diff --git a/include/id_table.h b/include/id_table.h
index 6d5d416..c49923e 100644
--- a/include/id_table.h
+++ b/include/id_table.h
@@ -5,6 +5,8 @@
#include <stdint.h>
#include <stddef.h>
+#include "compress.h"
+
typedef struct {
uint32_t *ids;
size_t num_ids;
@@ -17,4 +19,7 @@ void id_table_cleanup(id_table_t *tbl);
int id_table_id_to_index(id_table_t *tbl, uint32_t id, uint16_t *out);
+int id_table_write(id_table_t *tbl, int outfd, sqfs_super_t *super,
+ compressor_t *cmp);
+
#endif /* ID_TABLE_H */
diff --git a/include/table.h b/include/table.h
index 5a39797..3eb5655 100644
--- a/include/table.h
+++ b/include/table.h
@@ -8,11 +8,8 @@
#include <stdint.h>
#include <stddef.h>
-int sqfs_write_fragment_table(int outfd, sqfs_super_t *super,
- sqfs_fragment_t *fragments, size_t count,
- compressor_t *cmp);
-
-int sqfs_write_ids(int outfd, sqfs_super_t *super, uint32_t *id_tbl,
- size_t count, compressor_t *cmp);
+int sqfs_write_table(int outfd, sqfs_super_t *super, const void *data,
+ size_t entsize, size_t count, uint64_t *startblock,
+ compressor_t *cmp);
#endif /* TABLE_H */