diff options
Diffstat (limited to 'source/blender/blenlib/BLI_bpath.h')
-rw-r--r-- | source/blender/blenlib/BLI_bpath.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/source/blender/blenlib/BLI_bpath.h b/source/blender/blenlib/BLI_bpath.h index 40bb66a2278..0f2f9346c83 100644 --- a/source/blender/blenlib/BLI_bpath.h +++ b/source/blender/blenlib/BLI_bpath.h @@ -29,6 +29,12 @@ /* Based on ghash, difference is ghash is not a fixed size, * so for BPath we dont need to malloc */ +struct BPathIteratorSeqData { + int totseq; + int seq; + struct Sequence **seqar; /* Sequence */ +}; + struct BPathIterator { char* path; char* lib; @@ -36,17 +42,25 @@ struct BPathIterator { void* data; int len; int type; + + void (*setpath_callback)(struct BPathIterator *, char *); + void (*getpath_callback)(struct BPathIterator *, char *); + + /* only for seq data */ + struct BPathIteratorSeqData seqdata; }; -void BLI_bpathIterator_init (struct BPathIterator *bpi); -char* BLI_bpathIterator_getPath (struct BPathIterator *bpi); -char* BLI_bpathIterator_getLib (struct BPathIterator *bpi); -char* BLI_bpathIterator_getName (struct BPathIterator *bpi); -int BLI_bpathIterator_getType (struct BPathIterator *bpi); -int BLI_bpathIterator_getPathMaxLen(struct BPathIterator *bpi); -void BLI_bpathIterator_step (struct BPathIterator *bpi); -int BLI_bpathIterator_isDone (struct BPathIterator *bpi); -void BLI_bpathIterator_copyPathExpanded( struct BPathIterator *bpi, char *path_expanded); +void BLI_bpathIterator_init (struct BPathIterator *bpi); +void BLI_bpathIterator_free (struct BPathIterator *bpi); +char* BLI_bpathIterator_getLib (struct BPathIterator *bpi); +char* BLI_bpathIterator_getName (struct BPathIterator *bpi); +int BLI_bpathIterator_getType (struct BPathIterator *bpi); +int BLI_bpathIterator_getPathMaxLen (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, char *path); /* high level funcs */ |