From: Tomek Mrugalski Date: Tue, 8 Sep 2015 12:56:20 +0000 (+0200) Subject: [3983] defaults.h moved to src (after Marcin's review) X-Git-Tag: fd4o6_base~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca862a017170ba286d5bd122dcfffb761bd83f2;p=thirdparty%2Fkea.git [3983] defaults.h moved to src (after Marcin's review) --- diff --git a/src/Makefile.am b/src/Makefile.am index 57ee342196..c04f336ddf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,4 +3,5 @@ SUBDIRS = lib bin hooks EXTRA_DIST = \ cppcheck-suppress.lst \ valgrind-suppressions \ - valgrind-suppressions.revisit + valgrind-suppressions.revisit \ + defaults.h diff --git a/src/bin/dhcp4/Makefile.am b/src/bin/dhcp4/Makefile.am index f7f6e008f9..2a3810049e 100644 --- a/src/bin/dhcp4/Makefile.am +++ b/src/bin/dhcp4/Makefile.am @@ -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) diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc index ec3d1116e1..36e06cb749 100644 --- a/src/bin/dhcp4/json_config_parser.cc +++ b/src/bin/dhcp4/json_config_parser.cc @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -31,6 +30,7 @@ #include #include #include +#include #include #include diff --git a/src/bin/dhcp4/tests/Makefile.am b/src/bin/dhcp4/tests/Makefile.am index cc7d534da6..3e46d34a47 100644 --- a/src/bin/dhcp4/tests/Makefile.am +++ b/src/bin/dhcp4/tests/Makefile.am @@ -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 diff --git a/src/bin/dhcp4/tests/config_parser_unittest.cc b/src/bin/dhcp4/tests/config_parser_unittest.cc index 46ee547d10..4b879efe20 100644 --- a/src/bin/dhcp4/tests/config_parser_unittest.cc +++ b/src/bin/dhcp4/tests/config_parser_unittest.cc @@ -32,8 +32,8 @@ #include #include #include -#include #include +#include #include "marker_file.h" #include "test_libraries.h" diff --git a/src/bin/dhcp6/Makefile.am b/src/bin/dhcp6/Makefile.am index b7fe65abf0..7da28a5973 100644 --- a/src/bin/dhcp6/Makefile.am +++ b/src/bin/dhcp6/Makefile.am @@ -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) diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index e6d43535dd..89302225ac 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/src/bin/dhcp6/json_config_parser.cc @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -37,6 +36,7 @@ #include #include #include +#include #include #include diff --git a/src/bin/dhcp6/tests/Makefile.am b/src/bin/dhcp6/tests/Makefile.am index f00c7520dd..61e1624e45 100644 --- a/src/bin/dhcp6/tests/Makefile.am +++ b/src/bin/dhcp6/tests/Makefile.am @@ -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\" diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc index 26c9732903..0d305267de 100644 --- a/src/bin/dhcp6/tests/config_parser_unittest.cc +++ b/src/bin/dhcp6/tests/config_parser_unittest.cc @@ -27,11 +27,11 @@ #include #include #include -#include #include #include #include #include +#include #include "test_data_files_config.h" #include "test_libraries.h" diff --git a/src/lib/dhcpsrv/defaults.h b/src/defaults.h similarity index 88% rename from src/lib/dhcpsrv/defaults.h rename to src/defaults.h index 2addfacd74..a4bec1587d 100644 --- a/src/lib/dhcpsrv/defaults.h +++ b/src/defaults.h @@ -14,7 +14,10 @@ /// @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