[Yellowstone] Move yellowstone yunq to namespace "yellowstone"

This commit is contained in:
Drew Galbraith 2023-11-30 08:50:43 -08:00
parent f1e09b2ae6
commit 6212aef336
40 changed files with 141 additions and 16 deletions

View file

@ -8,6 +8,7 @@
VFSClient::~VFSClient() {
if (endpoint_ != 0) {
check(ZCapRelease(endpoint_));
@ -93,3 +94,5 @@ glcr::ErrorCode VFSClient::GetDirectory(const GetDirectoryRequest& request, Dire
}

View file

@ -8,6 +8,7 @@
#include "victoriafalls.yunq.h"
class VFSClient {
public:
VFSClient(z_cap_t VFS_cap) : endpoint_(VFS_cap) {}
@ -33,3 +34,4 @@ class VFSClient {
uint64_t kCapBufferSize = 0x10;
glcr::CapBuffer cap_buffer_{kCapBufferSize};
};

View file

@ -1,6 +1,7 @@
// Generated file -- DO NOT MODIFY.
#include "victoriafalls.yunq.h"
namespace {
const uint64_t header_size = 24; // 4x uint32, 1x uint64
@ -283,4 +284,5 @@ uint64_t Directory::SerializeToBytes(glcr::ByteBuffer& bytes, uint64_t offset, g
WriteHeader(bytes, offset, core_size, next_extension);
return next_extension;
}
}

View file

@ -6,6 +6,8 @@
#include <glacier/container/vector.h>
#include <glacier/string/string.h>
#include <ztypes.h>
class OpenFileRequest {
public:
OpenFileRequest() {}
@ -91,4 +93,5 @@ class Directory {
// Parses everything except for caps.
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);
};
};

View file

@ -4,6 +4,7 @@
#include <mammoth/util/debug.h>
#include <zcall.h>
namespace {
const uint32_t kSentinel = 0xBEEFDEAD;
@ -144,3 +145,5 @@ glcr::ErrorCode VFSServerBase::HandleRequest(const glcr::ByteBuffer& request,
}
return glcr::OK;
}

View file

@ -10,6 +10,8 @@
class VFSServerBase {
public:
VFSServerBase(z_cap_t VFS_cap) : endpoint_(VFS_cap) {}
@ -43,3 +45,5 @@ class VFSServerBase {
glcr::CapBuffer& resp_caps);
};