diff options
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r-- | source/blender/blenloader/intern/readblenentry.c | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c index c0fdfa86907..f3c92aec338 100644 --- a/source/blender/blenloader/intern/readblenentry.c +++ b/source/blender/blenloader/intern/readblenentry.c @@ -61,13 +61,6 @@ void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp); /* Access routines used by filesel. */ -/** - * Open a blendhandle from a file path. - * - * \param filepath: The file path to open. - * \param reports: Report errors in opening the file (can be NULL). - * \return A handle on success, or NULL on failure. - */ BlendHandle *BLO_blendhandle_from_file(const char *filepath, BlendFileReadReport *reports) { BlendHandle *bh; @@ -77,13 +70,6 @@ BlendHandle *BLO_blendhandle_from_file(const char *filepath, BlendFileReadReport return bh; } -/** - * Open a blendhandle from memory. - * - * \param mem: The data to load from. - * \param memsize: The size of the data. - * \return A handle on success, or NULL on failure. - */ BlendHandle *BLO_blendhandle_from_memory(const void *mem, int memsize, BlendFileReadReport *reports) @@ -130,16 +116,6 @@ void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp) fprintf(fp, "]\n"); } -/** - * Gets the names of all the data-blocks in a file of a certain type - * (e.g. all the scene names in a file). - * - * \param bh: The blendhandle to access. - * \param ofblocktype: The type of names to get. - * \param tot_names: The length of the returned list. - * \param use_assets_only: Only list IDs marked as assets. - * \return A BLI_linklist of strings. The string links should be freed with #MEM_freeN(). - */ LinkNode *BLO_blendhandle_get_datablock_names(BlendHandle *bh, int ofblocktype, const bool use_assets_only, @@ -169,17 +145,6 @@ LinkNode *BLO_blendhandle_get_datablock_names(BlendHandle *bh, return names; } -/** - * Gets the names and asset-data (if ID is an asset) of data-blocks in a file of a certain type. - * The data-blocks can be limited to assets. - * - * \param bh: The blendhandle to access. - * \param ofblocktype: The type of names to get. - * \param use_assets_only: Limit the result to assets only. - * \param tot_info_items: The length of the returned list. - * \return A BLI_linklist of BLODataBlockInfo *. The links and #BLODataBlockInfo.asset_data should - * be freed with MEM_freeN. - */ LinkNode *BLO_blendhandle_get_datablock_info(BlendHandle *bh, int ofblocktype, const bool use_assets_only, @@ -267,15 +232,6 @@ static BHead *blo_blendhandle_read_preview_rects(FileData *fd, return bhead; } -/** - * Get the PreviewImage of a single data block in a file. - * (e.g. all the scene previews in a file). - * - * \param bh: The blendhandle to access. - * \param ofblocktype: The type of names to get. - * \param name: Name of the block without the ID_ prefix, to read the preview image from. - * \return PreviewImage or NULL when no preview Images have been found. Caller owns the returned - */ PreviewImage *BLO_blendhandle_get_preview_for_id(BlendHandle *bh, int ofblocktype, const char *name) @@ -315,15 +271,6 @@ PreviewImage *BLO_blendhandle_get_preview_for_id(BlendHandle *bh, return NULL; } -/** - * Gets the previews of all the data-blocks in a file of a certain type - * (e.g. all the scene previews in a file). - * - * \param bh: The blendhandle to access. - * \param ofblocktype: The type of names to get. - * \param r_tot_prev: The length of the returned list. - * \return A BLI_linklist of PreviewImage. The PreviewImage links should be freed with malloc. - */ LinkNode *BLO_blendhandle_get_previews(BlendHandle *bh, int ofblocktype, int *r_tot_prev) { FileData *fd = (FileData *)bh; @@ -384,13 +331,6 @@ LinkNode *BLO_blendhandle_get_previews(BlendHandle *bh, int ofblocktype, int *r_ return previews; } -/** - * Gets the names of all the linkable data-block types available in a file. - * (e.g. "Scene", "Mesh", "Light", etc.). - * - * \param bh: The blendhandle to access. - * \return A BLI_linklist of strings. The string links should be freed with #MEM_freeN(). - */ LinkNode *BLO_blendhandle_get_linkable_groups(BlendHandle *bh) { FileData *fd = (FileData *)bh; @@ -418,11 +358,6 @@ LinkNode *BLO_blendhandle_get_linkable_groups(BlendHandle *bh) return names; } -/** - * Close and free a blendhandle. The handle becomes invalid after this call. - * - * \param bh: The handle to close. - */ void BLO_blendhandle_close(BlendHandle *bh) { FileData *fd = (FileData *)bh; @@ -432,14 +367,6 @@ void BLO_blendhandle_close(BlendHandle *bh) /**********/ -/** - * Open a blender file from a pathname. The function returns NULL - * and sets a report in the list if it cannot open the file. - * - * \param filepath: The path of the file to open. - * \param reports: If the return value is NULL, errors indicating the cause of the failure. - * \return The data of the file. - */ BlendFileData *BLO_read_from_file(const char *filepath, eBLOReadSkip skip_flags, BlendFileReadReport *reports) @@ -457,15 +384,6 @@ BlendFileData *BLO_read_from_file(const char *filepath, return bfd; } -/** - * Open a blender file from memory. The function returns NULL - * and sets a report in the list if it cannot open the file. - * - * \param mem: The file data. - * \param memsize: The length of \a mem. - * \param reports: If the return value is NULL, errors indicating the cause of the failure. - * \return The data of the file. - */ BlendFileData *BLO_read_from_memory(const void *mem, int memsize, eBLOReadSkip skip_flags, @@ -485,14 +403,6 @@ BlendFileData *BLO_read_from_memory(const void *mem, return bfd; } -/** - * Used for undo/redo, skips part of libraries reading - * (assuming their data are already loaded & valid). - * - * \param oldmain: old main, - * from which we will keep libraries and other data-blocks that should not have changed. - * \param filename: current file, only for retrieving library data. - */ BlendFileData *BLO_read_from_memfile(Main *oldmain, const char *filename, MemFile *memfile, @@ -548,12 +458,6 @@ BlendFileData *BLO_read_from_memfile(Main *oldmain, return bfd; } -/** - * Frees a BlendFileData structure and *all* the data associated with it - * (the userdef data, and the main libblock data). - * - * \param bfd: The structure to free. - */ void BLO_blendfiledata_free(BlendFileData *bfd) { if (bfd->main) { |