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
This commit is contained in:
+2
-2
@@ -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,7 +26,7 @@
|
||||
#ifndef NFD_RIB_FIB_UPDATE_HPP
|
||||
#define NFD_RIB_FIB_UPDATE_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/common.hpp"
|
||||
|
||||
namespace nfd {
|
||||
namespace rib {
|
||||
|
||||
+2
-2
@@ -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,7 +26,7 @@
|
||||
#ifndef NFD_RIB_FIB_UPDATER_HPP
|
||||
#define NFD_RIB_FIB_UPDATER_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/common.hpp"
|
||||
#include "fib-update.hpp"
|
||||
#include "rib.hpp"
|
||||
#include "rib-update-batch.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,7 +26,7 @@
|
||||
#ifndef NFD_RIB_RIB_UPDATE_BATCH_HPP
|
||||
#define NFD_RIB_RIB_UPDATE_BATCH_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/common.hpp"
|
||||
#include "rib-update.hpp"
|
||||
|
||||
namespace nfd {
|
||||
|
||||
+2
-2
@@ -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,7 +26,7 @@
|
||||
#ifndef NFD_RIB_RIB_UPDATE_HPP
|
||||
#define NFD_RIB_RIB_UPDATE_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/common.hpp"
|
||||
#include "route.hpp"
|
||||
|
||||
namespace nfd {
|
||||
|
||||
+4
-8
@@ -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 @@ public:
|
||||
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 @@ PUBLIC_WITH_TESTS_ELSE_PRIVATE:
|
||||
// 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);
|
||||
|
||||
|
||||
+1
-2
@@ -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,7 +26,6 @@
|
||||
#ifndef NFD_RIB_ROUTE_HPP
|
||||
#define NFD_RIB_ROUTE_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/scheduler.hpp"
|
||||
#include <ndn-cxx/encoding/nfd-constants.hpp>
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
#ifndef NFD_RIB_SERVICE_HPP
|
||||
#define NFD_RIB_SERVICE_HPP
|
||||
|
||||
#include "common.hpp"
|
||||
#include "core/common.hpp"
|
||||
#include "core/config-file.hpp"
|
||||
|
||||
#include <ndn-cxx/face.hpp>
|
||||
|
||||
Reference in New Issue
Block a user