[ndnSIM] face: Add GeoTag processing in the generic link service
Change-Id: I6d679b85758bd6a105bd72ac50df7e61fae9b1eb
diff --git a/daemon/face/generic-link-service.hpp b/daemon/face/generic-link-service.hpp
index 7a86b09..b2faea3 100644
--- a/daemon/face/generic-link-service.hpp
+++ b/daemon/face/generic-link-service.hpp
@@ -31,6 +31,8 @@
#include "lp-reassembler.hpp"
#include "lp-reliability.hpp"
+#include <ndn-cxx/lp/tags.hpp>
+
namespace nfd {
namespace face {
@@ -164,6 +166,12 @@
* being set with canOverrideMtuTo().
*/
ssize_t overrideMtu = std::numeric_limits<ssize_t>::max();
+
+ /** \brief Enable encoding and decoding of GeoTags
+ *
+ * To enable, set value of enableGeoTags option to a function that generates `shared_ptr<GeoTag>`
+ */
+ std::function<std::shared_ptr<ndn::lp::GeoTag>()> enableGeoTags;
};
/** \brief counters provided by GenericLinkService