feat: add fpk_writer_add_dir for library-level directory packing
This commit is contained in:
@@ -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