[Y2R] Add service skeleton

This commit is contained in:
wheremyfoodat 2023-03-13 00:01:10 +02:00
parent 38fde0f608
commit 9a6640cae2
6 changed files with 51 additions and 3 deletions

18
include/services/y2r.hpp Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
class Y2RService {
Handle handle = KernelHandles::Y2R;
Memory& mem;
MAKE_LOG_FUNCTION(log, y2rLogger)
// Service commands
public:
Y2RService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};