Initial separating action-log and sync-log
diff --git a/src/sync-log.h b/src/sync-log.h
index 767a9ff..1ab25e9 100644
--- a/src/sync-log.h
+++ b/src/sync-log.h
@@ -35,13 +35,18 @@
public:
SyncLog (const boost::filesystem::path &path, const std::string &localName);
- // // fill in the map with device-name <-> locator pairs
- // void
- // initYP(map<Ccnx::Name, Ccnx::Name> &yp);
-
+ /**
+ * @brief Get local username
+ */
inline const Ccnx::Name &
GetLocalName () const;
+ /**
+ * @brief Get database ID of the local sync node (make sense only for the local database)
+ */
+ inline const sqlite3_int64
+ GetLocalSyncNodeId () const;
+
sqlite3_int64
GetNextLocalSeqNo (); // side effect: local seq_no will be increased
@@ -111,5 +116,11 @@
return m_localName;
}
+const sqlite3_int64
+SyncLog::GetLocalSyncNodeId () const
+{
+ return m_localDeviceId;
+}
+
#endif // SYNC_LOG_H