23 std::filesystem::path
root;
26 std::vector<std::filesystem::path>
presets;
27 std::vector<std::filesystem::path>
themes;
28 std::vector<std::filesystem::path>
samples;
80 std::filesystem::path data_root_;
static std::filesystem::path platform_data_root()
std::vector< ContentPackInfo > packs_for_plugin(const ContentCapabilityManifest &manifest) const
Return installed packs whose capabilities/kinds match the plugin manifest.
std::filesystem::path content_root() const
static std::filesystem::path content_root_for_data_root(const std::filesystem::path &data_root)
ContentRegistry(std::filesystem::path data_root=platform_data_root())
std::vector< PresetInfo > presets_for_plugin(const ContentCapabilityManifest &manifest) const
Return content-pack presets as read-only factory/expansion presets.
const std::filesystem::path & data_root() const
Definition content_registry.hpp:65
std::vector< ContentPackInfo > packs_for_plugin(const std::string &plugin_id) const
Return all installed packs for a plugin id, without capability filtering.
The capabilities a plugin declares before consuming installed content packs, and the pulp....
Decompressed-size budget a content-pack archive must fit before anything in it is inflated.
SequencerStateChannel is the audio-safe transport for a plugin's structured NON-parameter state: the ...
Definition audio_device_manager.hpp:48
ContentInstallResult install_content_pack(const std::filesystem::path &input, const ContentCapabilityManifest &plugin, const std::filesystem::path &data_root=ContentRegistry::platform_data_root(), bool approved=false, const ContentInstallLimits &limits={})
Install a previously previewable data-only content pack.
std::function< std::vector< PresetInfo >( const ContentCapabilityManifest &manifest, const std::filesystem::path &data_root)> ContentPresetSource
Lists installed content-pack presets for a plugin's content manifest.
Definition preset_manager.hpp:38
const char * to_string(ContentReloadPolicy policy)
ContentPresetSource content_registry_preset_source()
A PresetManager content-preset source backed by this registry: it lists the installed packs' presets ...
ContentReloadPolicy
Definition content_registry.hpp:33
@ hot_reload
Definition content_registry.hpp:33
@ restart_required
Definition content_registry.hpp:33
@ manual_rescan
Definition content_registry.hpp:33
ContentInstallPreview preview_content_pack_install(const std::filesystem::path &input, const ContentCapabilityManifest &plugin, const std::filesystem::path &data_root=ContentRegistry::platform_data_root(), const ContentInstallLimits &limits={})
Validate a local content-pack directory or .pulpcontent archive against a trusted plugin runtime mani...
Built-in preset management — save/load/delete/rename/import.
Capabilities a plugin declares before consuming installed content packs.
Definition content_capability_manifest.hpp:19
Caps on what an archive may inflate to.
Definition content_install_limits.hpp:19
Definition content_registry.hpp:35
ContentReloadPolicy policy
Definition content_registry.hpp:37
std::string kind
Definition content_registry.hpp:36
Definition content_registry.hpp:40
ContentCapabilityManifest plugin
Definition content_registry.hpp:43
std::filesystem::path source
Definition content_registry.hpp:44
std::vector< std::string > issues
Definition content_registry.hpp:47
std::vector< ContentInstallPolicy > policies
Definition content_registry.hpp:46
bool ok
Definition content_registry.hpp:41
std::filesystem::path install_root
Definition content_registry.hpp:45
ContentPackInfo pack
Definition content_registry.hpp:42
Definition content_registry.hpp:50
bool ok
Definition content_registry.hpp:51
ContentInstallPreview preview
Definition content_registry.hpp:52
std::vector< std::string > issues
Definition content_registry.hpp:53
Metadata for one installed content pack.
Definition content_registry.hpp:19
std::vector< std::filesystem::path > themes
Definition content_registry.hpp:27
std::vector< std::string > kinds
Definition content_registry.hpp:24
std::vector< std::string > capabilities
Definition content_registry.hpp:25
std::filesystem::path root
Definition content_registry.hpp:23
std::vector< std::filesystem::path > samples
Definition content_registry.hpp:28
std::string version
Definition content_registry.hpp:22
std::vector< std::filesystem::path > sample_banks
Definition content_registry.hpp:29
std::string name
Definition content_registry.hpp:21
std::vector< std::filesystem::path > presets
Definition content_registry.hpp:26
std::vector< std::filesystem::path > wavetables
Definition content_registry.hpp:30
std::string id
Definition content_registry.hpp:20