Skip to content

QuantumGate::Local::AddExtenderModule

Karel Donk edited this page Jun 17, 2018 · 4 revisions

Adds an extender module to the instance with all its extenders. If the instance is running, all the extenders that were added from the module get started. If any extender from the module fails to get added, all extenders from the module get shut down and removed and the module isn't added.

Signature

Result<> AddExtenderModule(const Path& module_path) noexcept;

Parameters

Name Description
module_path A QuantumGate::Path object containing the path to the module file. See QuantumGate Extender Modules for more details.

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::Failed The operation failed.
QuantumGate::ResultCode::ExtenderModuleAlreadyPresent The operation failed because the extender module is already present (it may have previously been added).
QuantumGate::ResultCode::ExtenderModuleLoadFailure The operation failed because the extender module failed to load.
Clone this wiki locally