rib: ReadvertiseDestination availability

refs: #3818

Change-Id: Ifc2875ba38025595f3d6a8f8207f5ec126f93c90
diff --git a/rib/readvertise/nfd-rib-readvertise-destination.hpp b/rib/readvertise/nfd-rib-readvertise-destination.hpp
index b0cb565..b737d3a 100644
--- a/rib/readvertise/nfd-rib-readvertise-destination.hpp
+++ b/rib/readvertise/nfd-rib-readvertise-destination.hpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2016,  Regents of the University of California,
+ * Copyright (c) 2014-2017,  Regents of the University of California,
  *                           Arizona Board of Regents,
  *                           Colorado State University,
  *                           University Pierre & Marie Curie, Sorbonne University,
@@ -44,7 +44,8 @@
 {
 public:
   NfdRibReadvertiseDestination(ndn::nfd::Controller& controller,
-                               const ndn::Name& commandPrefix);
+                               const ndn::Name& commandPrefix,
+                               Rib& rib);
 
   /** \brief add a name prefix into NFD RIB
    */
@@ -61,8 +62,18 @@
            std::function<void(const std::string&)> failureCb) override;
 
 private:
+  void
+  handleRibAdd(const ndn::Name& name);
+
+  void
+  handleRibRemove(const ndn::Name& name);
+
+private:
   ndn::nfd::Controller& m_controller;
   Name m_commandPrefix;
+
+  signal::ScopedConnection m_ribAddConn;
+  signal::ScopedConnection m_ribRemoveConn;
 };
 
 } // namespace rib