]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1461] Added references to config_report
authorFrancis Dupont <fdupont@isc.org>
Sun, 22 Nov 2020 14:29:06 +0000 (15:29 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 3 Dec 2020 13:54:21 +0000 (14:54 +0100)
src/bin/agent/ca_controller.cc
src/bin/d2/d2_controller.cc
src/bin/netconf/netconf_controller.cc

index 121458f994992ce1b33467e974394c59410f1f90..f8408315b4ac1852d747810f773ae06172763b56 100644 (file)
@@ -10,6 +10,7 @@
 #include <agent/ca_process.h>
 #include <agent/ca_command_mgr.h>
 #include <agent/parser_context.h>
+#include <cfgrpt/config_report.h>
 #include <functional>
 
 using namespace isc::process;
@@ -105,5 +106,8 @@ CtrlAgentController::getCtrlAgentProcess() {
     return (boost::dynamic_pointer_cast<CtrlAgentProcess>(getProcess()));
 }
 
+// Refer to config_report so it will be embedded in the binary.
+const char* const* ca_config_report = isc::detail::config_report;
+
 } // namespace isc::agent
 } // namespace isc
index ef3d9017d57d938540f705d0269baf0134c7cd8b..dc31b552b7676d387e5ccc71f8a40afdffde83ae 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <config.h>
 
+#include <cfgrpt/config_report.h>
 #include <config/command_mgr.h>
 #include <d2/d2_controller.h>
 #include <d2/d2_process.h>
@@ -122,6 +123,9 @@ D2Controller::parseFile(const std::string& file_name) {
 D2Controller::~D2Controller() {
 }
 
+// Refer to config_report so it will be embedded in the binary.
+const char* const* d2_config_report = isc::detail::config_report;
+
 std::string
 D2Controller::getVersionAddendum() {
     std::stringstream stream;
index c3abc472061aedd8cc6259d361810b09d3d830a7..b55f0b4b04305593da7ac61d5509bae54c1175b3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2020 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
@@ -6,6 +6,7 @@
 
 #include <config.h>
 
+#include <cfgrpt/config_report.h>
 #include <netconf/netconf_controller.h>
 #include <netconf/netconf_process.h>
 #include <netconf/parser_context.h>
@@ -68,5 +69,8 @@ NetconfController::getNetconfProcess() {
     return (boost::dynamic_pointer_cast<NetconfProcess>(getProcess()));
 }
 
+// Refer to config_report so it will be embedded in the binary.
+static const char* const* netconf_config_report = isc::detail::config_report;
+
 } // namespace isc::netconf
 } // namespace isc