Kea: host_cmds.h Source File

| Kea 3.0.0

host_cmds.h
Go to the documentation of this file.
1// Copyright (C) 2017-2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef HOST_CMDS_H
8#define HOST_CMDS_H
9
10#include <hooks/hooks.h>
11
12#include <boost/shared_ptr.hpp>
13
14namespace isc {
15namespace host_cmds {
16
18class HostCmdsImpl;
19
53 class HostCmds {
54public:
58 HostCmds();
59
88 int
89 reservationAddHandler(hooks::CalloutHandle& handle);
90
122 int
123 reservationGetHandler(hooks::CalloutHandle& handle);
124
164 int
165 reservationDelHandler(hooks::CalloutHandle& handle);
166
186 int
187 reservationGetAllHandler(hooks::CalloutHandle& handle);
188
213 int
214 reservationGetPageHandler(hooks::CalloutHandle& handle);
215
245 int
246 reservationGetByHostnameHandler(hooks::CalloutHandle& handle);
247
268 int
269 reservationGetByIdHandler(hooks::CalloutHandle& handle);
270
300 int
301 reservationGetByAddressHandler(hooks::CalloutHandle& handle);
302
330 int
331 reservationUpdateHandler(hooks::CalloutHandle& handle);
332
333private:
334
336 boost::shared_ptr<HostCmdsImpl> impl_;
337};
338
339} // namespace host_cmds
340} // namespace isc
341
342#endif
isc::hooks::CalloutHandle
Per-packet callout handle.
Definition callout_handle.h:78
isc::host_cmds::HostCmdsImpl
Wrapper class around reservation command handlers.
Definition host_cmds.cc:42
isc::host_cmds::HostCmds::reservationGetPageHandler
int reservationGetPageHandler(hooks::CalloutHandle &handle)
reservation-get-page command handler
Definition host_cmds.cc:1552
isc::host_cmds::HostCmds::reservationGetAllHandler
int reservationGetAllHandler(hooks::CalloutHandle &handle)
reservation-get-all command handler
Definition host_cmds.cc:1547
isc::host_cmds::HostCmds::reservationGetByAddressHandler
int reservationGetByAddressHandler(hooks::CalloutHandle &handle)
reservation-get-by-address command handler
Definition host_cmds.cc:1572
isc::host_cmds::HostCmds::HostCmds
HostCmds()
Constructor.
Definition host_cmds.cc:1527
isc::host_cmds::HostCmds::reservationGetByHostnameHandler
int reservationGetByHostnameHandler(hooks::CalloutHandle &handle)
reservation-get-by-hostname command handler
Definition host_cmds.cc:1557
isc::host_cmds::HostCmds::reservationUpdateHandler
int reservationUpdateHandler(hooks::CalloutHandle &handle)
reservation-update command handler
Definition host_cmds.cc:1567
isc::host_cmds::HostCmds::reservationGetHandler
int reservationGetHandler(hooks::CalloutHandle &handle)
reservation-get command handler
Definition host_cmds.cc:1537
isc::host_cmds::HostCmds::reservationAddHandler
int reservationAddHandler(hooks::CalloutHandle &handle)
reservation-add command handler
Definition host_cmds.cc:1532
isc::host_cmds::HostCmds::reservationDelHandler
int reservationDelHandler(hooks::CalloutHandle &handle)
reservation-del command handler
Definition host_cmds.cc:1542
isc::host_cmds::HostCmds::reservationGetByIdHandler
int reservationGetByIdHandler(hooks::CalloutHandle &handle)
reservation-get-by-id command handler
Definition host_cmds.cc:1562
hooks.h
isc::host_cmds
Definition host_cmds.cc:39
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148