Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_idtype.h
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
| typedef void (*IDTypeForeachCacheFunctionCallback)(struct ID *id, | typedef void (*IDTypeForeachCacheFunctionCallback)(struct ID *id, | ||||
| const struct IDCacheKey *cache_key, | const struct IDCacheKey *cache_key, | ||||
| void **cache_p, | void **cache_p, | ||||
| uint flags, | uint flags, | ||||
| void *user_data); | void *user_data); | ||||
| typedef void (*IDTypeForeachCacheFunction)(struct ID *id, | typedef void (*IDTypeForeachCacheFunction)(struct ID *id, | ||||
| IDTypeForeachCacheFunctionCallback function_callback, | IDTypeForeachCacheFunctionCallback function_callback, | ||||
| void *user_data); | void *user_data); | ||||
| typedef void (*IDTypeForeachExternalFileFunctionCallback)( | |||||
| struct ID *id, | |||||
| char **external_file_path, | |||||
| size_t | |||||
| external_file_path_size, /* In case it is an array of chars, 0 if dynamically allocated. */ | |||||
| const bool is_mem_alloc, /* Set to true when dynamically allocated string. */ | |||||
| void *user_data); | |||||
| typedef void (*IDTypeForeachExternalFileFunction)( | |||||
| struct ID *id, IDTypeForeachExternalFileFunctionCallback function_callback, void *user_data); | |||||
| typedef struct ID *(*IDTypeEmbeddedOwnerGetFunction)(struct Main *bmain, struct ID *id); | typedef struct ID *(*IDTypeEmbeddedOwnerGetFunction)(struct Main *bmain, struct ID *id); | ||||
| typedef void (*IDTypeBlendWriteFunction)(struct BlendWriter *writer, | typedef void (*IDTypeBlendWriteFunction)(struct BlendWriter *writer, | ||||
| struct ID *id, | struct ID *id, | ||||
| const void *id_address); | const void *id_address); | ||||
| typedef void (*IDTypeBlendReadDataFunction)(struct BlendDataReader *reader, struct ID *id); | typedef void (*IDTypeBlendReadDataFunction)(struct BlendDataReader *reader, struct ID *id); | ||||
| typedef void (*IDTypeBlendReadLibFunction)(struct BlendLibReader *reader, struct ID *id); | typedef void (*IDTypeBlendReadLibFunction)(struct BlendLibReader *reader, struct ID *id); | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | typedef struct IDTypeInfo { | ||||
| IDTypeForeachIDFunction foreach_id; | IDTypeForeachIDFunction foreach_id; | ||||
| /** | /** | ||||
| * Iterator over all cache pointers of given ID. | * Iterator over all cache pointers of given ID. | ||||
| */ | */ | ||||
| IDTypeForeachCacheFunction foreach_cache; | IDTypeForeachCacheFunction foreach_cache; | ||||
| /** | /** | ||||
| * Iterate over external files of the given ID | |||||
| */ | |||||
| IDTypeForeachExternalFileFunction foreach_external_file; | |||||
| /** | |||||
| * For embedded IDs, return their owner ID. | * For embedded IDs, return their owner ID. | ||||
| */ | */ | ||||
| IDTypeEmbeddedOwnerGetFunction owner_get; | IDTypeEmbeddedOwnerGetFunction owner_get; | ||||
| /* ********** Callbacks for reading and writing .blend files. ********** */ | /* ********** Callbacks for reading and writing .blend files. ********** */ | ||||
| /** | /** | ||||
| * Write all structs that should be saved in a .blend file. | * Write all structs that should be saved in a .blend file. | ||||
| ▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines | |||||