Add proto_rev accessors to WireEncoder and WireDecoder.

Change-Id: I401a0fbc675379c4d5b1dbcc42cbefe0311304f1
This commit is contained in:
Peter Johnson
2015-07-03 22:11:06 -07:00
parent 09d6619a58
commit 9bd4a5ecc3
2 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ class WireDecoder {
void set_proto_rev(unsigned int proto_rev) { m_proto_rev = proto_rev; }
/* Get the active protocol revision. */
unsigned int proto_rev() const { return m_proto_rev; }
/* Clears error indicator. */
void Reset() { m_error = nullptr; }