XModule OnUnload
This commit is contained in:
parent
4fdebd530f
commit
8210ada448
|
@ -67,6 +67,8 @@ bool XModule::Matches(const std::string& name) const {
|
||||||
|
|
||||||
void XModule::OnLoad() { kernel_state_->RegisterModule(this); }
|
void XModule::OnLoad() { kernel_state_->RegisterModule(this); }
|
||||||
|
|
||||||
|
void XModule::OnUnload() { kernel_state_->UnregisterModule(this); }
|
||||||
|
|
||||||
X_STATUS XModule::GetSection(const char* name, uint32_t* out_section_data,
|
X_STATUS XModule::GetSection(const char* name, uint32_t* out_section_data,
|
||||||
uint32_t* out_section_size) {
|
uint32_t* out_section_size) {
|
||||||
return X_STATUS_UNSUCCESSFUL;
|
return X_STATUS_UNSUCCESSFUL;
|
||||||
|
|
|
@ -86,6 +86,7 @@ class XModule : public XObject {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void OnLoad();
|
void OnLoad();
|
||||||
|
void OnUnload();
|
||||||
|
|
||||||
ModuleType module_type_;
|
ModuleType module_type_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
|
|
Loading…
Reference in New Issue