]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3664] Minor changes as a result of the review.
authorMarcin Siodelski <marcin@isc.org>
Thu, 22 Jan 2015 15:31:04 +0000 (16:31 +0100)
committerMarcin Siodelski <marcin@isc.org>
Thu, 22 Jan 2015 15:31:04 +0000 (16:31 +0100)
- Fixed identation in configure.ac
- Added kea-lfc to Doxygen
- Corrected some little typos in the kea-lfc man page
- Removed unnecessary headers and libraries
- lfc.h updated - one comment, one method made const
- added anonymous namespace for lfc_controller_unittests.cc

configure.ac
doc/Doxyfile
src/bin/lfc/Makefile.am
src/bin/lfc/kea-lfc.xml
src/bin/lfc/lfc.cc
src/bin/lfc/lfc.h
src/bin/lfc/tests/Makefile.am
src/bin/lfc/tests/lfc_controller_unittests.cc

index b49136501a23b17b96d78eabd90857a0d5a5cf2d..6ddd3f6dbee2da7d42aa243337e22901d566231d 100644 (file)
@@ -1393,8 +1393,8 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  src/bin/keactrl/keactrl.conf
                  src/bin/keactrl/tests/Makefile
                  src/bin/keactrl/tests/keactrl_tests.sh
-                src/bin/lfc/Makefile
-                src/bin/lfc/tests/Makefile
+                 src/bin/lfc/Makefile
+                 src/bin/lfc/tests/Makefile
                  src/bin/perfdhcp/Makefile
                  src/bin/perfdhcp/tests/Makefile
                  src/bin/perfdhcp/tests/testdata/Makefile
index a78375eef1e420456b84bde06fca807ad8484748..b27ce0eb31c26d786f452c7d93a585f04a1154be 100644 (file)
@@ -650,6 +650,7 @@ INPUT                  = ../src/bin/d2 \
                          ../src/bin/dhcp6 \
                          ../src/bin/perfdhcp \
                          ../src/bin/sockcreator \
+                         ../src/bin/lfc \
                          ../src/hooks/dhcp/user_chk \
                          ../src/lib/asiolink \
                          ../src/lib/cc \
index c2926f6f39aff5a6e9077e3e0bd2d2e0c5930a07..0b30b1816793743c3f49c162c1bbfa30937895aa 100644 (file)
@@ -60,15 +60,9 @@ kea_lfc_SOURCES  = main.cc
 kea_lfc_LDADD  = liblfc.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
 kea_lfc_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
-kea_lfc_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
 
 kea_lfcdir = $(pkgdatadir)
index 5473c3cec54bc0580faa93039d7312ef6fdafd56..67c40b4724bff1b222b4e518d6168895b12ffd40 100644 (file)
@@ -61,7 +61,7 @@
     <para>
       The <command>kea-lfc</command> service process removes redundant
       information for the files used to provide persistent storage for
-      the memfile data base back end.  The service is written to run as
+      the memfile data base backend.  The service is written to run as
       a stand alone process.  While it can be started externally it
       should be started by the Kea DHCP servers as desired and required.
     </para>
       <varlistentry>
         <term><option>-i</option></term>
         <listitem><para>
-          Input or copy of lease file - Before the DHCP serves invokes LFC it will move
+          Input or copy of lease file - Before the DHCP server invokes LFC it will move
          the current lease file to this file and then call LFC with the new file.
         </para></listitem>
       </varlistentry>
           this file to previous lease file.
         </para></listitem>
       </varlistentry>
-
-      <varlistentry>
-        <term><option>-c</option></term>
-        <listitem><para>
-          
-        </para></listitem>
-      </varlistentry>
-
     </variablelist>
   </refsect1>
 
index f8e3b450e490e46af4537db6b1d91cde42add2b9..8fc26d0f249028b25ee132d11116e0d0de086b7a 100644 (file)
@@ -14,8 +14,6 @@
 
 #include <lfc/lfc.h>
 #include <exceptions/exceptions.h>
-#include <log/logger_support.h>
-#include <log/logger_manager.h>
 #include <config.h>
 #include <iostream>
 
index ec79f7a187f198154b7da80c4a6f3af7c68f4990..a85bb96fd5429d83aba7f21a7e5e4ebda9f0915e 100644 (file)
@@ -50,12 +50,12 @@ public:
     /// @brief Acts as the primary entry point to start execution
     /// of the process.  Provides the control logic:
     ///
-    /// 1. parse command line arguments
-    /// 2. verifies that it is the only instance
-    /// 3. creates pid file (TBD)
-    /// .... TBD
-    /// 4. remove pid file (TBD)
-    /// 5. exit to the caller
+    /// -# parse command line arguments
+    /// -# verifies that it is the only instance
+    /// -# creates pid file (TBD)
+    /// -# .... TBD
+    /// -# remove pid file (TBD)
+    /// -# exit to the caller
     void launch(int argc, char* argv[], const bool test_mode);
 
     /// @brief Process the command line arguments.  It is the first
@@ -80,7 +80,7 @@ public:
     /// @brief Gets the protocol version of the leaes files
     ///
     /// @return Returns the value of the protocol version
-    int getProtocolVersion() {
+    int getProtocolVersion() const {
       return (protocol_version_);
     }
 
@@ -137,7 +137,7 @@ private:
     std::string pid_file_;
 };
 
-}; // namespace isc:lfc
+}; // namespace isc::lfc
 }; // namespace isc
 
 #endif
index 23ea485887759ad3e153c3fa0f615a81daab7b37..9e799a2d81a79f9b0b63d86ec505ec863f915e55 100644 (file)
@@ -53,17 +53,10 @@ lfc_unittests_LDADD = $(GTEST_LDADD)
 lfc_unittests_LDADD += $(top_builddir)/src/bin/lfc/liblfc.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/asiodns/libkea-asiodns.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/cc/libkea-cc.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/dhcpsrv/testutils/libdhcpsrvtest.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
 lfc_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
-lfc_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
 
 endif
 
index 76753dbb9c840c254fed49678f87c05476bdc544..de5f0f91f8d842a8cad0753f82c7dc9550660da7 100644 (file)
 // PERFORMANCE OF THIS SOFTWARE.
 
 #include <lfc/lfc.h>
-#include <log/logger_support.h>
 #include <gtest/gtest.h>
 
 using namespace isc::lfc;
 using namespace std;
 
+namespace {
+
 TEST(lfcControllerTest, initialValues) {
     lfcController lfcController;
 
@@ -154,3 +155,5 @@ TEST(lfcControllerTest, someBadData) {
 
     EXPECT_THROW(lfcController.parseArgs(argc, argv), InvalidUsage);
 }
+
+} // end of anonymous namespace