A little bit closer to the action log functions
diff --git a/src/sync-log.h b/src/sync-log.h
index 5705e45..bef41a7 100644
--- a/src/sync-log.h
+++ b/src/sync-log.h
@@ -30,14 +30,17 @@
class SyncLog : public DbHelper
{
public:
- SyncLog (const std::string &path)
- : DbHelper (path)
- {
- }
+ SyncLog (const std::string &path, const std::string &localName);
+ sqlite3_int64
+ GetNextLocalSeqNo (); // side effect: local seq_no will be increased
+
+ void
+ UpdateDeviceSeqNo (sqlite3_int64 deviceId, sqlite3_int64 seqNo);
+
// done
void
- UpdateDeviceSeqno (const std::string &name, uint64_t seqNo);
+ UpdateDeviceSeqno (const std::string &name, sqlite3_int64 seqNo);
// std::string
// LookupForwardingAlias (const std::string &deviceName);
@@ -66,6 +69,11 @@
SyncStateMsgPtr
FindStateDifferences (const Hash &oldHash, const Hash &newHash);
+
+protected:
+ std::string m_localName;
+ sqlite3_int64 m_localDeviceId;
+
};