diff options
Diffstat (limited to 'src/zenserver/projectstore/remoteprojectstore.h')
| -rw-r--r-- | src/zenserver/projectstore/remoteprojectstore.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zenserver/projectstore/remoteprojectstore.h b/src/zenserver/projectstore/remoteprojectstore.h index 501a5eeec..552b11380 100644 --- a/src/zenserver/projectstore/remoteprojectstore.h +++ b/src/zenserver/projectstore/remoteprojectstore.h @@ -29,6 +29,11 @@ public: IoHash RawHash; }; + struct FinalizeResult : public Result + { + std::unordered_set<IoHash, IoHash::Hasher> Needs; + }; + struct SaveAttachmentResult : public Result { }; @@ -66,7 +71,7 @@ public: virtual SaveResult SaveContainer(const IoBuffer& Payload) = 0; virtual SaveAttachmentResult SaveAttachment(const CompositeBuffer& Payload, const IoHash& RawHash) = 0; - virtual Result FinalizeContainer(const IoHash& RawHash) = 0; + virtual FinalizeResult FinalizeContainer(const IoHash& RawHash) = 0; virtual SaveAttachmentsResult SaveAttachments(const std::vector<SharedBuffer>& Payloads) = 0; virtual LoadContainerResult LoadContainer() = 0; |