Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
client.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <optional>
6#include <string>
7
8namespace pulp::inspect {
9
12 std::string session_id;
13 std::string instance_id;
14 std::string publication_id;
15 friend bool operator==(const InspectorClientTarget&, const InspectorClientTarget&) = default;
16};
17
20 std::optional<InspectorClientTarget> target;
22
23 bool succeeded() const {
24 return target.has_value() && !response.is_error;
25 }
26};
27
28} // namespace pulp::inspect
Definition agent_context.hpp:7
Typed outcome for a one-shot canonical control request.
Definition client.hpp:19
bool succeeded() const
Definition client.hpp:23
InspectorMessage response
Definition client.hpp:21
std::optional< InspectorClientTarget > target
Definition client.hpp:20
Exact selector for one canonical control registration generation.
Definition client.hpp:11
std::string session_id
Definition client.hpp:12
std::string publication_id
Definition client.hpp:14
std::string instance_id
Definition client.hpp:13
friend bool operator==(const InspectorClientTarget &, const InspectorClientTarget &)=default
A single inspector protocol message (request, response, or event).
Definition protocol.hpp:18