Code style: Rename BinaryXML to BinaryXml
diff --git a/ndn-cpp/transport/TcpTransport.cpp b/ndn-cpp/transport/TcpTransport.cpp
index 044901b..1f217f0 100644
--- a/ndn-cpp/transport/TcpTransport.cpp
+++ b/ndn-cpp/transport/TcpTransport.cpp
@@ -21,7 +21,7 @@
// TODO: This belongs in the socket listener.
const unsigned int initialLength = 1000;
// Automatically cast ndn_ to (struct ndn_ElementListener *)
- ndn_BinaryXMLElementReader_init
+ ndn_BinaryXmlElementReader_init
(&elementReader_, &ndn, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
// TODO: Properly indicate connected status.
@@ -44,7 +44,7 @@
if (error = ndn_TcpTransport_receive(&transport_, buffer, sizeof(buffer), &nBytes))
throw std::runtime_error(ndn_getErrorString(error));
- ndn_BinaryXMLElementReader_onReceivedData(&elementReader_, buffer, nBytes);
+ ndn_BinaryXmlElementReader_onReceivedData(&elementReader_, buffer, nBytes);
} catch (...) {
// This function is called by the socket callback, so don't send an exception back to it.
// TODO: Log the exception?
diff --git a/ndn-cpp/transport/TcpTransport.hpp b/ndn-cpp/transport/TcpTransport.hpp
index fc57e54..b3b8d30 100644
--- a/ndn-cpp/transport/TcpTransport.hpp
+++ b/ndn-cpp/transport/TcpTransport.hpp
@@ -34,7 +34,7 @@
struct ndn_TcpTransport transport_;
NDN *ndn_;
// TODO: This belongs in the socket listener.
- ndn_BinaryXMLElementReader elementReader_;
+ ndn_BinaryXmlElementReader elementReader_;
};
}
diff --git a/ndn-cpp/transport/UdpTransport.cpp b/ndn-cpp/transport/UdpTransport.cpp
index 42318aa..6fd47e4 100644
--- a/ndn-cpp/transport/UdpTransport.cpp
+++ b/ndn-cpp/transport/UdpTransport.cpp
@@ -21,7 +21,7 @@
// TODO: This belongs in the socket listener.
const unsigned int initialLength = 1000;
// Automatically cast ndn_ to (struct ndn_ElementListener *)
- ndn_BinaryXMLElementReader_init
+ ndn_BinaryXmlElementReader_init
(&elementReader_, &ndn, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
// TODO: Properly indicate connected status.
@@ -44,7 +44,7 @@
if (error = ndn_UdpTransport_receive(&transport_, buffer, sizeof(buffer), &nBytes))
throw std::runtime_error(ndn_getErrorString(error));
- ndn_BinaryXMLElementReader_onReceivedData(&elementReader_, buffer, nBytes);
+ ndn_BinaryXmlElementReader_onReceivedData(&elementReader_, buffer, nBytes);
} catch (...) {
// This function is called by the socket callback, so don't send an exception back to it.
// TODO: Log the exception?
diff --git a/ndn-cpp/transport/UdpTransport.hpp b/ndn-cpp/transport/UdpTransport.hpp
index eab7232..133c241 100644
--- a/ndn-cpp/transport/UdpTransport.hpp
+++ b/ndn-cpp/transport/UdpTransport.hpp
@@ -34,7 +34,7 @@
struct ndn_UdpTransport transport_;
NDN *ndn_;
// TODO: This belongs in the socket listener.
- ndn_BinaryXMLElementReader elementReader_;
+ ndn_BinaryXmlElementReader elementReader_;
};
}