feat: add fpk_writer_add_dir for library-level directory packing
This commit is contained in:
1 parent
cea82dfe50
commit
a97b71fea9
3 files changed
+296
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user