XModule OnUnload

This commit is contained in:
Dr. Chat 2015-07-05 13:47:53 -05:00
parent 4fdebd530f
commit 8210ada448
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,8 @@ bool XModule::Matches(const std::string& name) const {
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,
uint32_t* out_section_size) {
return X_STATUS_UNSUCCESSFUL;

View File

@ -86,6 +86,7 @@ class XModule : public XObject {
protected:
void OnLoad();
void OnUnload();
ModuleType module_type_;
std::string name_;