Blender V4.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
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct ListBase;
15struct bAddon;
16
17#ifdef __RNA_TYPES_H__
18typedef struct bAddonPrefType {
20 char idname[128];
21
22 /* RNA integration */
23 ExtensionRNA rna_ext;
25
26#else
28#endif
29
30bAddonPrefType *BKE_addon_pref_type_find(const char *idname, bool quiet);
33
36
37struct bAddon *BKE_addon_new(void);
38struct bAddon *BKE_addon_find(const struct ListBase *addon_list, const char *module);
39struct bAddon *BKE_addon_ensure(struct ListBase *addon_list, const char *module);
40bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module);
41void BKE_addon_free(struct bAddon *addon);
42
43#ifdef __cplusplus
44}
45#endif
struct bAddon * BKE_addon_ensure(struct ListBase *addon_list, const char *module)
Definition addon.cc:46
struct bAddonPrefType bAddonPrefType
Definition BKE_addon.h:27
void BKE_addon_pref_type_free(void)
Definition addon.cc:124
void BKE_addon_pref_type_add(bAddonPrefType *apt)
Definition addon.cc:108
struct bAddon * BKE_addon_new(void)
Definition addon.cc:35
bAddonPrefType * BKE_addon_pref_type_find(const char *idname, bool quiet)
Definition addon.cc:85
void BKE_addon_pref_type_init(void)
Definition addon.cc:118
struct bAddon * BKE_addon_find(const struct ListBase *addon_list, const char *module)
void BKE_addon_pref_type_remove(const bAddonPrefType *apt)
Definition addon.cc:113
void BKE_addon_free(struct bAddon *addon)
Definition addon.cc:69
bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module)
Definition addon.cc:57
static struct PyModuleDef module
Definition python.cpp:991