Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
control_carrier.hpp File Reference
#include <cstdint>
#include <filesystem>
#include <optional>

Go to the source code of this file.

Classes

struct  pulp::inspect::ControlEndpointIdentity
 Filesystem identity captured for an owner-private local socket endpoint. More...

Namespaces

namespace  pulp
namespace  pulp::inspect

Functions

std::filesystem::path pulp::inspect::default_control_runtime_directory ()
 Deterministic owner-specific directory for the control carrier.
std::filesystem::path pulp::inspect::default_control_runtime_directory (const std::filesystem::path &runtime_root)
 Deterministic control directory below an explicitly supplied runtime root.
std::filesystem::path pulp::inspect::default_control_endpoint_path ()
 Deterministic LocalSocket endpoint for the control broker.
std::filesystem::path pulp::inspect::default_control_endpoint_path (const std::filesystem::path &runtime_root)
bool pulp::inspect::prepare_control_runtime_directory (const std::filesystem::path &runtime_directory)
 Create or validate an absolute owner-only runtime directory.
std::optional< ControlEndpointIdentity > pulp::inspect::control_endpoint_identity (const std::filesystem::path &endpoint_path)
 Capture a socket only when its parent is private and its path is an owner-owned 0600 local endpoint.
bool pulp::inspect::remove_stale_control_endpoint (const std::filesystem::path &endpoint_path, const ControlEndpointIdentity &expected_identity)
 Remove an endpoint only if its device and inode still match the identity captured before the caller's stale/liveness decision.
bool pulp::inspect::remove_stale_control_endpoint (const std::filesystem::path &endpoint_path)
 Convenience for cleanup performed while the caller already holds the per-user daemon singleton and has established that the endpoint is stale.