Partially removing redundancy between sync core and sync log
diff --git a/src/sync-log.h b/src/sync-log.h
index 808d976..767a9ff 100644
--- a/src/sync-log.h
+++ b/src/sync-log.h
@@ -39,6 +39,9 @@
// void
// initYP(map<Ccnx::Name, Ccnx::Name> &yp);
+ inline const Ccnx::Name &
+ GetLocalName () const;
+
sqlite3_int64
GetNextLocalSeqNo (); // side effect: local seq_no will be increased
@@ -46,6 +49,9 @@
void
UpdateDeviceSeqNo (const Ccnx::Name &name, sqlite3_int64 seqNo);
+ void
+ UpdateLocalSeqNo (sqlite3_int64 seqNo);
+
Ccnx::Name
LookupLocator (const Ccnx::Name &deviceName);
@@ -99,5 +105,11 @@
typedef boost::shared_ptr<SyncLog> SyncLogPtr;
+const Ccnx::Name &
+SyncLog::GetLocalName () const
+{
+ return m_localName;
+}
+
#endif // SYNC_LOG_H