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:
authorCampbell Barton <ideasman42@gmail.com>2019-07-07 17:06:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-07 17:17:40 +0300
commit1357dd7d3cf2d0cb5c574fa518136a4654869493 (patch)
tree90da62d31f81cafc549e5ab224e1536c569297e7 /source/blender/blenkernel/BKE_packedFile.h
parent084d545202c27fda5117817491c8d5761b4daafc (diff)
Cleanup: move enum unto BKE_packedFile.h
Use enum type for functions arguments. Removed -1 check in switch statement, this isn't needed.
Diffstat (limited to 'source/blender/blenkernel/BKE_packedFile.h')
-rw-r--r--source/blender/blenkernel/BKE_packedFile.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_packedFile.h b/source/blender/blenkernel/BKE_packedFile.h
index 9eeb2ba076e..00a241c259a 100644
--- a/source/blender/blenkernel/BKE_packedFile.h
+++ b/source/blender/blenkernel/BKE_packedFile.h
@@ -33,6 +33,22 @@ struct ReportList;
struct VFont;
struct bSound;
+enum ePF_FileStatus {
+ PF_EQUAL = 0,
+ PF_DIFFERS = 1,
+ PF_NOFILE = 2,
+
+ PF_WRITE_ORIGINAL = 3,
+ PF_WRITE_LOCAL = 4,
+ PF_USE_LOCAL = 5,
+ PF_USE_ORIGINAL = 6,
+ PF_KEEP = 7,
+ PF_REMOVE = 8,
+ PF_NOOP = 9,
+
+ PF_ASK = 10,
+};
+
/* pack */
struct PackedFile *BKE_packedfile_duplicate(const struct PackedFile *pf_src);
struct PackedFile *BKE_packedfile_new(struct ReportList *reports,
@@ -49,20 +65,22 @@ char *BKE_packedfile_unpack_to_file(struct ReportList *reports,
const char *abs_name,
const char *local_name,
struct PackedFile *pf,
- int how);
+ enum ePF_FileStatus how);
int BKE_packedfile_unpack_vfont(struct Main *bmain,
struct ReportList *reports,
struct VFont *vfont,
- int how);
+ enum ePF_FileStatus how);
int BKE_packedfile_unpack_sound(struct Main *bmain,
struct ReportList *reports,
struct bSound *sound,
- int how);
+ enum ePF_FileStatus how);
int BKE_packedfile_unpack_image(struct Main *bmain,
struct ReportList *reports,
struct Image *ima,
- int how);
-void BKE_packedfile_unpack_all(struct Main *bmain, struct ReportList *reports, int how);
+ enum ePF_FileStatus how);
+void BKE_packedfile_unpack_all(struct Main *bmain,
+ struct ReportList *reports,
+ enum ePF_FileStatus how);
int BKE_packedfile_unpack_all_libraries(struct Main *bmain, struct ReportList *reports);
int BKE_packedfile_write_to_file(struct ReportList *reports,
@@ -91,6 +109,6 @@ bool BKE_packedfile_id_check(struct ID *id);
void BKE_packedfile_id_unpack(struct Main *bmain,
struct ID *id,
struct ReportList *reports,
- int how);
+ enum ePF_FileStatus how);
#endif