[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 @@
VoyageursClient::~VoyageursClient() {
if (endpoint_ != 0) {
check(ZCapRelease(endpoint_));
@ -52,3 +53,5 @@ glcr::ErrorCode VoyageursClient::RegisterKeyboardListener(const KeyboardListener
}

View file

@ -8,6 +8,7 @@
#include "voyageurs.yunq.h"
class VoyageursClient {
public:
VoyageursClient(z_cap_t Voyageurs_cap) : endpoint_(Voyageurs_cap) {}
@ -29,3 +30,4 @@ class VoyageursClient {
uint64_t kCapBufferSize = 0x10;
glcr::CapBuffer cap_buffer_{kCapBufferSize};
};

View file

@ -1,6 +1,7 @@
// Generated file -- DO NOT MODIFY.
#include "voyageurs.yunq.h"
namespace {
const uint64_t header_size = 24; // 4x uint32, 1x uint64
@ -74,4 +75,5 @@ uint64_t KeyboardListener::SerializeToBytes(glcr::ByteBuffer& bytes, uint64_t of
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 KeyboardListener {
public:
KeyboardListener() {}
@ -25,4 +27,5 @@ class KeyboardListener {
// 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;
@ -122,3 +123,5 @@ glcr::ErrorCode VoyageursServerBase::HandleRequest(const glcr::ByteBuffer& reque
}
return glcr::OK;
}

View file

@ -10,6 +10,8 @@
class VoyageursServerBase {
public:
VoyageursServerBase(z_cap_t Voyageurs_cap) : endpoint_(Voyageurs_cap) {}
@ -39,3 +41,5 @@ class VoyageursServerBase {
glcr::CapBuffer& resp_caps);
};

View file

@ -6,6 +6,9 @@
#include "keyboard/keyboard_driver.h"
#include "voyageurs_server.h"
using yellowstone::RegisterEndpointRequest;
using yellowstone::YellowstoneClient;
uint64_t main(uint64_t init_port) {
ParseInitPort(init_port);