feat: add fpk_writer_add_dir for library-level directory packing

This commit is contained in:
2026-09-16 22:09:03 +02:00
parent cea82dfe50
commit a97b71fea9
3 changed files with 296 additions and 1 deletions
+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