4#ifndef SYMBIAN_AGENT_CONTROL_H_
5#define SYMBIAN_AGENT_CONTROL_H_
12#include "absl/status/statusor.h"
13#include "nlohmann/json.hpp"
44 nlohmann::json
body = nlohmann::json::object();
53absl::StatusOr<ControlMessage>
ParseControl(std::string_view encoded);
ControlKind
Version-one control operations; none grants write or device access.
Definition control.h:21
absl::StatusOr< ControlMessage > ParseControl(std::string_view encoded)
Parse one bounded MessagePack control payload.
Definition control.cc:36
absl::StatusOr< std::string > PackControl(const ControlMessage &message)
Validate and serialize a control envelope as MessagePack.
Definition control.cc:88
constexpr std::size_t kMaximumControlBytes
Control messages have a smaller budget than data frames.
Definition control.h:18
Typed control envelope carried as MessagePack inside a wire frame.
Definition control.h:39
nlohmann::json body
Definition control.h:44
nlohmann::json extensions
Definition control.h:45
ControlKind kind
Definition control.h:42
std::uint64_t deadline_millis
Definition control.h:43
std::uint64_t request_id
Definition control.h:41
std::uint32_t version
Definition control.h:40