← Back to docs

PCP · pcp

PCP Platform — Hardware API Implementations

Hardware API implementations for PCP — audio playback, network status, compositor queries, display control.

pcp-platformv0.2.0pcp
5.5K
Lines of Code
198
Tests
39
Files

Architecture

Implements PlatformApi trait with concrete hardware interactions.

Overview

pcp-platform provides the hardware-facing capability implementations for the Portal Capability Protocol. When an app invokes a capability that requires hardware access (play audio, query network status, get display info), pcp-platform provides the implementation that interfaces with the actual hardware subsystems.

Data Flow

Capability invocation → pcpd routes to pcp-platform → hardware API called → result returned

Dependencies

External (9)

libc 0.2tokio workspaceserde workspaceserde_json workspacezbus workspacetracing workspacethiserror workspaceasync-trait workspacechrono workspace

Depends on pcp-core. Interacts with ALSA/PulseAudio (audio), NetworkManager (network), Wayland (compositor).