diff options
Diffstat (limited to 'lib/backupstore/BackupStoreRefCountDatabase.h')
-rw-r--r-- | lib/backupstore/BackupStoreRefCountDatabase.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/backupstore/BackupStoreRefCountDatabase.h b/lib/backupstore/BackupStoreRefCountDatabase.h index 0a65b6a0..02612aa0 100644 --- a/lib/backupstore/BackupStoreRefCountDatabase.h +++ b/lib/backupstore/BackupStoreRefCountDatabase.h @@ -52,6 +52,8 @@ class BackupStoreRefCountDatabase { friend class BackupStoreCheck; friend class BackupStoreContext; + friend class HousekeepStoreAccount; + public: ~BackupStoreRefCountDatabase(); private: @@ -73,8 +75,10 @@ public: static std::auto_ptr<BackupStoreRefCountDatabase> Load(const BackupStoreAccountDatabase::Entry& rAccount, bool ReadOnly); + typedef uint32_t refcount_t; + // Data access functions - int32_t GetRefCount(int64_t ObjectID) const; + refcount_t GetRefCount(int64_t ObjectID) const; int64_t GetLastObjectIDUsed() const; // Data modification functions @@ -94,8 +98,6 @@ private: static void Create(const BackupStoreAccountDatabase::Entry& rAccount, bool AllowOverwrite); - typedef int32_t refcount_t; - static std::string GetFilename(const BackupStoreAccountDatabase::Entry& rAccount); IOStream::pos_type GetSize() const |