aboutsummaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/cmdq.cpp
blob: ebfeffc0ffd1d77c378c6a826e6bf8c36c65ee64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "cmdq.h"
#include <vespa/fnet/frt/rpcrequest.h>

namespace config::sentinel {

Cmd::~Cmd()
{
    _req->Return();
}

void
Cmd::retError(const char *errorString) const
{
    _req->SetError(FRTE_RPC_METHOD_FAILED, errorString);
}

void
Cmd::retValue(const char *valueString) const
{
    FRT_Values *dst = _req->GetReturn();
    dst->AddString(valueString);
}

}