summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/erebos/storage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/storage.h b/include/erebos/storage.h
index e894fee..15ee0bb 100644
--- a/include/erebos/storage.h
+++ b/include/erebos/storage.h
@@ -208,9 +208,11 @@ public:
vector<Ref> previous() const;
class Generation generation() const;
+ vector<Digest> roots() const;
private:
class Generation generationLocked() const;
+ class vector<Digest> rootsLocked() const;
protected:
Ref(const std::shared_ptr<const Priv> p): PartialRef(p) {}
@@ -412,6 +414,8 @@ public:
std::vector<Stored<T>> previous() const;
bool precedes(const Stored<T> &) const;
+ std::vector<Digest> roots() const { return p->ref.roots(); }
+
const Ref & ref() const { return p->ref; }
private: