Blender  V3.3
BKE_preferences.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #include "BLI_compiler_attrs.h"
14 
15 struct UserDef;
16 struct bUserAssetLibrary;
17 
19 #define BKE_PREFS_ASSET_LIBRARY_DEFAULT_NAME N_("User Library")
20 
22  const char *name,
23  const char *path) ATTR_NONNULL(1);
30 
32  struct bUserAssetLibrary *library,
33  const char *name) ATTR_NONNULL();
34 
42  ATTR_NONNULL();
43 
45  const struct UserDef *userdef, int index) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
47  const struct UserDef *userdef, const char *name) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
48 
58  const struct UserDef *userdef, const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
59 
61  const struct bUserAssetLibrary *library)
63 
65 
66 #ifdef __cplusplus
67 }
68 #endif
int BKE_preferences_asset_library_get_index(const struct UserDef *userdef, const struct bUserAssetLibrary *library) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
struct bUserAssetLibrary * BKE_preferences_asset_library_find_from_index(const struct UserDef *userdef, int index) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BKE_preferences_asset_library_default_add(struct UserDef *userdef) ATTR_NONNULL()
Definition: preferences.c:105
void BKE_preferences_asset_library_path_set(struct bUserAssetLibrary *library, const char *path) ATTR_NONNULL()
Definition: preferences.c:69
struct bUserAssetLibrary * BKE_preferences_asset_library_add(struct UserDef *userdef, const char *name, const char *path) ATTR_NONNULL(1)
Definition: preferences.c:33
void BKE_preferences_asset_library_remove(struct UserDef *userdef, struct bUserAssetLibrary *library) ATTR_NONNULL()
Definition: preferences.c:51
struct bUserAssetLibrary * BKE_preferences_asset_library_containing_path(const struct UserDef *userdef, const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BKE_preferences_asset_library_name_set(struct UserDef *userdef, struct bUserAssetLibrary *library, const char *name) ATTR_NONNULL()
Definition: preferences.c:56
struct bUserAssetLibrary * BKE_preferences_asset_library_find_from_name(const struct UserDef *userdef, const char *name) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
static FT_Library library