Browse Source

[1975] Run the header through compilation

Added a .cc file so something includes the header file. This is used as
a syntax check for now, there's no useful code yet anyway.
Michal 'vorner' Vaner 13 years ago
parent
commit
128271198f
3 changed files with 17 additions and 1 deletions
  1. 1 0
      src/lib/datasrc/Makefile.am
  2. 15 0
      src/lib/datasrc/container.cc
  3. 1 1
      src/lib/datasrc/container.h

+ 1 - 0
src/lib/datasrc/Makefile.am

@@ -30,6 +30,7 @@ libdatasrc_la_SOURCES += logger.h logger.cc
 libdatasrc_la_SOURCES += client.h iterator.h
 libdatasrc_la_SOURCES += database.h database.cc
 libdatasrc_la_SOURCES += factory.h factory.cc
+libdatasrc_la_SOURCES += container.h container.cc
 nodist_libdatasrc_la_SOURCES = datasrc_messages.h datasrc_messages.cc
 libdatasrc_la_LDFLAGS = -no-undefined -version-info 1:0:1
 

+ 15 - 0
src/lib/datasrc/container.cc

@@ -0,0 +1,15 @@
+// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+#include "container.h"

+ 1 - 1
src/lib/datasrc/container.h

@@ -62,7 +62,7 @@ public:
             datasrc_(datasrc),
             finder_(finder),
             matched_labels_(matched_labels),
-            exact_match(exact_match)
+            exact_match_(exact_match)
         { }
         /// \brief Negative answer constructor.
         ///