Blender  V2.93
BKE_main_idmap.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 #pragma once
17 
32 #include "BLI_compiler_attrs.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 struct ID;
39 struct IDNameLib_Map;
40 struct Main;
41 
42 enum {
45 };
46 
48  const bool create_valid_ids_set,
49  struct Main *old_bmain,
51  ATTR_NONNULL(1);
54  ATTR_NONNULL();
56  short id_type,
57  const char *name,
58  const struct Library *lib) ATTR_WARN_UNUSED_RESULT
59  ATTR_NONNULL(1, 3);
61  const struct ID *id) ATTR_WARN_UNUSED_RESULT
62  ATTR_NONNULL(1, 2);
63 
66  ATTR_NONNULL(1);
67 
68 #ifdef __cplusplus
69 }
70 #endif
struct IDNameLib_Map * BKE_main_idmap_create(struct Main *bmain, const bool create_valid_ids_set, struct Main *old_bmain, const int idmap_types) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition: main_idmap.c:101
struct ID struct ID struct ID * BKE_main_idmap_lookup_uuid(struct IDNameLib_Map *id_map, const uint session_uuid) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition: main_idmap.c:222
void BKE_main_idmap_destroy(struct IDNameLib_Map *id_map) ATTR_NONNULL()
Definition: main_idmap.c:230
struct Main * BKE_main_idmap_main_get(struct IDNameLib_Map *id_map) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: main_idmap.c:151
struct ID * BKE_main_idmap_lookup_name(struct IDNameLib_Map *id_map, short id_type, const char *name, const struct Library *lib) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
struct ID struct ID * BKE_main_idmap_lookup_id(struct IDNameLib_Map *id_map, const struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
@ MAIN_IDMAP_TYPE_UUID
@ MAIN_IDMAP_TYPE_NAME
#define ATTR_NONNULL(...)
void BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() ATTR_WARN_UNUSED_RESULT
unsigned int uint
Definition: BLI_sys_types.h:83
DRWShaderLibrary * lib
struct Main * bmain
Definition: main_idmap.c:71
Definition: DNA_ID.h:273
unsigned int session_uuid
Definition: DNA_ID.h:312
char name[66]
Definition: DNA_ID.h:283
Definition: BKE_main.h:116