Blender  V2.59
Defines | Functions
BLI_bpath.h File Reference

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)

Detailed Description

Attention:
Based on ghash, difference is ghash is not a fixed size, so for BPath we dont need to malloc

Definition in file BLI_bpath.h.


Define Documentation

#define BPATH_USE_PACKED   1

Function Documentation

void BLI_bpathIterator_free ( struct BPathIterator bpi)
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)
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 
)
void BLI_bpathIterator_getPathExpanded ( struct BPathIterator bpi,
char *  path_expanded 
)
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 
)
int BLI_bpathIterator_isDone ( struct BPathIterator bpi)
void BLI_bpathIterator_setPath ( struct BPathIterator bpi,
const char *  path 
)
void BLI_bpathIterator_step ( struct BPathIterator bpi)
void checkMissingFiles ( struct Main bmain,
struct ReportList reports 
)
void findMissingFiles ( struct Main bmain,
const char *  str 
)
void makeFilesAbsolute ( struct Main bmain,
const char *  basedir,
struct ReportList reports 
)
void makeFilesRelative ( struct Main bmain,
const char *  basedir,
struct ReportList reports 
)