summaryrefslogtreecommitdiffstats
path: root/example/example.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/example.hpp')
-rw-r--r--example/example.hpp6
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.
*/
OpenPOWER on IntegriCloud