]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3983] defaults.h moved to src (after Marcin's review)
authorTomek Mrugalski <tomasz@isc.org>
Tue, 8 Sep 2015 12:56:20 +0000 (14:56 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 8 Sep 2015 12:56:20 +0000 (14:56 +0200)
src/Makefile.am
src/bin/dhcp4/Makefile.am
src/bin/dhcp4/json_config_parser.cc
src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp6/Makefile.am
src/bin/dhcp6/json_config_parser.cc
src/bin/dhcp6/tests/Makefile.am
src/bin/dhcp6/tests/config_parser_unittest.cc
src/defaults.h [moved from src/lib/dhcpsrv/defaults.h with 88% similarity]

index 57ee342196f72110556d28b14a508d3c4fea8b57..c04f336ddf9b9e4a43860c1ec49db3a10497c91c 100644 (file)
@@ -3,4 +3,5 @@ SUBDIRS = lib bin hooks
 EXTRA_DIST = \
        cppcheck-suppress.lst           \
        valgrind-suppressions           \
-       valgrind-suppressions.revisit
+       valgrind-suppressions.revisit   \
+        defaults.h
index f7f6e008f95012e552e2a89181043f3c311fda7d..2a3810049efb8eb4a23c1359efaf5985d3d4a8be 100644 (file)
@@ -2,6 +2,7 @@ SUBDIRS = . tests
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
+AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
 AM_CPPFLAGS += $(BOOST_INCLUDES)
 if HAVE_MYSQL
 AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
index ec3d1116e10c4d25742ea0b2fe7014717d274fdc..36e06cb749180491555761bd1420b01968a4bba8 100644 (file)
@@ -21,7 +21,6 @@
 #include <dhcpsrv/cfg_option.h>
 #include <dhcpsrv/cfgmgr.h>
 #include <dhcp4/json_config_parser.h>
-#include <dhcpsrv/defaults.h>
 #include <dhcpsrv/option_space_container.h>
 #include <dhcpsrv/parsers/dbaccess_parser.h>
 #include <dhcpsrv/parsers/dhcp_parsers.h>
@@ -31,6 +30,7 @@
 #include <config/command_mgr.h>
 #include <util/encode/hex.h>
 #include <util/strutil.h>
+#include <defaults.h>
 
 #include <boost/foreach.hpp>
 #include <boost/lexical_cast.hpp>
index cc7d534da68fc2a4942115600192adb4e016d32f..3e46d34a47703e5f0c9f21d6127db8deccbb1fe0 100644 (file)
@@ -17,6 +17,7 @@ check-local:
        done
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
+AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
 AM_CPPFLAGS += -I$(top_builddir)/src/bin # for generated spec_config.h header
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin
 AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
index 46ee547d10f6372951cb981cdbaea0eca5dc6657..4b879efe20511e4ca2b7f29e78e2bfae808ef50a 100644 (file)
@@ -32,8 +32,8 @@
 #include <dhcpsrv/cfg_hosts.h>
 #include <dhcpsrv/cfg_subnets4.h>
 #include <dhcpsrv/testutils/config_result_check.h>
-#include <dhcpsrv/defaults.h>
 #include <hooks/hooks_manager.h>
+#include <defaults.h>
 
 #include "marker_file.h"
 #include "test_libraries.h"
index b7fe65abf073b4f01331fb936421ecea92e04704..7da28a597329cead9879353ea7f686eb0ac5e6c1 100644 (file)
@@ -3,6 +3,7 @@ SUBDIRS = . tests
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
 AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc
+AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
 AM_CPPFLAGS += $(BOOST_INCLUDES)
 if HAVE_MYSQL
 AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
index e6d43535dda7e7bd8019f9e082f843e83e94cc30..89302225acfe6d9cad5deceb848efb90178f49f0 100644 (file)
@@ -27,7 +27,6 @@
 #include <dhcpsrv/pool.h>
 #include <dhcpsrv/subnet.h>
 #include <dhcpsrv/triplet.h>
-#include <dhcpsrv/defaults.h>
 #include <dhcpsrv/parsers/dbaccess_parser.h>
 #include <dhcpsrv/parsers/dhcp_config_parser.h>
 #include <dhcpsrv/parsers/dhcp_parsers.h>
@@ -37,6 +36,7 @@
 #include <log/logger_support.h>
 #include <util/encode/hex.h>
 #include <util/strutil.h>
+#include <defaults.h>
 
 #include <boost/algorithm/string.hpp>
 #include <boost/foreach.hpp>
index f00c7520dd7c19a32a8f6712baf359284bd1cf2b..61e1624e458ec8a4e7884d252e97ff6a91fc5e02 100644 (file)
@@ -20,6 +20,7 @@ check-local:
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_builddir)/src/bin # for generated spec_config.h header
 AM_CPPFLAGS += -I$(top_srcdir)/src/bin
+AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_builddir)/src
 AM_CPPFLAGS += -DTOP_BUILDDIR="\"$(top_builddir)\""
 AM_CPPFLAGS += $(BOOST_INCLUDES)
 AM_CPPFLAGS += -DTEST_DATA_DIR=\"$(abs_top_srcdir)/src/lib/testutils/testdata\"
index 26c97329030de352a177d1520f77d5fc8d759473..0d305267de7b7e96785e34a63f7483c2bf2defd4 100644 (file)
 #include <dhcpsrv/addr_utilities.h>
 #include <dhcpsrv/cfgmgr.h>
 #include <dhcpsrv/cfg_hosts.h>
-#include <dhcpsrv/defaults.h>
 #include <dhcpsrv/subnet.h>
 #include <dhcpsrv/subnet_selector.h>
 #include <dhcpsrv/testutils/config_result_check.h>
 #include <hooks/hooks_manager.h>
+#include <defaults.h>
 
 #include "test_data_files_config.h"
 #include "test_libraries.h"
similarity index 88%
rename from src/lib/dhcpsrv/defaults.h
rename to src/defaults.h
index 2addfacd746fe130c66ffc0fc6edef44d2943d34..a4bec1587db98d77fd28c22cf16898dcee64898c 100644 (file)
 
 /// @file   defaults.h
 /// 
-/// @brief Contains the default values of the server.
+/// @brief Contains the default values for various parameters.
+///
+/// While the content of this file is currently small, it is envisaged that it
+/// will grow over time.
 
 #ifndef DEFAULTS_H
 #define DEFAULTS_H