From: Marcin Siodelski Date: Tue, 14 May 2019 19:23:50 +0000 (+0200) Subject: [#603,!322] Register MySQL backend for v6 in mysql_cb hooks library. X-Git-Tag: Kea-1.6.0-beta~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e103d1a5651ab1cefd6f3edea88ea097e11250;p=thirdparty%2Fkea.git [#603,!322] Register MySQL backend for v6 in mysql_cb hooks library. --- diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc b/src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc index 5a23969a8e..f1eac40b8e 100644 --- a/src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc +++ b/src/hooks/dhcp/mysql_cb/mysql_cb_callouts.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2018-2019 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 @@ -11,6 +11,7 @@ #include #include #include +#include using namespace isc::hooks; @@ -23,8 +24,9 @@ extern "C" { int load(LibraryHandle& /* handle */) { - // Register MySQL CB factory with CB Manager + // Register MySQL CB factories with CB Managers isc::dhcp::MySqlConfigBackendDHCPv4::registerBackendType(); + isc::dhcp::MySqlConfigBackendDHCPv6::registerBackendType(); return (0); } @@ -34,8 +36,9 @@ int load(LibraryHandle& /* handle */) { /// @return 0 if deregistration was successful, 1 otherwise int unload() { - // Unregister the factory and remove MySQL backends + // Unregister the factories and remove MySQL backends isc::dhcp::MySqlConfigBackendDHCPv4::unregisterBackendType(); + isc::dhcp::MySqlConfigBackendDHCPv6::unregisterBackendType(); return (0); }