Skip to content

Commit 41f1027

Browse files
committed
docs: Add page on integrating a new action
1 parent a9d4554 commit 41f1027

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/contributing.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ certainly require some changes before accepting.
4343
:maxdepth: 2
4444

4545
contributing/creating-a-new-release
46-
contributing/adding-a-new-action
4746
contributing/recording-with-asciinema
4847

4948
contributing/git-guidelines

docs/develop.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ For standard installation instructions please refer to the :doc:`installation gu
2121
develop/new-controller
2222
develop/integrating-a-controller
2323
develop/debugging-a-controller
24+
develop/adding-a-new-action
2425

2526
develop/cloe-ui

docs/contributing/adding-a-new-action.rst renamed to docs/develop/adding-a-new-action.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ Then we come to the source for the ``Log`` action:
3939
Log(const std::string& name, LogLevel level, const std::string& msg)
4040
: Action(name), level_(level), msg_(msg) {}
4141
ActionPtr clone() const override { return std::make_unique<Log>(name(), level_, msg_); }
42-
void operator()(const Sync&, TriggerRegistrar&) override {
42+
CallbackResult operator()(const Sync&, TriggerRegistrar&) override {
4343
logger()->log(level_, msg_.c_str());
44+
return CallbackResult::Ok;
4445
}
4546
bool is_significant() const override { return false; }
4647

0 commit comments

Comments
 (0)