Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
agent_context.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include <vector>
6
7namespace pulp::inspect {
8
12 std::string binary_path;
13 std::string binary_build_id;
14 std::int64_t binary_mtime_unix_ms = 0;
15 std::string plugin_id;
16 std::string session_id;
17 std::string instance_id;
18 bool editor_open = false;
19 bool window_visible = false;
20 bool processing = false;
21 std::uint64_t xrun_count = 0;
23 bool hot_reload_enabled = false;
24 bool hot_reload_pending = false;
25 std::uint64_t unsaved_tweak_count = 0;
26 std::vector<std::string> actionable_issues;
27};
28
31 public:
32 virtual ~InspectorAgentContextSource() = default;
33 virtual InspectorAgentContext snapshot() const = 0;
34};
35
36} // namespace pulp::inspect
Composition seam for host state that does not belong in protocol dispatch.
Definition agent_context.hpp:30
virtual InspectorAgentContext snapshot() const =0
Definition agent_context.hpp:7
Host-owned snapshot returned by Inspector.getAgentContext.
Definition agent_context.hpp:11
std::int64_t binary_mtime_unix_ms
Definition agent_context.hpp:14
std::string binary_path
Definition agent_context.hpp:12
bool processing
Definition agent_context.hpp:20
bool hot_reload_enabled
Definition agent_context.hpp:23
std::string binary_build_id
Definition agent_context.hpp:13
bool editor_open
Definition agent_context.hpp:18
std::vector< std::string > actionable_issues
Definition agent_context.hpp:26
std::string plugin_id
Definition agent_context.hpp:15
std::string session_id
Definition agent_context.hpp:16
std::uint64_t xrun_count
Definition agent_context.hpp:21
std::uint64_t unsaved_tweak_count
Definition agent_context.hpp:25
bool window_visible
Definition agent_context.hpp:19
bool hot_reload_pending
Definition agent_context.hpp:24
bool hot_reload_available
Definition agent_context.hpp:22
std::string instance_id
Definition agent_context.hpp:17