Blender V5.3
BKE_addon.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10#include "DNA_listBase.h"
11
12namespace blender {
13
14struct bAddon;
15
16#ifdef __RNA_TYPES_H__
17struct bAddonPrefType {
19 char idname[128];
20
21 /* RNA integration */
22 ExtensionRNA rna_ext;
23};
24
25#else
26struct bAddonPrefType;
27#endif
28
29bAddonPrefType *BKE_addon_pref_type_find(const char *idname, bool quiet);
30void BKE_addon_pref_type_add(bAddonPrefType *apt);
31void BKE_addon_pref_type_remove(const bAddonPrefType *apt);
32
35
36struct bAddon *BKE_addon_new();
37struct bAddon *BKE_addon_find(const ListBaseT<bAddon> *addon_list, const char *module);
38struct bAddon *BKE_addon_ensure(ListBaseT<bAddon> *addon_list, const char *module);
39bool BKE_addon_remove_safe(ListBaseT<bAddon> *addon_list, const char *module);
40void BKE_addon_free(struct bAddon *addon);
41
42} // namespace blender
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
struct bAddon * BKE_addon_ensure(ListBaseT< bAddon > *addon_list, const char *module)
Definition addon.cc:47
void BKE_addon_free(struct bAddon *addon)
Definition addon.cc:70
void BKE_addon_pref_type_add(bAddonPrefType *apt)
Definition addon.cc:109
void BKE_addon_pref_type_init()
Definition addon.cc:119
void BKE_addon_pref_type_free()
Definition addon.cc:125
bAddonPrefType * BKE_addon_pref_type_find(const char *idname, bool quiet)
Definition addon.cc:86
struct bAddon * BKE_addon_find(const ListBaseT< bAddon > *addon_list, const char *module)
Definition addon.cc:42
struct bAddon * BKE_addon_new()
Definition addon.cc:36
bool BKE_addon_remove_safe(ListBaseT< bAddon > *addon_list, const char *module)
Definition addon.cc:58
void BKE_addon_pref_type_remove(const bAddonPrefType *apt)
Definition addon.cc:114