From 8bc117792fbf118dd74d015546c22612961ccc26 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Tue, 4 Jun 2019 07:20:24 -0700 Subject: blobs: s/struct BlobMeta/BlobMeta/g Because this structure is not anything special, simply use the cpp idiomatic way of referencing the object. Consistently, structures that are packed still have "struct" used in declarations. However, this distinction is only clear through its usage and nothing in the language. Perhaps a better approach would be notational naming struct PackedXYZ {};. However, that can get out of control quickly. Signed-off-by: Patrick Venture Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552 --- example/example.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/example.hpp') diff --git a/example/example.hpp b/example/example.hpp index 335eade..a53d6c0 100644 --- a/example/example.hpp +++ b/example/example.hpp @@ -66,7 +66,7 @@ class ExampleBlobHandler : public GenericBlobInterface bool canHandleBlob(const std::string& path) override; std::vector getBlobIds() override; bool deleteBlob(const std::string& path) override; - bool stat(const std::string& path, struct BlobMeta* meta) override; + bool stat(const std::string& path, BlobMeta* meta) override; bool open(uint16_t session, uint16_t flags, const std::string& path) override; std::vector read(uint16_t session, uint32_t offset, @@ -77,7 +77,7 @@ class ExampleBlobHandler : public GenericBlobInterface const std::vector& data) override; bool commit(uint16_t session, const std::vector& data) override; bool close(uint16_t session) override; - bool stat(uint16_t session, struct BlobMeta* meta) override; + bool stat(uint16_t session, BlobMeta* meta) override; bool expire(uint16_t session) override; constexpr static char supportedPath[] = "/dev/fake/command"; -- cgit v1.2.3