aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/session.hh
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-12 16:15:37 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-12 16:15:37 +0100
commit6fe3b7eb73fb11e1cba27b28add5b14430b66259 (patch)
treee2e526e4f5593cb8d978f1b8955b80c9c2d88b4e /include/axolotl/session.hh
parent28541dd82a9e4a99661ba32905b8488d35e70fe3 (diff)
Move utils for pickling into a separate file
Diffstat (limited to 'include/axolotl/session.hh')
-rw-r--r--include/axolotl/session.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/axolotl/session.hh b/include/axolotl/session.hh
index 1c3395a..93c0b64 100644
--- a/include/axolotl/session.hh
+++ b/include/axolotl/session.hh
@@ -78,6 +78,23 @@ struct Session {
};
+std::size_t pickle_length(
+ Session const & value
+);
+
+
+std::uint8_t * pickle(
+ std::uint8_t * pos,
+ Session const & value
+);
+
+
+std::uint8_t const * unpickle(
+ std::uint8_t const * pos, std::uint8_t const * end,
+ Session & value
+);
+
+
} // namespace axolotl
#endif /* AXOLOTL_SESSION_HH_ */