diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-21 10:16:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-21 10:16:14 +0300 |
commit | 5fef3c3326dabbe5330647208212ce7ceb311168 (patch) | |
tree | 3d7d2e4aa76e12faeef3c4aef7df864a19f0b7f4 /source/blender/blenlib/BLI_fileops.h | |
parent | 46af314bd96a9d1e267698df5c074dd4fc4cc6e2 (diff) |
BLI_storage: Split text/binary version of mem-from-file funcs
Fix T47022, caused by own commit de0119d08
Diffstat (limited to 'source/blender/blenlib/BLI_fileops.h')
-rw-r--r-- | source/blender/blenlib/BLI_fileops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_fileops.h b/source/blender/blenlib/BLI_fileops.h index b842c30c975..91d139c7085 100644 --- a/source/blender/blenlib/BLI_fileops.h +++ b/source/blender/blenlib/BLI_fileops.h @@ -130,7 +130,8 @@ bool BLI_file_older(const char *file1, const char *file2) ATTR_WARN_UNUSED_RES /* read ascii file as lines, empty list if reading fails */ struct LinkNode *BLI_file_read_as_lines(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); -void *BLI_file_read_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); +void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); +void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); void BLI_file_free_lines(struct LinkNode *lines); /* this weirdo pops up in two places ... */ |