Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::host::IsolatedPluginScanner Class Reference

#include <isolated_scanner.hpp>

Public Member Functions

 IsolatedPluginScanner (std::string worker_path)
 Construct with the path to the pulp-scan-worker binary that will be exec'd for each scan.
ScanResult scan (const std::string &bundle_path, int timeout_ms=5000) const
 Scan a single bundle in a child process.
const std::string & worker_path () const noexcept
 Accessor for the resolved worker path (mostly for diagnostics).

Constructor & Destructor Documentation

◆ IsolatedPluginScanner()

pulp::host::IsolatedPluginScanner::IsolatedPluginScanner ( std::string worker_path)
inlineexplicit

Construct with the path to the pulp-scan-worker binary that will be exec'd for each scan.

Resolution policy is intentionally caller-controlled — Pulp ships the worker next to the CLI at install time, but tests inject $<TARGET_FILE:pulp-scan-worker> directly, and an embedded host may keep it elsewhere.

Member Function Documentation

◆ scan()

ScanResult pulp::host::IsolatedPluginScanner::scan ( const std::string & bundle_path,
int timeout_ms = 5000 ) const

Scan a single bundle in a child process.

Always returns; never propagates a crash from the worker back into the caller.

◆ worker_path()

const std::string & pulp::host::IsolatedPluginScanner::worker_path ( ) const
inlinenoexcept

Accessor for the resolved worker path (mostly for diagnostics).


The documentation for this class was generated from the following file: