#include <vmservice_object.h>
|
void | GetContents (LazyEntryVector *out_vector) const override |
|
zx_status_t | GetFile (Node **out_node, uint64_t id, std::string name) const override |
|
|
static constexpr const char * | kDirName = "DartVM" |
|
static constexpr const char * | kPortDirName = "vmservice-port" |
|
static constexpr const char * | kPortDir = "/tmp/dart.services" |
|
Definition at line 15 of file vmservice_object.h.
◆ GetContents()
void dart_utils::VMServiceObject::GetContents |
( |
LazyEntryVector * |
out_vector | ) |
const |
|
override |
Definition at line 37 of file vmservice_object.cc.
37 {
38
39
40 std::vector<std::string> files;
41 if (!ReadDirContents(
kPortDir, &files)) {
42 FML_LOG(
ERROR) <<
"Failed to read Dart VM service port directory '"
43 <<
kPortDir <<
"': " << strerror(errno);
44 return;
45 }
46 for (
const auto&
file : files) {
47 if ((
file ==
".") || (
file ==
"..")) {
48 continue;
49 }
50 out_vector->push_back({std::stoul(
file) + GetStartingId(),
file,
51 fuchsia::io::MODE_TYPE_FILE});
52 }
53}
static constexpr const char * kPortDir
#define FML_LOG(severity)
◆ GetFile()
zx_status_t dart_utils::VMServiceObject::GetFile |
( |
Node ** |
out_node, |
|
|
uint64_t |
id, |
|
|
std::string |
name |
|
) |
| const |
|
override |
◆ kDirName
constexpr const char* dart_utils::VMServiceObject::kDirName = "DartVM" |
|
staticconstexpr |
◆ kPortDir
constexpr const char* dart_utils::VMServiceObject::kPortDir = "/tmp/dart.services" |
|
staticconstexpr |
◆ kPortDirName
constexpr const char* dart_utils::VMServiceObject::kPortDirName = "vmservice-port" |
|
staticconstexpr |
The documentation for this class was generated from the following files: