|
Blender
V2.59
|
Go to the source code of this file.
Defines | |
| #define | BPATH_USE_PACKED 1 |
Functions | |
| void | BLI_bpathIterator_init (struct BPathIterator **bpi, struct Main *bmain, const char *basedir, const int flag) |
| void | BLI_bpathIterator_free (struct BPathIterator *bpi) |
| const char * | BLI_bpathIterator_getLib (struct BPathIterator *bpi) |
| const char * | BLI_bpathIterator_getName (struct BPathIterator *bpi) |
| int | BLI_bpathIterator_getType (struct BPathIterator *bpi) |
| unsigned int | BLI_bpathIterator_getPathMaxLen (struct BPathIterator *bpi) |
| const char * | BLI_bpathIterator_getBasePath (struct BPathIterator *bpi) |
| void | BLI_bpathIterator_step (struct BPathIterator *bpi) |
| int | BLI_bpathIterator_isDone (struct BPathIterator *bpi) |
| void | BLI_bpathIterator_getPath (struct BPathIterator *bpi, char *path) |
| void | BLI_bpathIterator_getPathExpanded (struct BPathIterator *bpi, char *path_expanded) |
| void | BLI_bpathIterator_setPath (struct BPathIterator *bpi, const char *path) |
| void | checkMissingFiles (struct Main *bmain, struct ReportList *reports) |
| void | makeFilesRelative (struct Main *bmain, const char *basedir, struct ReportList *reports) |
| void | makeFilesAbsolute (struct Main *bmain, const char *basedir, struct ReportList *reports) |
| void | findMissingFiles (struct Main *bmain, const char *str) |
Definition in file BLI_bpath.h.
| #define BPATH_USE_PACKED 1 |
Definition at line 63 of file BLI_bpath.h.
Referenced by clean_paths(), ima_stepdata__internal(), snd_stepdata__internal(), and vf_stepdata__internal().
| void BLI_bpathIterator_free | ( | struct BPathIterator * | bpi | ) |
Definition at line 151 of file bpath.c.
References MEM_freeN(), NULL, BPathIteratorSeqData::scene, BPathIteratorSeqData::seqar, and BPathIterator::seqdata.
Referenced by bpy_blend_paths(), checkMissingFiles(), clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| const char* BLI_bpathIterator_getBasePath | ( | struct BPathIterator * | bpi | ) |
Definition at line 212 of file bpath.c.
References BPathIterator::base_path.
Referenced by bpy_blend_paths().
| const char* BLI_bpathIterator_getLib | ( | struct BPathIterator * | bpi | ) |
Definition at line 196 of file bpath.c.
References BPathIterator::_lib.
Referenced by BLI_bpathIterator_getPathExpanded(), bpy_blend_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| const char* BLI_bpathIterator_getName | ( | struct BPathIterator * | bpi | ) |
Definition at line 200 of file bpath.c.
References BPathIterator::_name.
Referenced by bpath_as_report().
| void BLI_bpathIterator_getPath | ( | struct BPathIterator * | bpi, |
| char * | path | ||
| ) |
Definition at line 161 of file bpath.c.
References BPathIterator::_path, and BPathIterator::getpath_callback.
Referenced by BLI_bpathIterator_getPathExpanded(), bpy_blend_paths(), clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| void BLI_bpathIterator_getPathExpanded | ( | struct BPathIterator * | bpi, |
| char * | path_expanded | ||
| ) |
Definition at line 181 of file bpath.c.
References BPathIterator::base_path, BLI_bpathIterator_getLib(), BLI_bpathIterator_getPath(), BLI_cleanup_file(), BLI_path_abs(), and NULL.
Referenced by bpath_as_report(), bpy_blend_paths(), checkMissingFiles(), findMissingFiles(), and makeFilesAbsolute().
| unsigned int BLI_bpathIterator_getPathMaxLen | ( | struct BPathIterator * | bpi | ) |
Definition at line 208 of file bpath.c.
References BPathIterator::len.
Referenced by findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| int BLI_bpathIterator_getType | ( | struct BPathIterator * | bpi | ) |
Definition at line 204 of file bpath.c.
References BPathIterator::type.
Referenced by bpath_as_report().
| void BLI_bpathIterator_init | ( | struct BPathIterator ** | bpi, |
| struct Main * | bmain, | ||
| const char * | basedir, | ||
| const int | flag | ||
| ) |
Definition at line 117 of file bpath.c.
References BPathIterator::base_path, BLI_bpathIterator_step(), BPathIterator::bmain, BPATH_IMAGE, BPathIterator::data, BPathIterator::flag, BPathIterator::getpath_callback, MEM_mallocN(), NULL, BPathIteratorSeqData::scene, BPathIteratorSeqData::seq, BPathIteratorSeqData::seqar, BPathIterator::seqdata, BPathIterator::setpath_callback, BPathIteratorSeqData::totseq, and BPathIterator::type.
Referenced by bpy_blend_paths(), checkMissingFiles(), clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| int BLI_bpathIterator_isDone | ( | struct BPathIterator * | bpi | ) |
Definition at line 647 of file bpath.c.
References BPATH_DONE, and BPathIterator::type.
Referenced by bpy_blend_paths(), checkMissingFiles(), clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| void BLI_bpathIterator_setPath | ( | struct BPathIterator * | bpi, |
| const char * | path | ||
| ) |
Definition at line 171 of file bpath.c.
References BPathIterator::_path, and BPathIterator::setpath_callback.
Referenced by clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| void BLI_bpathIterator_step | ( | struct BPathIterator * | bpi | ) |
Definition at line 475 of file bpath.c.
References BPathIterator::_lib, BPathIterator::_name, BPathIterator::_path, assert, BPathIterator::bmain, BPATH_CDATA, BPATH_DONE, BPATH_FONT, BPATH_IMAGE, BPATH_LIB, BPATH_SEQ, BPATH_SOUND, BPATH_TEXT, BPATH_TEXTURE, bpi_type_step__internal(), cdata_stepdata__internal(), BPathIterator::data, Strip::dir, CustomData::external, Mesh::fdata, FILE_MAX, CustomDataExternal::filename, Library::filepath, ListBase::first, BPathIterator::flag, VFont::id, bSound::id, Mesh::id, Text::id, Image::id, Tex::id, ima_stepdata__internal(), Main::image, BPathIterator::len, ID::lib, Main::library, Main::mesh, VFont::name, StripElem::name, bSound::name, Image::name, PluginSeq::name, ID::name, Library::name, Sequence::name, NULL, Sequence::plugin, seq_stepdata__internal(), snd_stepdata__internal(), Main::sound, VoxelData::source_path, Sequence::strip, Strip::stripdata, Main::tex, tex_stepdata__internal(), TEX_VOXELDATA, Main::text, text_stepdata__internal(), BPathIterator::type, Tex::type, Tex::vd, vf_stepdata__internal(), and Main::vfont.
Referenced by BLI_bpathIterator_init(), bpy_blend_paths(), checkMissingFiles(), clean_paths(), findMissingFiles(), makeFilesAbsolute(), and makeFilesRelative().
| void checkMissingFiles | ( | struct Main * | bmain, |
| struct ReportList * | reports | ||
| ) |
Definition at line 702 of file bpath.c.
References BLI_bpathIterator_free(), BLI_bpathIterator_getPathExpanded(), BLI_bpathIterator_init(), BLI_bpathIterator_isDone(), BLI_bpathIterator_step(), BLI_exists(), bpath_as_report(), FILE_MAXDIR, and Main::name.
Referenced by report_missing_files_exec().
| void findMissingFiles | ( | struct Main * | bmain, |
| const char * | str | ||
| ) |
Definition at line 889 of file bpath.c.
References BPathIterator::base_path, BLI_bpathIterator_free(), BLI_bpathIterator_getLib(), BLI_bpathIterator_getPath(), BLI_bpathIterator_getPathExpanded(), BLI_bpathIterator_getPathMaxLen(), BLI_bpathIterator_init(), BLI_bpathIterator_isDone(), BLI_bpathIterator_setPath(), BLI_bpathIterator_step(), BLI_exists(), BLI_path_basename(), BLI_path_rel(), BLI_split_dirfile(), FILE_MAX, FILE_MAXDIR, findFileRecursive(), G, Main::name, NULL, and Global::relbase_valid.
Referenced by find_missing_files_exec().
| void makeFilesAbsolute | ( | struct Main * | bmain, |
| const char * | basedir, | ||
| struct ReportList * | reports | ||
| ) |
Definition at line 778 of file bpath.c.
References BPathIterator::base_path, BKE_reportf(), BLI_bpathIterator_free(), BLI_bpathIterator_getLib(), BLI_bpathIterator_getPath(), BLI_bpathIterator_getPathExpanded(), BLI_bpathIterator_getPathMaxLen(), BLI_bpathIterator_init(), BLI_bpathIterator_isDone(), BLI_bpathIterator_setPath(), BLI_bpathIterator_step(), BLI_cleanup_file(), bpath_as_report(), FILE_MAX, FILE_MAXDIR, FILE_MAXFILE, RPT_ERROR, and RPT_INFO.
Referenced by BLO_write_file(), and make_paths_absolute_exec().
| void makeFilesRelative | ( | struct Main * | bmain, |
| const char * | basedir, | ||
| struct ReportList * | reports | ||
| ) |
Definition at line 721 of file bpath.c.
References BPathIterator::base_path, BKE_reportf(), BLI_bpathIterator_free(), BLI_bpathIterator_getLib(), BLI_bpathIterator_getPath(), BLI_bpathIterator_getPathMaxLen(), BLI_bpathIterator_init(), BLI_bpathIterator_isDone(), BLI_bpathIterator_setPath(), BLI_bpathIterator_step(), BLI_cleanup_file(), BLI_path_rel(), BLI_strncpy(), bpath_as_report(), FILE_MAX, FILE_MAXDIR, FILE_MAXFILE, RPT_ERROR, and RPT_INFO.
Referenced by BLO_write_file(), and make_paths_relative_exec().