Namespace qdmi::detail¶
-
namespace detail
Functions
-
int setDeviceConfigurationParameter(QDMI_Device_Session_Parameter parameter, size_t size, const void *value, std::optional<std::string> &inlineJson, std::optional<std::filesystem::path> &file)
Validate and store a CUSTOM1/CUSTOM2 string parameter.
A null value with size zero is a capability probe. Assignments contain one trailing NUL and no embedded NUL. A single NUL clears the selected value.
-
std::optional<LoadedDeviceConfiguration> loadDeviceConfiguration(const std::optional<std::string> &inlineJson, const std::optional<std::filesystem::path> &file, std::string_view inlineEnvironment, std::string_view fileEnvironment, std::string_view bundledFilename, const void *anchor, int &status)
Select and load one runtime device description.
A non-empty explicit inline value wins over an explicit file value. Without an explicit source, exactly one technology-specific environment variable may select inline JSON or a file. The final fallback is a file beside the shared module containing
anchor.
-
struct LoadedDeviceConfiguration
- #include <DeviceConfiguration.hpp>
JSON text selected for a provider session together with a safe source label.
-
int setDeviceConfigurationParameter(QDMI_Device_Session_Parameter parameter, size_t size, const void *value, std::optional<std::string> &inlineJson, std::optional<std::filesystem::path> &file)