aboutsummaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/cmdq.cpp
blob: 489ae97228fadd8be2f92904b25d91815fa09a27 (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 2019 Oath Inc. 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);
}

}