Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-09-13 15:13:58 +0300
committerJeroen Bakker <jeroen@blender.org>2021-09-13 15:13:58 +0300
commit4b06420e65040c642d2b0a7a1c9bf7515d3cec0c (patch)
tree6c8ac7246c72a1f37d023b7c5eafcec4d1e23959 /source/blender/blenkernel/BKE_packedFile.h
parent603ae580ce557eb62cb323302dfcc0be265e7ea7 (diff)
Cleanup: Packedfile don't repeat yourself.
Introduced `BKE_packedfile_unpack` that is called from the specialized implementation for Image, Sound, Font, Volume etc. This is in preparation for T91252.
Diffstat (limited to 'source/blender/blenkernel/BKE_packedFile.h')
-rw-r--r--source/blender/blenkernel/BKE_packedFile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_packedFile.h b/source/blender/blenkernel/BKE_packedFile.h
index c45a0bc857d..9b66c6003d7 100644
--- a/source/blender/blenkernel/BKE_packedFile.h
+++ b/source/blender/blenkernel/BKE_packedFile.h
@@ -74,6 +74,12 @@ char *BKE_packedfile_unpack_to_file(struct ReportList *reports,
const char *local_name,
struct PackedFile *pf,
enum ePF_FileStatus how);
+char *BKE_packedfile_unpack(struct Main *bmain,
+ struct ReportList *reports,
+ struct ID *id,
+ const char *orig_file_name,
+ struct PackedFile *pf,
+ enum ePF_FileStatus how);
int BKE_packedfile_unpack_vfont(struct Main *bmain,
struct ReportList *reports,
struct VFont *vfont,