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

37 lines
921 B
C
Raw Normal View History

#pragma once
2018-08-07 07:17:51 +00:00
#include <nn/hac/IKernelCapabilityHandler.h>
#include <nn/hac/HandleTableSizeEntry.h>
2018-08-07 07:17:51 +00:00
namespace nn
{
namespace hac
{
class HandleTableSizeHandler :
public IKernelCapabilityHandler
{
public:
HandleTableSizeHandler();
void operator=(const HandleTableSizeHandler& other);
bool operator==(const HandleTableSizeHandler& other) const;
bool operator!=(const HandleTableSizeHandler& 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 getHandleTableSize() const;
void setHandleTableSize(uint16_t size);
private:
const std::string kModuleName = "HANDLE_TABLE_SIZE_HANDLER";
static const size_t kMaxKernelCapNum = 1;
bool mIsSet;
HandleTableSizeEntry mEntry;
};
}
2018-08-07 07:17:51 +00:00
}