remove sync-data-buffer, use string instead; change ccnx-wrapper
accordingly
diff --git a/model/sync-ccnx-wrapper.h b/model/sync-ccnx-wrapper.h
index fa1356b..037d2d2 100644
--- a/model/sync-ccnx-wrapper.h
+++ b/model/sync-ccnx-wrapper.h
@@ -36,7 +36,7 @@
#include <boost/thread/thread.hpp>
#include <boost/function.hpp>
#include <string>
-#include "sync-data-buffer.h"
+
/**
* \defgroup sync SYNC protocol
*
@@ -84,8 +84,8 @@
* @param dataCallback the callback function to deal with the returned data
* @return the return code of ccn_express_interest
*/
- int sendInterest(std::string strInterest, boost::function<void
- (boost::shared_ptr<DataBuffer>)> dataCallback);
+ int sendInterest(std::string strInterest, boost::function<void (std::string)>
+ dataCallback);
/**
* @brief set Interest filter (specify what interest you want to receive
@@ -106,8 +106,7 @@
* @param freshness the freshness time for the data object
* @return code generated by ccnx library calls, >0 if success
*/
- int publishData(std::string name, boost::shared_ptr<DataBuffer> dataBuffer,
- int freshness);
+ int publishData(std::string name, std::string dataBuffer, int freshness);
};