Blender V5.3
preferences.cc File Reference
#include <cstring>
#include "AS_asset_library.hh"
#include "AS_essentials_library.hh"
#include "AS_remote_library.hh"
#include "BLI_fileops.hh"
#include "BLI_listbase.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BKE_appdir.hh"
#include "BKE_asset.hh"
#include "BKE_blender_version.h"
#include "BKE_preferences.h"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BLO_read_write.hh"
#include "DNA_userdef_types.h"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::preferences

Macros

#define U   BLI_STATIC_ASSERT(false, "Global 'U' not allowed, only use arguments passed in!")

Functions

bool blender::bke::preferences::exists ()
Assert Libraries
struct bUserAssetLibrary * blender::BKE_preferences_asset_library_add (struct UserDef *userdef, const char *name, const char *dirpath) ATTR_NONNULL(1)
struct bUserAssetLibrary * blender::BKE_preferences_project_asset_library_add (struct UserDef *userdef, const char *name, const char *dirpath, std::optional< UUID > uuid=std::nullopt) ATTR_NONNULL(1)
void blender::BKE_preferences_asset_library_remove (struct UserDef *userdef, struct bUserAssetLibrary *library) ATTR_NONNULL()
void blender::BKE_preferences_asset_library_name_set (struct UserDef *userdef, struct bUserAssetLibrary *library, const char *name) ATTR_NONNULL()
void blender::BKE_preferences_asset_library_path_set (struct bUserAssetLibrary *library, const char *path) ATTR_NONNULL()
void blender::BKE_preferences_asset_library_default_add (struct UserDef *userdef) ATTR_NONNULL()
void blender::BKE_preferences_asset_library_read_data (struct BlendDataReader *reader, struct bUserAssetLibrary *library)
struct bUserAssetLibrary * blender::BKE_preferences_remote_asset_library_add (struct UserDef *userdef, const char *name, const char *remote_url, const char *auth_token) ATTR_NONNULL(1
struct bUserAssetLibrary bUserAssetLibrary * blender::BKE_preferences_project_remote_asset_library_add (UserDef *userdef, const char *name, const char *remote_url, const char *auth_token) ATTR_NONNULL(1
void blender::BKE_preferences_remote_asset_library_url_set (bUserAssetLibrary *library, StringRef remote_url)
 Update the remote URL and the cache directory derived from the URL.
void blender::BKE_preferences_remote_asset_library_auth_token_set (bUserAssetLibrary *library, StringRef auth_token)
 Update the remote URL authentication token.
Asset Libraries
bUserAssetLibrary * blender::BKE_preferences_asset_library_find_index (const UserDef *userdef, int index)
bUserAssetLibrary * blender::BKE_preferences_asset_library_find_by_name (const UserDef *userdef, const char *name)
bUserAssetLibrary * blender::BKE_preferences_asset_library_containing_path (const UserDef *userdef, const char *path)
int blender::BKE_preferences_asset_library_get_index (const UserDef *userdef, const bUserAssetLibrary *library)
bool blender::BKE_preferences_asset_library_is_available (const UserDef *userdef, const bUserAssetLibrary *library)
bool blender::BKE_preferences_asset_library_is_valid (const UserDef *userdef, const bUserAssetLibrary *library, const bool check_directory_exists)
void blender::BKE_preferences_asset_library_write_data (BlendWriter *writer, const bUserAssetLibrary *library)
bUserAssetLibraryOwner blender::BKE_preferences_asset_library_owner_get (const bUserAssetLibrary *library)
bUserExtensionRepo * blender::BKE_preferences_extension_asset_library_repo_get (const UserDef *userdef, const bUserAssetLibrary *library)
static void blender::url_ensure_trailing_slash (char *str, const size_t str_maxncpy)
Extension Repositories
static size_t blender::strncpy_py_module (char *dst, const char *src, const size_t dst_maxncpy)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_add (UserDef *userdef, const char *name, const char *module, const char *custom_dirpath)
void blender::BKE_preferences_extension_repo_remove (UserDef *userdef, bUserExtensionRepo *repo)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_add_default_remote (UserDef *userdef)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_add_default_user (UserDef *userdef)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_add_default_system (UserDef *userdef)
void blender::BKE_preferences_extension_repo_add_defaults_all (UserDef *userdef)
void blender::BKE_preferences_extension_repo_name_set (UserDef *userdef, bUserExtensionRepo *repo, const char *name)
void blender::BKE_preferences_extension_repo_module_set (UserDef *userdef, bUserExtensionRepo *repo, const char *module)
bool blender::BKE_preferences_extension_repo_module_is_valid (const bUserExtensionRepo *repo)
void blender::BKE_preferences_extension_repo_custom_dirpath_set (bUserExtensionRepo *repo, const char *path)
size_t blender::BKE_preferences_extension_repo_dirpath_get (const bUserExtensionRepo *repo, char *dirpath, int dirpath_maxncpy)
size_t blender::BKE_preferences_extension_repo_user_dirpath_get (const bUserExtensionRepo *repo, char *dirpath, const int dirpath_maxncpy)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_find_index (const UserDef *userdef, int index)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_find_by_module (const UserDef *userdef, const char *module)
static bool blender::url_char_is_delimiter (const char ch)
bUserExtensionRepo * blender::BKE_preferences_extension_repo_find_by_remote_url_prefix (const UserDef *userdef, const char *remote_url_full, const bool only_enabled)
int blender::BKE_preferences_extension_repo_get_index (const UserDef *userdef, const bUserExtensionRepo *repo)
void blender::BKE_preferences_extension_repo_read_data (struct BlendDataReader *reader, bUserExtensionRepo *repo)
void blender::BKE_preferences_extension_repo_write_data (struct BlendWriter *writer, const bUserExtensionRepo *repo)
Web/remote utilities
int blender::BKE_preferences_remote_scheme_end (const char *url)
void blender::BKE_preferences_remote_to_name (const char *remote_url, char name[MAX_NAME])
#bUserAssetShelfSettings
static bUserAssetShelfSettings * blender::asset_shelf_settings_new (UserDef *userdef, const char *shelf_idname)
static bUserAssetShelfSettings * blender::asset_shelf_settings_ensure (UserDef *userdef, const char *shelf_idname)
#bUserAssetShelvesSettings
bUserAssetShelfSettings * blender::BKE_preferences_asset_shelf_settings_get (const UserDef *userdef, const char *shelf_idname)
bool blender::BKE_preferences_asset_shelf_settings_is_catalog_path_enabled (const UserDef *userdef, const char *shelf_idname, const char *catalog_path)
bool blender::BKE_preferences_asset_shelf_settings_ensure_catalog_path_enabled (UserDef *userdef, const char *shelf_idname, const char *catalog_path)
bool blender::BKE_preferences_asset_shelf_settings_disable_catalog_path (UserDef *userdef, const char *shelf_idname, const char *catalog_path)
const EnumPropertyItem * blender::BKE_preferences_active_section_itemf (const UserDef *userdef, bool *r_free)

Detailed Description

User defined asset library API.

Definition in file preferences.cc.

Macro Definition Documentation

◆ U

#define U   BLI_STATIC_ASSERT(false, "Global 'U' not allowed, only use arguments passed in!")

Definition at line 42 of file preferences.cc.