change dataCallback to have two parameters: name and content
diff --git a/model/sync-app-socket.h b/model/sync-app-socket.h
index d94d4db..3b2c62c 100644
--- a/model/sync-app-socket.h
+++ b/model/sync-app-socket.h
@@ -48,7 +48,7 @@
* @param syncPrefix the name prefix for Sync Interest
* @param dataCallback the callback to process data
*/
- SyncAppSocket(std::string syncPrefix, boost::function<void (std::string)>
+ SyncAppSocket(std::string syncPrefix, boost::function<void (std::string, std::string)>
dataCallback);
~SyncAppSocket();
@@ -61,7 +61,7 @@
* @param dataBuffer the data itself
* @param freshness the freshness time for the data (in seconds)
*/
- bool publish(std::string prefix, std::string dataBuffer, int freshness);
+ bool publish(std::string prefix, uint32_t session, std::string dataBuffer, int freshness);
private:
AppDataFetch *m_fetcher;