Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
guest_files.h
Go to the documentation of this file.
1// Copyright 2026 The Symbian SDK Authors.
2// Licensed under the Apache License, Version 2.0.
3
4#ifndef SYMBIAN_AGENT_GUEST_FILES_H_
5#define SYMBIAN_AGENT_GUEST_FILES_H_
6
7#include <array>
8#include <cstdint>
9#include <optional>
10#include <string>
11
12#include "absl/status/statusor.h"
13
14namespace symbian::agent {
15
18 std::string name;
19 bool is_directory = false;
20 bool is_read_only = false;
21 std::optional<std::uint64_t> size_bytes;
22};
23
26 std::array<GuestFileEntry, 8> entries{};
27 std::uint8_t count = 0;
28 std::uint16_t next_offset = 0;
29 bool more = false;
30};
31
40absl::StatusOr<GuestFilePage> ReadWorkspacePage(std::uint16_t after,
41 std::uint8_t limit);
42
43} // namespace symbian::agent
44
45#endif // SYMBIAN_AGENT_GUEST_FILES_H_
Definition control.cc:11
absl::StatusOr< GuestFilePage > ReadWorkspacePage(std::uint16_t after, std::uint8_t limit)
Read one page from the agent's private workspace root.
Definition guest_files.cc:56
One name in the agent-owned workspace, encoded as UTF-8.
Definition guest_files.h:17
bool is_read_only
Definition guest_files.h:20
std::optional< std::uint64_t > size_bytes
Definition guest_files.h:21
std::string name
Definition guest_files.h:18
bool is_directory
Definition guest_files.h:19
A bounded listing of the agent-owned workspace root.
Definition guest_files.h:25
std::array< GuestFileEntry, 8 > entries
Definition guest_files.h:26
std::uint8_t count
Definition guest_files.h:27
bool more
Definition guest_files.h:29
std::uint16_t next_offset
Definition guest_files.h:28