skyline/app/src/main/cpp/switch/os/os.h
◱ PixelyIon 696ebde527 Rewrite C++ parts and UI update
This update took way way too long to create. However, it was worthwhile. :)
2019-07-25 01:49:43 +05:30

26 lines
502 B
C++

#pragma once
#include <cstdint>
#include <err.h>
#include "switch/common.h"
#include "ipc.h"
#include "kernel.h"
#include "svc.h"
namespace lightSwitch::os {
class OS {
private:
device_state state;
uc_hook hook{};
public:
OS(device_state state_);
~OS();
static void HookInterrupt(uc_engine *uc, uint32_t int_no, void *user_data);
static void SvcHandler(uint32_t svc, device_state &state);
void SvcHandler(uint32_t svc);
};
}