Adding and finishing test for adding remotely fetched actions
diff --git a/ccnx/ccnx-common.h b/ccnx/ccnx-common.h
index 96f60ff..6d17116 100644
--- a/ccnx/ccnx-common.h
+++ b/ccnx/ccnx-common.h
@@ -89,9 +89,9 @@
inline BytesPtr
serializeMsg(const Msg &msg)
{
- int size = msg->ByteSize ();
+ int size = msg.ByteSize ();
BytesPtr bytes (new Bytes (size));
- msg->SerializeToArray (head(*bytes), size);
+ msg.SerializeToArray (head(*bytes), size);
return bytes;
}
diff --git a/ccnx/ccnx-name.h b/ccnx/ccnx-name.h
index 72f790a..b32c419 100644
--- a/ccnx/ccnx-name.h
+++ b/ccnx/ccnx-name.h
@@ -137,6 +137,9 @@
Name
getPartialName(int start, int n = -1) const;
+ inline Name
+ getPartialNameFromBack(int start, int n = -1) const;
+
std::string
toString() const;
@@ -181,6 +184,12 @@
return getCompAsInt (m_comps.size () - 1 - index);
}
+Name
+Name::getPartialNameFromBack(int start, int n/* = -1*/) const
+{
+ return getPartialName (m_comps.size () - 1 - start, n);
+}
+
} // Ccnx
#endif