Debugging ActionLog. Corrections in dispatcher (filename in DB should be in a "generic" format)
diff --git a/ccnx/ccnx-common.h b/ccnx/ccnx-common.h
index 985965c..1824025 100644
--- a/ccnx/ccnx-common.h
+++ b/ccnx/ccnx-common.h
@@ -96,6 +96,15 @@
return bytes;
}
+template<class Msg>
+inline boost::shared_ptr<Msg>
+deserializeMsg (const Bytes &bytes)
+{
+ boost::shared_ptr<Msg> retval (new Msg ());
+ retval->ParseFromArray (head (bytes), bytes.size ());
+ return retval;
+}
+
// --- Bytes operations end ---
// Exceptions