Help text for target driver passthrough commands
This commit is contained in:
@@ -17,6 +17,7 @@ namespace TargetController::Responses
|
||||
TARGET_STACK_POINTER,
|
||||
TARGET_PROGRAM_COUNTER,
|
||||
PROGRAM_BREAKPOINT,
|
||||
TARGET_PASSTHROUGH_HELP_TEXT,
|
||||
TARGET_PASSTHROUGH_RESPONSE,
|
||||
};
|
||||
}
|
||||
|
||||
24
src/TargetController/Responses/TargetPassthroughHelpText.hpp
Normal file
24
src/TargetController/Responses/TargetPassthroughHelpText.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Response.hpp"
|
||||
|
||||
namespace TargetController::Responses
|
||||
{
|
||||
class TargetPassthroughHelpText: public Response
|
||||
{
|
||||
public:
|
||||
static constexpr ResponseType type = ResponseType::TARGET_PASSTHROUGH_RESPONSE;
|
||||
|
||||
std::string text;
|
||||
|
||||
explicit TargetPassthroughHelpText(std::string&& text)
|
||||
: text(std::move(text))
|
||||
{}
|
||||
|
||||
[[nodiscard]] ResponseType getType() const override {
|
||||
return TargetPassthroughHelpText::type;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user