Switch from NDNx to CCNx
Change-Id: Icc2e6dd95d9c4e0ba22b7efb9933c1db7194842e
diff --git a/src/action-log.h b/src/action-log.h
index 96ccd51..2002b4c 100644
--- a/src/action-log.h
+++ b/src/action-log.h
@@ -27,8 +27,8 @@
#include "sync-log.h"
#include "action-item.pb.h"
#include "file-item.pb.h"
-#include "ccnx-wrapper.h"
-#include "ccnx-pco.h"
+#include "ndnx-wrapper.h"
+#include "ndnx-pco.h"
#include <boost/tuple/tuple.hpp>
@@ -39,13 +39,13 @@
class ActionLog : public DbHelper
{
public:
- typedef boost::function<void (std::string /*filename*/, Ccnx::Name /*device_name*/, sqlite3_int64 /*seq_no*/,
+ typedef boost::function<void (std::string /*filename*/, Ndnx::Name /*device_name*/, sqlite3_int64 /*seq_no*/,
HashPtr /*hash*/, time_t /*m_time*/, int /*mode*/, int /*seg_num*/)> OnFileAddedOrChangedCallback;
typedef boost::function<void (std::string /*filename*/)> OnFileRemovedCallback;
public:
- ActionLog (Ccnx::CcnxWrapperPtr ccnx, const boost::filesystem::path &path,
+ ActionLog (Ndnx::NdnxWrapperPtr ndnx, const boost::filesystem::path &path,
SyncLogPtr syncLog,
const std::string &sharedFolder, const std::string &appName,
OnFileAddedOrChangedCallback onFileAddedOrChanged, OnFileRemovedCallback onFileRemoved);
@@ -73,7 +73,7 @@
//////////////////////////
ActionItemPtr
- AddRemoteAction (const Ccnx::Name &deviceName, sqlite3_int64 seqno, Ccnx::PcoPtr actionPco);
+ AddRemoteAction (const Ndnx::Name &deviceName, sqlite3_int64 seqno, Ndnx::PcoPtr actionPco);
/**
* @brief Add remote action using just action's parsed content object
@@ -81,23 +81,23 @@
* This function extracts device name and sequence number from the content object's and calls the overloaded method
*/
ActionItemPtr
- AddRemoteAction (Ccnx::PcoPtr actionPco);
+ AddRemoteAction (Ndnx::PcoPtr actionPco);
///////////////////////////
// General operations //
///////////////////////////
- Ccnx::PcoPtr
- LookupActionPco (const Ccnx::Name &deviceName, sqlite3_int64 seqno);
+ Ndnx::PcoPtr
+ LookupActionPco (const Ndnx::Name &deviceName, sqlite3_int64 seqno);
- Ccnx::PcoPtr
- LookupActionPco (const Ccnx::Name &actionName);
+ Ndnx::PcoPtr
+ LookupActionPco (const Ndnx::Name &actionName);
ActionItemPtr
- LookupAction (const Ccnx::Name &deviceName, sqlite3_int64 seqno);
+ LookupAction (const Ndnx::Name &deviceName, sqlite3_int64 seqno);
ActionItemPtr
- LookupAction (const Ccnx::Name &actionName);
+ LookupAction (const Ndnx::Name &actionName);
FileItemPtr
LookupAction (const std::string &filename, sqlite3_int64 version, const Hash &filehash);
@@ -106,11 +106,11 @@
* @brief Lookup up to [limit] actions starting [offset] in decreasing order (by timestamp) and calling visitor(device_name,seqno,action) for each action
*/
bool
- LookupActionsInFolderRecursively (const boost::function<void (const Ccnx::Name &name, sqlite3_int64 seq_no, const ActionItem &)> &visitor,
+ LookupActionsInFolderRecursively (const boost::function<void (const Ndnx::Name &name, sqlite3_int64 seq_no, const ActionItem &)> &visitor,
const std::string &folder, int offset=0, int limit=-1);
bool
- LookupActionsForFile (const boost::function<void (const Ccnx::Name &name, sqlite3_int64 seq_no, const ActionItem &)> &visitor,
+ LookupActionsForFile (const boost::function<void (const Ndnx::Name &name, sqlite3_int64 seq_no, const ActionItem &)> &visitor,
const std::string &file, int offset=0, int limit=-1);
void
@@ -126,7 +126,7 @@
LogSize ();
private:
- boost::tuple<sqlite3_int64 /*version*/, Ccnx::CcnxCharbufPtr /*device name*/, sqlite3_int64 /*seq_no*/>
+ boost::tuple<sqlite3_int64 /*version*/, Ndnx::NdnxCharbufPtr /*device name*/, sqlite3_int64 /*seq_no*/>
GetLatestActionForFile (const std::string &filename);
static void
@@ -136,7 +136,7 @@
SyncLogPtr m_syncLog;
FileStatePtr m_fileState;
- Ccnx::CcnxWrapperPtr m_ccnx;
+ Ndnx::NdnxWrapperPtr m_ndnx;
std::string m_sharedFolderName;
std::string m_appName;