diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-02-07 18:29:02 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-07 18:29:02 +0300 |
commit | faf08954d572c84d42de074effbca02fee3b27df (patch) | |
tree | 6ac39f299e87cbd6794bb833015301fd190bfd37 /source/blender/blenkernel/BKE_main_idmap.h | |
parent | f2df4e0076a29a32813f870741b0f89fcbf00eed (diff) |
Cleanup: Rename `BKE_library_idmap` file to `BKE_main_idmap`
Part of T72604:
> Proposal: BKE_library and BKE_main API naming: prefixes conventions
Diffstat (limited to 'source/blender/blenkernel/BKE_main_idmap.h')
-rw-r--r-- | source/blender/blenkernel/BKE_main_idmap.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_main_idmap.h b/source/blender/blenkernel/BKE_main_idmap.h new file mode 100644 index 00000000000..d95f32b162a --- /dev/null +++ b/source/blender/blenkernel/BKE_main_idmap.h @@ -0,0 +1,45 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +#ifndef __BKE_MAIN_IDMAP_H__ +#define __BKE_MAIN_IDMAP_H__ + +/** \file + * \ingroup bke + */ + +#include "BLI_compiler_attrs.h" + +struct ID; +struct IDNameLib_Map; +struct Main; + +struct IDNameLib_Map *BKE_main_idmap_create(struct Main *bmain, + const bool create_valid_ids_set, + struct Main *old_bmain) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1); +void BKE_main_idmap_destroy(struct IDNameLib_Map *id_typemap) ATTR_NONNULL(); +struct Main *BKE_main_idmap_main_get(struct IDNameLib_Map *id_typemap) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(); +struct ID *BKE_main_idmap_lookup(struct IDNameLib_Map *id_typemap, + short id_type, + const char *name, + const struct Library *lib) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1, 3); +struct ID *BKE_main_idmap_lookup_id(struct IDNameLib_Map *id_typemap, + const struct ID *id) ATTR_WARN_UNUSED_RESULT + ATTR_NONNULL(1, 2); + +#endif /* __BKE_MAIN_IDMAP_H__ */ |