[Yellowstone] Move to yunq definition for yellowstone server.

This commit is contained in:
Drew Galbraith 2023-10-24 18:24:26 -07:00
parent 9c9fd167cd
commit 2b27af5814
22 changed files with 696 additions and 118 deletions

View file

@ -7,8 +7,9 @@
#include <mammoth/thread.h>
#include "hw/pcie.h"
#include "include/yellowstone/yellowstone.yunq.server.h"
class YellowstoneServer : public EndpointServer {
class YellowstoneServer : public YellowstoneServerBase {
public:
static glcr::ErrorOr<glcr::UniquePtr<YellowstoneServer>> Create();
@ -16,8 +17,9 @@ class YellowstoneServer : public EndpointServer {
void RegistrationThread();
virtual glcr::ErrorCode HandleRequest(RequestContext& request,
ResponseContext& response) override;
glcr::ErrorCode HandleGetAhciInfo(const Empty&, AhciInfo&) override;
glcr::ErrorCode HandleGetDenali(const Empty&, DenaliInfo&) override;
glcr::ErrorCode HandleGetRegister(const Empty&, RegisterInfo&) override;
private:
// FIXME: Separate this to its own service.