Blender V5.0
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
10struct ListBase;
11struct bAddon;
12
13#ifdef __RNA_TYPES_H__
14typedef struct bAddonPrefType {
16 char idname[128];
17
18 /* RNA integration */
19 ExtensionRNA rna_ext;
21
22#else
24#endif
25
26bAddonPrefType *BKE_addon_pref_type_find(const char *idname, bool quiet);
29
32
33struct bAddon *BKE_addon_new(void);
34struct bAddon *BKE_addon_find(const struct ListBase *addon_list, const char *module);
35struct bAddon *BKE_addon_ensure(struct ListBase *addon_list, const char *module);
36bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module);
37void BKE_addon_free(struct bAddon *addon);
struct bAddon * BKE_addon_ensure(struct ListBase *addon_list, const char *module)
Definition addon.cc:45
struct bAddonPrefType bAddonPrefType
Definition BKE_addon.h:23
void BKE_addon_pref_type_free(void)
Definition addon.cc:123
void BKE_addon_pref_type_add(bAddonPrefType *apt)
Definition addon.cc:107
struct bAddon * BKE_addon_new(void)
Definition addon.cc:34
bAddonPrefType * BKE_addon_pref_type_find(const char *idname, bool quiet)
Definition addon.cc:84
void BKE_addon_pref_type_init(void)
Definition addon.cc:117
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:112
void BKE_addon_free(struct bAddon *addon)
Definition addon.cc:68
bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module)
Definition addon.cc:56
static struct PyModuleDef module
Definition python.cpp:796