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:
Diffstat (limited to 'source/blender/blenloader/BLO_undofile.h')
-rw-r--r--source/blender/blenloader/BLO_undofile.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/source/blender/blenloader/BLO_undofile.h b/source/blender/blenloader/BLO_undofile.h
index 1b71081547a..0388b3f3520 100644
--- a/source/blender/blenloader/BLO_undofile.h
+++ b/source/blender/blenloader/BLO_undofile.h
@@ -28,36 +28,39 @@
struct Scene;
typedef struct {
- void *next, *prev;
- const char *buf;
- /** Size in bytes. */
- unsigned int size;
- /** When true, this chunk doesn't own the memory, it's shared with a previous #MemFileChunk */
- bool is_identical;
+ void *next, *prev;
+ const char *buf;
+ /** Size in bytes. */
+ unsigned int size;
+ /** When true, this chunk doesn't own the memory, it's shared with a previous #MemFileChunk */
+ bool is_identical;
} MemFileChunk;
typedef struct MemFile {
- ListBase chunks;
- size_t size;
+ ListBase chunks;
+ size_t size;
} MemFile;
typedef struct MemFileUndoData {
- char filename[1024]; /* FILE_MAX */
- MemFile memfile;
- size_t undo_size;
+ char filename[1024]; /* FILE_MAX */
+ MemFile memfile;
+ size_t undo_size;
} MemFileUndoData;
/* actually only used writefile.c */
-extern void memfile_chunk_add(
- MemFile *memfile, const char *buf, unsigned int size,
- MemFileChunk **compchunk_step);
+extern void memfile_chunk_add(MemFile *memfile,
+ const char *buf,
+ unsigned int size,
+ MemFileChunk **compchunk_step);
/* exports */
extern void BLO_memfile_free(MemFile *memfile);
extern void BLO_memfile_merge(MemFile *first, MemFile *second);
/* utilities */
-extern struct Main *BLO_memfile_main_get(struct MemFile *memfile, struct Main *bmain, struct Scene **r_scene);
+extern struct Main *BLO_memfile_main_get(struct MemFile *memfile,
+ struct Main *bmain,
+ struct Scene **r_scene);
extern bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename);
-#endif /* __BLO_UNDOFILE_H__ */
+#endif /* __BLO_UNDOFILE_H__ */