meta-info: deprecate MetaInfo::TYPE_* constants
The following items are deprecated:
* tlv::ContentType_Default
* MetaInfo::TYPE_DEFAULT
* MetaInfo::TYPE_BLOB
* MetaInfo::TYPE_LINK
* MetaInfo::TYPE_KEY
* MetaInfo::TYPE_NACK
refs #2128
Change-Id: I01f0aa0dd27d32a18a9fff79401b5784d9ddcb10
diff --git a/src/encoding/tlv.hpp b/src/encoding/tlv.hpp
index 284ca26..6a7589e 100644
--- a/src/encoding/tlv.hpp
+++ b/src/encoding/tlv.hpp
@@ -95,12 +95,32 @@
SignatureSha256WithEcdsa = 3
};
+/** @brief indicates a possible value of ContentType field
+ */
enum ContentTypeValue {
- ContentType_Default = 0,
+ /** @brief indicates content is the actual data bits
+ */
+ ContentType_Blob = 0,
+
+ /** @brief indicates content is another name which identifies actual data content
+ */
ContentType_Link = 1,
- ContentType_Key = 2
+
+ /** @brief indicates content is a public key
+ */
+ ContentType_Key = 2,
+
+ /** @brief indicates a producer generated NACK
+ * @warning Experimental. Not defined in NDN-TLV spec.
+ */
+ ContentType_Nack = 3
};
+/** @deprecated use ContentType_Blob
+ */
+static const uint32_t DEPRECATED(ContentType_Default) = ContentType_Blob;
+
+
/**
* @brief Read VAR-NUMBER in NDN-TLV encoding
*