mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
35 lines
897 B
C++
35 lines
897 B
C++
#pragma once
|
|
#include <nx/IKernelCapabilityHandler.h>
|
|
#include <nx/HandleTableSizeEntry.h>
|
|
|
|
namespace nx
|
|
{
|
|
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
|
|
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;
|
|
};
|
|
}
|
|
|