Blender  V3.3
BKE_addon.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 struct ListBase;
13 struct bAddon;
14 
15 #ifdef __RNA_TYPES_H__
16 typedef struct bAddonPrefType {
17  /* type info */
18  char idname[64]; /* best keep the same size as #BKE_ST_MAXNAME */
19 
20  /* RNA integration */
21  ExtensionRNA rna_ext;
23 
24 #else
25 typedef struct bAddonPrefType bAddonPrefType;
26 #endif
27 
28 bAddonPrefType *BKE_addon_pref_type_find(const char *idname, bool quiet);
31 
32 void BKE_addon_pref_type_init(void);
33 void BKE_addon_pref_type_free(void);
34 
35 struct bAddon *BKE_addon_new(void);
36 struct bAddon *BKE_addon_find(struct ListBase *addon_list, const char *module);
37 struct bAddon *BKE_addon_ensure(struct ListBase *addon_list, const char *module);
38 bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module);
39 void BKE_addon_free(struct bAddon *addon);
40 
41 #ifdef __cplusplus
42 }
43 #endif
bAddonPrefType * BKE_addon_pref_type_find(const char *idname, bool quiet)
Definition: addon.c:82
struct bAddonPrefType bAddonPrefType
Definition: BKE_addon.h:25
void BKE_addon_pref_type_free(void)
Definition: addon.c:121
void BKE_addon_pref_type_add(bAddonPrefType *apt)
Definition: addon.c:105
void BKE_addon_pref_type_init(void)
Definition: addon.c:115
struct bAddon * BKE_addon_new(void)
Definition: addon.c:33
struct bAddon * BKE_addon_find(struct ListBase *addon_list, const char *module)
Definition: addon.c:39
void BKE_addon_pref_type_remove(const bAddonPrefType *apt)
Definition: addon.c:110
void BKE_addon_free(struct bAddon *addon)
Definition: addon.c:66
struct bAddon * BKE_addon_ensure(struct ListBase *addon_list, const char *module)
Definition: addon.c:44
bool BKE_addon_remove_safe(struct ListBase *addon_list, const char *module)
Definition: addon.c:55
static struct PyModuleDef module
Definition: python.cpp:972