diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_idtype.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idtype.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idtype.h b/source/blender/blenkernel/BKE_idtype.h index 05441f06eb8..7a7f32fe838 100644 --- a/source/blender/blenkernel/BKE_idtype.h +++ b/source/blender/blenkernel/BKE_idtype.h @@ -35,6 +35,7 @@ struct BlendDataReader; struct BlendExpander; struct BlendLibReader; struct BlendWriter; +struct BPathForeachPathData; struct ID; struct LibraryForeachIDData; struct Main; @@ -100,6 +101,8 @@ typedef void (*IDTypeForeachCacheFunction)(struct ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data); +typedef void (*IDTypeForeachPathFunction)(struct ID *id, struct BPathForeachPathData *bpath_data); + typedef struct ID *(*IDTypeEmbeddedOwnerGetFunction)(struct Main *bmain, struct ID *id); typedef void (*IDTypeBlendWriteFunction)(struct BlendWriter *writer, @@ -190,6 +193,11 @@ typedef struct IDTypeInfo { IDTypeForeachCacheFunction foreach_cache; /** + * Iterator over all file paths of given ID. + */ + IDTypeForeachPathFunction foreach_path; + + /** * For embedded IDs, return their owner ID. */ IDTypeEmbeddedOwnerGetFunction owner_get; |