Add Chromium-only Blender WebEngine parity work
This commit is contained in:
42
blender-5.2.0/source/blender/blenkernel/BKE_addon.h
Normal file
42
blender-5.2.0/source/blender/blenkernel/BKE_addon.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include "DNA_listBase.h"
|
||||
|
||||
namespace blender {
|
||||
|
||||
struct bAddon;
|
||||
|
||||
#ifdef __RNA_TYPES_H__
|
||||
struct bAddonPrefType {
|
||||
/** Type info, match #bAddon::module. */
|
||||
char idname[128];
|
||||
|
||||
/* RNA integration */
|
||||
ExtensionRNA rna_ext;
|
||||
};
|
||||
|
||||
#else
|
||||
struct bAddonPrefType;
|
||||
#endif
|
||||
|
||||
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 BKE_addon_pref_type_free();
|
||||
|
||||
struct bAddon *BKE_addon_new();
|
||||
struct bAddon *BKE_addon_find(const ListBaseT<bAddon> *addon_list, const char *module);
|
||||
struct bAddon *BKE_addon_ensure(ListBaseT<bAddon> *addon_list, const char *module);
|
||||
bool BKE_addon_remove_safe(ListBaseT<bAddon> *addon_list, const char *module);
|
||||
void BKE_addon_free(struct bAddon *addon);
|
||||
|
||||
} // namespace blender
|
||||
Reference in New Issue
Block a user