API change for closure. Return ParsedContentObject, not just content
Fixed bug in test/test-sync-core.cc: there should have been two independent schedulers
diff --git a/ccnx/ccnx-closure.h b/ccnx/ccnx-closure.h
index 39fbc16..343d8be 100644
--- a/ccnx/ccnx-closure.h
+++ b/ccnx/ccnx-closure.h
@@ -27,10 +27,13 @@
namespace Ccnx {
+class ParsedContentObject;
+typedef boost::shared_ptr<ParsedContentObject> PcoPtr;
+
class Closure
{
public:
- typedef boost::function<void (const Name &, const Bytes &)> DataCallback;
+ typedef boost::function<void (const Name &, PcoPtr pco)> DataCallback;
typedef enum
{
@@ -44,7 +47,7 @@
virtual ~Closure();
virtual void
- runDataCallback(const Name &name, const Bytes &content);
+ runDataCallback(const Name &name, Ccnx::PcoPtr pco);
virtual TimeoutCallbackReturnValue
runTimeoutCallback(const Name &interest);