Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_asset_library.h
| Show All 14 Lines | |||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| struct Main; | |||||
| #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. */ | /** TODO(@sybren): properly have a think/discussion about the API for this. */ | ||||
| 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); | void BKE_asset_library_free(struct AssetLibrary *asset_library); | ||||
| bool BKE_asset_library_find_suitable_root_path_from_filepath( | |||||
| const char *filepath, char r_library_path[768 /* FILE_MAXDIR */]); | |||||
| bool BKE_asset_library_find_suitable_root_path_from_main( | |||||
| const struct Main *bmain, char r_library_path[768 /* FILE_MAXDIR */]); | |||||
sybren: Move documentation here, and document what the return value means | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
Move documentation here, and document what the return value means