all: rename Tlv namespace to tlv for consistency
This commit renames the Tlv namespace defined in
tlv.hpp to tlv to be more consistent with tlv::security
and tlv::nfd. A Tlv namespace alias is provided for
backwards compatibility.
Change-Id: I21278d6a077afe7776802c3296997d4c1c44c6c6
diff --git a/src/key-locator.hpp b/src/key-locator.hpp
index 69b458b..33e4584 100644
--- a/src/key-locator.hpp
+++ b/src/key-locator.hpp
@@ -139,7 +139,7 @@
}
totalLength += block.prependVarNumber(totalLength);
- totalLength += block.prependVarNumber(Tlv::KeyLocator);
+ totalLength += block.prependVarNumber(tlv::KeyLocator);
return totalLength;
}
@@ -162,13 +162,13 @@
inline void
KeyLocator::wireDecode(const Block& value)
{
- if (value.type() != Tlv::KeyLocator)
+ if (value.type() != tlv::KeyLocator)
throw Error("Unexpected TLV type during KeyLocator decoding");
m_wire = value;
m_wire.parse();
- if (!m_wire.elements().empty() && m_wire.elements_begin()->type() == Tlv::Name)
+ if (!m_wire.elements().empty() && m_wire.elements_begin()->type() == tlv::Name)
{
m_type = KeyLocator_Name;
m_name.wireDecode(*m_wire.elements_begin());