feat: add fpk_writer_add_dir for library-level directory packing

This commit is contained in:
anth64 committed 2026-09-16 22:09:03 +02:00
1 parent cea82dfe50
commit a97b71fea9
3 files changed
+296 -1

No files matched your search

+4
View File
@@ -56,6 +56,10 @@ int fpk_writer_add(struct fpk_writer *w, const char *path, const void *data,
int fpk_writer_finalize(struct fpk_writer *w);
void fpk_writer_close(struct fpk_writer *w);
typedef int (*fpk_add_dir_cb)(const char *path, uint64_t size, void *ctx);
int fpk_writer_add_dir(struct fpk_writer *w, const char *dir_path,
fpk_add_dir_cb on_add, void *ctx);
#ifdef __cplusplus
}
#endif