From: Francis Dupont Date: Sun, 11 Feb 2018 09:12:16 +0000 (+0100) Subject: [5528] Updated doc, final improvements to tests X-Git-Tag: trac5531_base~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0006fb983cede91ff6dd6477c26f7c3098d0b3c1;p=thirdparty%2Fkea.git [5528] Updated doc, final improvements to tests --- diff --git a/src/lib/dhcpsrv/database_backends.dox b/src/lib/dhcpsrv/database_backends.dox index fa9ae65f4d..4bfbc7f040 100644 --- a/src/lib/dhcpsrv/database_backends.dox +++ b/src/lib/dhcpsrv/database_backends.dox @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/src/lib/dhcpsrv/libdhcpsrv.dox b/src/lib/dhcpsrv/libdhcpsrv.dox index a8dc6cca70..04775b6977 100644 --- a/src/lib/dhcpsrv/libdhcpsrv.dox +++ b/src/lib/dhcpsrv/libdhcpsrv.dox @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -103,9 +103,10 @@ database. This object must implement the \ref isc::dhcp::BaseHostDataSource interface and its implementation is specific to the type of storage holding the reservations. For example, the host data source managing host reservations in the MySQL database is required to establish -connection to the MySQL database and issue specific queries. Once -implemented, the \ref isc::dhcp::HostMgr::create method must be updated -to create an instance of this datasource. Note, that this instance is +connection to the MySQL database and issue specific queries. A factory +method creating an instance of a base host data source object must be +registered (at global object initialization for built-in backends, +dynamically for backends loaded at run-time). Note, that this instance is created as "alternate host data source" as opposed to the primary data source which returns host reservations specified in the configuration file. The primary data source is implemented internally in the