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/management/nfd-fib-entry.hpp b/src/management/nfd-fib-entry.hpp
index 77b4369..1086707 100644
--- a/src/management/nfd-fib-entry.hpp
+++ b/src/management/nfd-fib-entry.hpp
@@ -42,10 +42,10 @@
class NextHopRecord
{
public:
- class Error : public Tlv::Error
+ class Error : public tlv::Error
{
public:
- Error(const std::string& what) : Tlv::Error(what) {}
+ Error(const std::string& what) : tlv::Error(what) {}
};
NextHopRecord()
@@ -189,10 +189,10 @@
class FibEntry
{
public:
- class Error : public Tlv::Error
+ class Error : public tlv::Error
{
public:
- Error(const std::string& what) : Tlv::Error(what)
+ Error(const std::string& what) : tlv::Error(what)
{
}
};
@@ -307,7 +307,7 @@
{
throw Error("Unexpected end of FibEntry");
}
- else if (val->type() != Tlv::Name)
+ else if (val->type() != tlv::Name)
{
std::stringstream error;
error << "Expected Name, but Block is of a different type: #"