diff options
author | Patrick Venture <venture@google.com> | 2019-05-17 19:14:19 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-05-17 19:16:15 -0700 |
commit | 9260be38323f5205c3968de37117993001984847 (patch) | |
tree | 179b36389ecfa0b3987a603b8bb779c2d123e487 /blobs-ipmid | |
parent | 924bc380c47f33689a1243b2d79cb619674c86fa (diff) | |
download | phosphor-ipmi-blobs-9260be38323f5205c3968de37117993001984847.tar.gz phosphor-ipmi-blobs-9260be38323f5205c3968de37117993001984847.zip |
blobs-ipmid: blobs: add equality operator for BlobMeta
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I22ac3b8c5ad49e2fa3424ef6d9f03a3d5dc7bf51
Diffstat (limited to 'blobs-ipmid')
-rw-r--r-- | blobs-ipmid/blobs.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blobs-ipmid/blobs.hpp b/blobs-ipmid/blobs.hpp index 7b7c5c7..dbeac21 100644 --- a/blobs-ipmid/blobs.hpp +++ b/blobs-ipmid/blobs.hpp @@ -44,6 +44,12 @@ struct BlobMeta uint16_t blobState; uint32_t size; std::vector<uint8_t> metadata; + + bool operator==(const BlobMeta& rhs) const + { + return (this->blobState == rhs.blobState && this->size == rhs.size && + this->metadata == rhs.metadata); + } }; /* |