summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-06-04 07:20:24 -0700
committerPatrick Venture <venture@google.com>2019-06-17 18:51:19 +0000
commit8bc117792fbf118dd74d015546c22612961ccc26 (patch)
tree561a4dbb372b4a8811ba66e8f8beac8da31bb6f1 /example
parenta67323a86ec201d9292d2743a707ac04909615e3 (diff)
downloadphosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.tar.gz
phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.zip
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 <venture@google.com> Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552
Diffstat (limited to 'example')
-rw-r--r--example/example.cpp4
-rw-r--r--example/example.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/example/example.cpp b/example/example.cpp
index dd7c486..2ab0bd3 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -41,7 +41,7 @@ bool ExampleBlobHandler::deleteBlob(const std::string& path)
return false;
}
-bool ExampleBlobHandler::stat(const std::string& path, struct BlobMeta* meta)
+bool ExampleBlobHandler::stat(const std::string& path, BlobMeta* meta)
{
return false;
}
@@ -149,7 +149,7 @@ bool ExampleBlobHandler::close(uint16_t session)
return true;
}
-bool ExampleBlobHandler::stat(uint16_t session, struct BlobMeta* meta)
+bool ExampleBlobHandler::stat(uint16_t session, BlobMeta* meta)
{
ExampleBlob* sess = getSession(session);
if (!sess)
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<std::string> 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<uint8_t> read(uint16_t session, uint32_t offset,
@@ -77,7 +77,7 @@ class ExampleBlobHandler : public GenericBlobInterface
const std::vector<uint8_t>& data) override;
bool commit(uint16_t session, const std::vector<uint8_t>& 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";
OpenPOWER on IntegriCloud