Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/BLO_readfile.h
| Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | |||||
| /***/ | /***/ | ||||
| #define BLO_GROUP_MAX 32 | #define BLO_GROUP_MAX 32 | ||||
| bool BLO_has_bfile_extension(const char *str); | bool BLO_has_bfile_extension(const char *str); | ||||
| /** | /** | ||||
| * return ok when a blenderfile, in dir is the filename, | * \param path the full path to explode. | ||||
| * in group the type of libdata | * \param r_dir the string that'll contain path up to blend file itself ('library' path). | ||||
| * \param r_group the string that'll contain 'group' part of the path, if any. May be NULL. | |||||
| * \param r_name the string that'll contain data's name part of the path, if any. May be NULL. | |||||
| * \return true if path contains a blend file. | |||||
| */ | */ | ||||
| bool BLO_is_a_library(const char *path, char *dir, char *group); | bool BLO_library_path_explode(const char *path, char *r_dir, char **r_group, char **r_name); | ||||
| /** | /** | ||||
| * Initialize the BlendHandle for appending or linking library data. | * Initialize the BlendHandle for appending or linking library data. | ||||
| * | * | ||||
| * \param mainvar The current main database eg G.main or CTX_data_main(C). | * \param mainvar The current main database eg G.main or CTX_data_main(C). | ||||
| * \param bh A blender file handle as returned by BLO_blendhandle_from_file or BLO_blendhandle_from_memory. | * \param bh A blender file handle as returned by BLO_blendhandle_from_file or BLO_blendhandle_from_memory. | ||||
| * \param filepath Used for relative linking, copied to the lib->name | * \param filepath Used for relative linking, copied to the lib->name | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||