Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_main_idmap.h
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| struct IDNameLib_Map *BKE_main_idmap_create(struct Main *bmain, | struct IDNameLib_Map *BKE_main_idmap_create(struct Main *bmain, | ||||
| const bool create_valid_ids_set, | const bool create_valid_ids_set, | ||||
| struct Main *old_bmain, | struct Main *old_bmain, | ||||
| const int idmap_types) ATTR_WARN_UNUSED_RESULT | const int idmap_types) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(1); | ATTR_NONNULL(1); | ||||
| void BKE_main_idmap_destroy(struct IDNameLib_Map *id_map) ATTR_NONNULL(); | void BKE_main_idmap_destroy(struct IDNameLib_Map *id_map) ATTR_NONNULL(); | ||||
| void BKE_main_idmap_insert_id(struct IDNameLib_Map *id_map, struct ID *id) ATTR_NONNULL(); | |||||
| void BKE_main_idmap_remove_id(struct IDNameLib_Map *id_map, struct ID *id) ATTR_NONNULL(); | |||||
| struct Main *BKE_main_idmap_main_get(struct IDNameLib_Map *id_map) ATTR_WARN_UNUSED_RESULT | struct Main *BKE_main_idmap_main_get(struct IDNameLib_Map *id_map) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(); | ATTR_NONNULL(); | ||||
| struct ID *BKE_main_idmap_lookup_name(struct IDNameLib_Map *id_map, | struct ID *BKE_main_idmap_lookup_name(struct IDNameLib_Map *id_map, | ||||
| short id_type, | short id_type, | ||||
| const char *name, | const char *name, | ||||
| const struct Library *lib) ATTR_WARN_UNUSED_RESULT | const struct Library *lib) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(1, 3); | ATTR_NONNULL(1, 3); | ||||
| struct ID *BKE_main_idmap_lookup_id(struct IDNameLib_Map *id_map, | struct ID *BKE_main_idmap_lookup_id(struct IDNameLib_Map *id_map, | ||||
| const struct ID *id) ATTR_WARN_UNUSED_RESULT | const struct ID *id) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(1, 2); | ATTR_NONNULL(1, 2); | ||||
| struct ID *BKE_main_idmap_lookup_uuid(struct IDNameLib_Map *id_map, | struct ID *BKE_main_idmap_lookup_uuid(struct IDNameLib_Map *id_map, | ||||
| const uint session_uuid) ATTR_WARN_UNUSED_RESULT | const uint session_uuid) ATTR_WARN_UNUSED_RESULT | ||||
| ATTR_NONNULL(1); | ATTR_NONNULL(1); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||