core: move common.hpp to core/
Headers in core/ are now included as `#include "core/*.hpp"`.
This allows NFD to rely less on include paths when used as a submodule in
another codebase, such as ndnSIM and NFD-Android.
refs #3127
Change-Id: Ia38f3c97427e17ff7b5401281f1fe875b5d5313e
diff --git a/rib/rib.hpp b/rib/rib.hpp
index 2e13692..db452b4 100644
--- a/rib/rib.hpp
+++ b/rib/rib.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -26,8 +26,6 @@
#ifndef NFD_RIB_RIB_HPP
#define NFD_RIB_RIB_HPP
-#include "common.hpp"
-
#include "rib-entry.hpp"
#include "rib-update-batch.hpp"
@@ -131,6 +129,9 @@
void
onRouteExpiration(const Name& prefix, const Route& route);
+ void
+ insert(const Name& prefix, const Route& route);
+
private:
/** \brief adds the passed update to a RibUpdateBatch and adds the batch to
* the end of the update queue.
@@ -161,11 +162,6 @@
// Used by RibManager unit-tests to get sent batch to simulate successful FIB update
function<void(RibUpdateBatch)> m_onSendBatchFromQueue;
-public:
- void
- insert(const Name& prefix, const Route& route);
-
-PUBLIC_WITH_TESTS_ELSE_PRIVATE:
void
erase(const Name& prefix, const Route& route);