Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
host_version.hpp File Reference

Host major/minor/patch version detection on top of HostType. More...

#include <pulp/format/host_type.hpp>
#include <optional>
#include <string_view>

Go to the source code of this file.

Classes

struct  pulp::format::HostVersion
 Semver-ish host version. More...
struct  pulp::format::HostInfo
 Combined accessor: detect both type and version in one call. More...

Namespaces

namespace  pulp
namespace  pulp::format
 What the product grants a device: the quota table indexed by capability tier and live thermal state.

Functions

std::optional< HostVersion > pulp::format::parse_host_version (std::string_view version_string)
 Best-effort parse of a version string like "10.0.50", "12.0", or "Pro Tools 2024.6".
HostVersion pulp::format::detect_host_version (HostType type)
 Detect the running host's major/minor version, best-effort.
bool pulp::format::host_type_uses_version (HostType type) noexcept
 Whether any host quirk for type is version-gated.
HostInfo pulp::format::detect_host_info ()

Detailed Description

Host major/minor/patch version detection on top of HostType.

Some DAW accommodations are version-keyed (Cubase 9 state-blob size quirk differs from Cubase 10 async-resize quirk). HostVersion captures the host's reported version string in a comparable form so host_quirks::make_quirks_for(HostType, HostVersion) can branch.