From b825423ed5c17f244047bddaeaa6cbbb4742ce1a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 28 Jun 2009 19:25:25 +0000 Subject: Make GetRefCount return a refcount_t rather than an int32_t. Make refcount_t unsigned and make its definition public. --- lib/backupstore/BackupStoreRefCountDatabase.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/backupstore/BackupStoreRefCountDatabase.h') 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 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 -- cgit v1.2.3