Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
content_capability_manifest.hpp
Go to the documentation of this file.
1#pragma once
2
9
10#include <filesystem>
11#include <optional>
12#include <string>
13#include <string_view>
14#include <vector>
15
16namespace pulp::state {
17
20 std::string schema = "pulp.plugin-runtime.v1";
21 std::string plugin_id;
22 std::vector<std::string> capabilities;
23 std::vector<std::string> content_kinds;
24 std::vector<std::string> hot_reload_kinds;
25 std::vector<std::string> manual_rescan_kinds;
26};
27
34std::optional<ContentCapabilityManifest>
35parse_content_capability_manifest(std::string_view json, std::string* error = nullptr);
36
38std::optional<ContentCapabilityManifest>
39load_content_capability_manifest(const std::filesystem::path& path, std::string* error = nullptr);
40
43
44} // namespace pulp::state
SequencerStateChannel is the audio-safe transport for a plugin's structured NON-parameter state: the ...
Definition audio_device_manager.hpp:48
std::optional< ContentCapabilityManifest > load_content_capability_manifest(const std::filesystem::path &path, std::string *error=nullptr)
Load and parse a plugin content capability manifest from disk.
std::string content_capability_manifest_to_json(const ContentCapabilityManifest &manifest)
Serialize a capability manifest for embedding in plugin bundle resources.
std::optional< ContentCapabilityManifest > parse_content_capability_manifest(std::string_view json, std::string *error=nullptr)
Parse the plugin-side content capability manifest embedded in a built plugin/app bundle.
Capabilities a plugin declares before consuming installed content packs.
Definition content_capability_manifest.hpp:19
std::vector< std::string > hot_reload_kinds
Definition content_capability_manifest.hpp:24
std::vector< std::string > capabilities
Definition content_capability_manifest.hpp:22
std::vector< std::string > content_kinds
Definition content_capability_manifest.hpp:23
std::vector< std::string > manual_rescan_kinds
Definition content_capability_manifest.hpp:25
std::string schema
Definition content_capability_manifest.hpp:20
std::string plugin_id
Definition content_capability_manifest.hpp:21