change dataCallback to have two parameters: name and content
diff --git a/model/sync-app-data-fetch.h b/model/sync-app-data-fetch.h
index 70b54cb..ae07679 100644
--- a/model/sync-app-data-fetch.h
+++ b/model/sync-app-data-fetch.h
@@ -40,10 +40,10 @@
* @param dataCallback the callback function to process data
*/
AppDataFetch(boost::shared_ptr<CcnxWrapper> ccnxHandle,
- boost::function<void (std::string)> dataCallback)
+ boost::function<void (std::string, std::string)> dataCallback)
{ m_ccnxHandle = ccnxHandle; m_dataCallback = dataCallback; }
- void setDataCallback(boost::function<void (std::string)> dataCallback)
+ void setDataCallback(boost::function<void (std::string, std::string)> dataCallback)
{ m_dataCallback = dataCallback; }
/**
@@ -57,7 +57,7 @@
private:
boost::shared_ptr<CcnxWrapper> m_ccnxHandle;
- boost::function<void (std::string)> m_dataCallback;
+ boost::function<void (std::string, std::string)> m_dataCallback;
};