nstool/lib/libhac/include/nn/hac/KernelVersionHandler.h

39 lines
957 B
C
Raw Permalink Normal View History

#pragma once
2018-08-07 07:17:51 +00:00
#include <nn/hac/IKernelCapabilityHandler.h>
#include <nn/hac/KernelVersionEntry.h>
2018-08-07 07:17:51 +00:00
namespace nn
{
namespace hac
{
class KernelVersionHandler :
public IKernelCapabilityHandler
{
public:
KernelVersionHandler();
void operator=(const KernelVersionHandler& other);
bool operator==(const KernelVersionHandler& other) const;
bool operator!=(const KernelVersionHandler& other) const;
// kernel capabilty list in/out
void importKernelCapabilityList(const fnd::List<KernelCapabilityEntry>& caps);
void exportKernelCapabilityList(fnd::List<KernelCapabilityEntry>& caps) const;
void clear();
bool isSet() const;
// variables
2018-03-22 05:26:22 +00:00
uint16_t getVerMajor() const;
void setVerMajor(uint16_t major);
uint8_t getVerMinor() const;
void setVerMinor(uint8_t minor);
private:
const std::string kModuleName = "KERNEL_VERSION_HANDLER";
static const size_t kMaxKernelCapNum = 1;
bool mIsSet;
KernelVersionEntry mEntry;
};
}
2018-08-07 07:17:51 +00:00
}