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>2017-03-16 23:01:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-16 23:01:48 +0300
commitd4d8da28fce479d01d2910f4acc9e849621807d9 (patch)
tree5ac4c212ff24345047c38c3b1abd1c25f8bbbdcc /source/blender/blenkernel/BKE_blendfile.h
parentb2d3956e7b497bd6d5467113bfd76614f5188ae0 (diff)
Add BKE_blendfile_userdef_read_from_memory
Needed to read user-preferences from in-memory startup.blend Also skip data-blocks when reading preferences.
Diffstat (limited to 'source/blender/blenkernel/BKE_blendfile.h')
-rw-r--r--source/blender/blenkernel/BKE_blendfile.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_blendfile.h b/source/blender/blenkernel/BKE_blendfile.h
index 9625a93ed06..75978120051 100644
--- a/source/blender/blenkernel/BKE_blendfile.h
+++ b/source/blender/blenkernel/BKE_blendfile.h
@@ -51,8 +51,13 @@ bool BKE_blendfile_read_from_memfile(
struct bContext *C, struct MemFile *memfile,
struct ReportList *reports, int skip_flag);
-struct UserDef *BKE_blendfile_userdef_read(const char *filepath, struct ReportList *reports);
-int BKE_blendfile_userdef_write(const char *filepath, struct ReportList *reports);
+struct UserDef *BKE_blendfile_userdef_read(
+ const char *filepath, struct ReportList *reports);
+struct UserDef *BKE_blendfile_userdef_read_from_memory(
+ const void *filebuf, int filelength,
+ struct ReportList *reports);
+
+int BKE_blendfile_userdef_write(const char *filepath, struct ReportList *reports);
/* partial blend file writing */