Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_asset_library.h
| Show All 23 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** Forward declaration, defined in intern/asset_library.hh */ | /** Forward declaration, defined in intern/asset_library.hh */ | ||||
| typedef struct AssetLibrary AssetLibrary; | typedef struct AssetLibrary AssetLibrary; | ||||
| /** TODO(@sybren): properly have a think/discussion about the API for this. */ | /** | ||||
| * Return the #AssetLibrary rooted at the given directory path. | |||||
| * | |||||
| * Will return the same pointer for repeated calls, until another blend file is loaded. | |||||
| * | |||||
| * To get the in-memory-only "current file" asset library, pass an empty path. | |||||
| */ | |||||
| struct AssetLibrary *BKE_asset_library_load(const char *library_path); | struct AssetLibrary *BKE_asset_library_load(const char *library_path); | ||||
| void BKE_asset_library_free(struct AssetLibrary *asset_library); | |||||
| /** | /** | ||||
| * Try to find an appropriate location for an asset library root from a file or directory path. | * Try to find an appropriate location for an asset library root from a file or directory path. | ||||
| * Does not check if \a input_path exists. | * Does not check if \a input_path exists. | ||||
| * | * | ||||
| * The design is made to find an appropriate asset library path from a .blend file path, but | * The design is made to find an appropriate asset library path from a .blend file path, but | ||||
| * technically works with any file or directory as \a input_path. | * technically works with any file or directory as \a input_path. | ||||
| * Design is: | * Design is: | ||||
| Show All 35 Lines | |||||