Blender V5.3
all_library.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <atomic>
12#include <mutex>
13
14#include "AS_asset_library.hh"
15
16namespace blender::asset_system {
17
19 std::atomic<bool> catalogs_dirty_ = true;
20
22 std::mutex rebuild_mutex_;
23
24 public:
26
27 void force_remote_listing_download() const override;
28
29 std::optional<AssetLibraryReference> library_reference() const override;
30 std::optional<eAssetImportMethod> import_method() const override;
31 void refresh_catalogs() override;
32
40 void rebuild_catalogs_from_nested(bool reload_nested_catalogs);
41
42 void tag_catalogs_dirty();
43 bool is_catalogs_dirty() const;
44};
45
46} // namespace blender::asset_system
std::optional< AssetLibraryReference > library_reference() const override
std::optional< eAssetImportMethod > import_method() const override
void force_remote_listing_download() const override
void rebuild_catalogs_from_nested(bool reload_nested_catalogs)
AssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef name="", StringRef root_path="")