diff options
author | Patrick Venture <venture@google.com> | 2018-09-27 14:56:42 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-27 14:56:42 -0700 |
commit | e01c0af722d342962dd57c4de7a610bf0dbb3e6a (patch) | |
tree | 5726bae1cdf2e765d8e283d847a0c21498896e04 /example/example.hpp | |
parent | aceb4baa1b3b58d425c4c706069ec51fb594305f (diff) | |
download | phosphor-ipmi-blobs-e01c0af722d342962dd57c4de7a610bf0dbb3e6a.tar.gz phosphor-ipmi-blobs-e01c0af722d342962dd57c4de7a610bf0dbb3e6a.zip |
example: fixup compilation
The example handler had compilation errors.
Change-Id: I53392b53f021bf01887559cee4bd79b2799f5730
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'example/example.hpp')
-rw-r--r-- | example/example.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/example/example.hpp b/example/example.hpp index 4a2df5d..85f5b17 100644 --- a/example/example.hpp +++ b/example/example.hpp @@ -14,7 +14,8 @@ struct ExampleBlob { ExampleBlob() = default; ExampleBlob(uint16_t id, uint16_t flags) : - sessionId(id), flags(flags), length(0) + sessionId(id), flags(flags), + state(StateFlags::open_read | StateFlags::open_write), length(0) { } @@ -24,6 +25,9 @@ struct ExampleBlob /* The flags passed into open. */ uint16_t flags; + /* The current state. */ + uint16_t state; + /* The buffer is a fixed size, but length represents the number of bytes * expected to be used contiguously from offset 0. */ |