[Yellowstone] Use the file api to load the init file.
This commit is contained in:
parent
86ce0a68a3
commit
8ceab2ad23
6 changed files with 23 additions and 27 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <denali/denali.yunq.client.h>
|
||||
#include <glacier/string/string.h>
|
||||
#include <mammoth/file/file.h>
|
||||
#include <mammoth/util/debug.h>
|
||||
#include <mammoth/util/init.h>
|
||||
#include <mammoth/util/memory_region.h>
|
||||
|
|
@ -100,7 +101,7 @@ glcr::ErrorCode YellowstoneServer::HandleRegisterEndpoint(
|
|||
} else if (req.endpoint_name() == "victoriafalls") {
|
||||
// FIXME: Probably make a separate copy for use within yellowstone vs
|
||||
// transmit to other processes.
|
||||
vfs_client_ = glcr::MakeShared<VFSClient>(req.endpoint_capability());
|
||||
mmth::SetVfsCap(req.endpoint_capability());
|
||||
has_victoriafalls_semaphore_.Signal();
|
||||
} else {
|
||||
dbgln("[WARN] Got endpoint cap type: {}", req.endpoint_name().cstr());
|
||||
|
|
@ -125,7 +126,3 @@ void YellowstoneServer::WaitDenaliRegistered() { has_denali_semaphore_.Wait(); }
|
|||
void YellowstoneServer::WaitVictoriaFallsRegistered() {
|
||||
has_victoriafalls_semaphore_.Wait();
|
||||
}
|
||||
|
||||
glcr::SharedPtr<VFSClient> YellowstoneServer::GetVFSClient() {
|
||||
return vfs_client_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue