Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
control.h File Reference
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
#include "absl/status/statusor.h"
#include "nlohmann/json.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  symbian::agent::ControlMessage
 Typed control envelope carried as MessagePack inside a wire frame. More...
 

Namespaces

namespace  symbian
 
namespace  symbian::agent
 

Enumerations

enum class  symbian::agent::ControlKind : std::uint8_t {
  symbian::agent::kHello = 1 , symbian::agent::kStatus = 2 , symbian::agent::kCancel = 3 , symbian::agent::kResult = 4 ,
  symbian::agent::kError = 5 , symbian::agent::kLogs = 6 , symbian::agent::kWorkspaceList = 7
}
 Version-one control operations; none grants write or device access. More...
 

Functions

absl::StatusOr< ControlMessage > symbian::agent::ParseControl (std::string_view encoded)
 Parse one bounded MessagePack control payload.
 
absl::StatusOr< std::string > symbian::agent::PackControl (const ControlMessage &message)
 Validate and serialize a control envelope as MessagePack.
 

Variables

constexpr std::size_t symbian::agent::kMaximumControlBytes = 4096
 Control messages have a smaller budget than data frames.