summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/check-completion-handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/check-completion-handler.cpp')
-rw-r--r--configd/src/apps/sentinel/check-completion-handler.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/check-completion-handler.cpp b/configd/src/apps/sentinel/check-completion-handler.cpp
new file mode 100644
index 00000000000..3ccda17e617
--- /dev/null
+++ b/configd/src/apps/sentinel/check-completion-handler.cpp
@@ -0,0 +1,20 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "check-completion-handler.h"
+
+namespace config::sentinel {
+
+CheckCompletionHandler::CheckCompletionHandler(FRT_RPCRequest *parent)
+ : _parentRequest(parent)
+{
+}
+
+CheckCompletionHandler::~CheckCompletionHandler() = default;
+
+void CheckCompletionHandler::returnStatus(bool ok) {
+ FRT_Values *dst = _parentRequest->GetReturn();
+ dst->AddString(ok ? "ok" : "bad");
+ _parentRequest->Return();
+}
+
+}