Rename ndn_BinaryXMLDecoder_readDTag to ndn_BinaryXMLDecoder_readElementStartDTag
diff --git a/ndn-cpp/c/encoding/BinaryXMLDecoder.c b/ndn-cpp/c/encoding/BinaryXMLDecoder.c
index 6a8900a..62300ff 100644
--- a/ndn-cpp/c/encoding/BinaryXMLDecoder.c
+++ b/ndn-cpp/c/encoding/BinaryXMLDecoder.c
@@ -57,7 +57,7 @@
return 0;
}
-char *ndn_BinaryXMLDecoder_readDTag(struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag)
+char *ndn_BinaryXMLDecoder_readElementStartDTag(struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag)
{
char *error;
unsigned int type;
@@ -66,10 +66,10 @@
return error;
if (type != ndn_BinaryXML_DTAG)
- return "ndn_BinaryXMLDecoder_readDTag: header type is not a DTAG";
+ return "ndn_BinaryXMLDecoder_readElementStartDTag: header type is not a DTAG";
if (value != expectedTag)
- return "ndn_BinaryXMLDecoder_readDTag: did not get the expected DTAG";
+ return "ndn_BinaryXMLDecoder_readElementStartDTag: did not get the expected DTAG";
return 0;
}
@@ -80,7 +80,7 @@
return "ndn_BinaryXMLDecoder_readElementClose: read past the end of the input";
if (unsafeReadOctet(self) != ndn_BinaryXML_CLOSE)
- return "ndn_BinaryXMLDecoder_readDTag: did not get the expected element close";
+ return "ndn_BinaryXMLDecoder_readElementStartDTag: did not get the expected element close";
return 0;
}
@@ -116,7 +116,7 @@
(struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, int allowNull, unsigned char **value, unsigned int *valueLen)
{
char *error;
- if (error = ndn_BinaryXMLDecoder_readDTag(self, expectedTag))
+ if (error = ndn_BinaryXMLDecoder_readElementStartDTag(self, expectedTag))
return error;
if (allowNull) {