cleaned up entry point for dpm core
This commit is contained in:
@@ -86,4 +86,20 @@ int main_list_modules(const ModuleLoader& loader);
|
||||
*/
|
||||
int main_show_help();
|
||||
|
||||
/**
|
||||
* @brief Executes a DPM module with the specified command
|
||||
*
|
||||
* Attempts to execute the specified module with the given command string and
|
||||
* handles any errors that occur during execution. If the execution is successful,
|
||||
* returns 0. If an error occurs, constructs an appropriate error context and
|
||||
* processes it through the error handling system.
|
||||
*
|
||||
* @param loader Reference to a ModuleLoader object that provides access to modules
|
||||
* @param module_name Name of the module to execute
|
||||
* @param command Command string to pass to the module
|
||||
* @return 0 on successful execution, appropriate error code otherwise
|
||||
*/
|
||||
int main_execute_module( const ModuleLoader& loader, std::string module_name, std::string command );
|
||||
|
||||
|
||||
/** @} */ // end of dpm_interface group
|
||||
Reference in New Issue
Block a user