Help text for target driver passthrough commands
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "src/TargetController/Commands/EnableProgrammingMode.hpp"
|
||||
#include "src/TargetController/Commands/DisableProgrammingMode.hpp"
|
||||
#include "src/TargetController/Commands/Shutdown.hpp"
|
||||
#include "src/TargetController/Commands/GetTargetPassthroughHelpText.hpp"
|
||||
#include "src/TargetController/Commands/InvokeTargetPassthroughCommand.hpp"
|
||||
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
|
||||
@@ -54,6 +56,7 @@ namespace Services
|
||||
using TargetController::Commands::EnableProgrammingMode;
|
||||
using TargetController::Commands::DisableProgrammingMode;
|
||||
using TargetController::Commands::Shutdown;
|
||||
using TargetController::Commands::GetTargetPassthroughHelpText;
|
||||
using TargetController::Commands::InvokeTargetPassthroughCommand;
|
||||
|
||||
using Targets::TargetDescriptor;
|
||||
@@ -346,6 +349,14 @@ namespace Services
|
||||
);
|
||||
}
|
||||
|
||||
std::string TargetControllerService::getTargetPassthroughHelpText() const {
|
||||
return this->commandManager.sendCommandAndWaitForResponse(
|
||||
std::make_unique<GetTargetPassthroughHelpText>(),
|
||||
this->defaultTimeout,
|
||||
this->activeAtomicSessionId
|
||||
)->text;
|
||||
}
|
||||
|
||||
std::optional<Targets::PassthroughResponse> TargetControllerService::invokeTargetPassthroughCommand(
|
||||
Targets::PassthroughCommand&& command
|
||||
) const {
|
||||
|
||||
@@ -268,6 +268,8 @@ namespace Services
|
||||
*/
|
||||
void shutdown() const;
|
||||
|
||||
std::string getTargetPassthroughHelpText() const;
|
||||
|
||||
std::optional<Targets::PassthroughResponse> invokeTargetPassthroughCommand(
|
||||
Targets::PassthroughCommand&& command
|
||||
) const;
|
||||
|
||||
Reference in New Issue
Block a user