src: Creating daemon/common.hpp for all generic includes and import of commonly used abstractions to ndn namespace
This commit also update CS interface (find should return
shared_ptr<Data>, CS entry is internal to CS, the design diagrams are
corrected too).
Change-Id: Ib6377b6d9b8478640ac35d3cfb6c9180cc57c4fe
diff --git a/daemon/table/cs.cpp b/daemon/table/cs.cpp
index fdf5168..d437dbd 100644
--- a/daemon/table/cs.cpp
+++ b/daemon/table/cs.cpp
@@ -7,6 +7,7 @@
// XXX This is a fake CS that does not cache anything.
#include "cs.hpp"
+
namespace ndn {
Cs::Cs()
@@ -18,16 +19,16 @@
}
bool
-Cs::insert(boost::shared_ptr<Data> data)
+Cs::insert(shared_ptr<Data> data)
{
return false;
}
-boost::shared_ptr<cs::Entry>
+shared_ptr<Data>
Cs::find(const Interest& interest)
{
- return boost::shared_ptr<cs::Entry>();
+ return shared_ptr<Data>();
}
-};//namespace ndn
+} //namespace ndn