Blender
V3.3
|
#include <stddef.h>
#include <stdlib.h>
#include "RNA_types.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BKE_addon.h"
#include "BKE_idprop.h"
#include "DNA_listBase.h"
#include "DNA_userdef_types.h"
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
Go to the source code of this file.
Functions | |
Add-on New/Free | |
bAddon * | BKE_addon_new (void) |
bAddon * | BKE_addon_find (ListBase *addon_list, const char *module) |
bAddon * | BKE_addon_ensure (ListBase *addon_list, const char *module) |
bool | BKE_addon_remove_safe (ListBase *addon_list, const char *module) |
void | BKE_addon_free (bAddon *addon) |
Variables | |
static CLG_LogRef | LOG = {"bke.addon"} |
Add-on Preference API | |
static GHash * | global_addonpreftype_hash = NULL |
bAddonPrefType * | BKE_addon_pref_type_find (const char *idname, bool quiet) |
void | BKE_addon_pref_type_add (bAddonPrefType *apt) |
void | BKE_addon_pref_type_remove (const bAddonPrefType *apt) |
void | BKE_addon_pref_type_init (void) |
void | BKE_addon_pref_type_free (void) |
Definition at line 44 of file addon.c.
References BKE_addon_find(), BKE_addon_new(), BLI_addtail(), BLI_strncpy(), module, bAddon::module, and NULL.
Referenced by blo_do_versions_userdef().
Definition at line 39 of file addon.c.
References BLI_findstring(), and module.
Referenced by BKE_addon_ensure(), and ui_popup_context_menu_for_button().
Definition at line 66 of file addon.c.
References IDP_FreeProperty(), MEM_freeN, and bAddon::prop.
Referenced by BKE_addon_remove_safe(), and userdef_free_addons().
Definition at line 33 of file addon.c.
References MEM_callocN.
Referenced by BKE_addon_ensure(), and BKE_blendfile_userdef_from_defaults().
void BKE_addon_pref_type_add | ( | bAddonPrefType * | apt | ) |
Definition at line 105 of file addon.c.
References BLI_ghash_insert(), and global_addonpreftype_hash.
bAddonPrefType* BKE_addon_pref_type_find | ( | const char * | idname, |
bool | quiet | ||
) |
Definition at line 82 of file addon.c.
References BLI_ghash_lookup(), CLOG_WARN, global_addonpreftype_hash, LOG, and NULL.
Definition at line 121 of file addon.c.
References BLI_ghash_free(), global_addonpreftype_hash, MEM_freeN, and NULL.
Referenced by WM_exit_ex().
Definition at line 115 of file addon.c.
References BLI_assert, BLI_ghash_str_new(), global_addonpreftype_hash, and NULL.
Referenced by WM_init().
void BKE_addon_pref_type_remove | ( | const bAddonPrefType * | apt | ) |
Definition at line 110 of file addon.c.
References BLI_ghash_remove(), global_addonpreftype_hash, MEM_freeN, and NULL.
Definition at line 55 of file addon.c.
References BKE_addon_free(), BLI_findstring(), BLI_remlink(), and module.
Referenced by blo_do_versions_userdef(), and wm_init_userdef().
Definition at line 80 of file addon.c.
Referenced by BKE_addon_pref_type_add(), BKE_addon_pref_type_find(), BKE_addon_pref_type_free(), BKE_addon_pref_type_init(), and BKE_addon_pref_type_remove().
|
static |
Definition at line 27 of file addon.c.
Referenced by BKE_addon_pref_type_find().