summaryrefslogtreecommitdiff
path: root/pbstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'pbstream.h')
-rw-r--r--pbstream.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/pbstream.h b/pbstream.h
index 3c551d2..a8e623a 100644
--- a/pbstream.h
+++ b/pbstream.h
@@ -63,7 +63,7 @@ struct pbstream_value {
bool _bool;
struct pbstream_delimited {
size_t offset; /* relative to the beginning of the stream. */
- int len;
+ uint32_t len;
} delimited;
int32_t _enum;
} v;
@@ -82,7 +82,7 @@ struct pbstream_wire_value {
uint64_t _64bit;
struct {
size_t offset; /* relative to the beginning of the stream. */
- int len;
+ uint32_t len;
} delimited;
uint32_t _32bit;
} v;
@@ -154,6 +154,9 @@ typedef enum pbstream_status {
// A submessage ended in the middle of data.
PBSTREAM_ERROR_BAD_SUBMESSAGE_END,
+ // Encountered a "group" on the wire (deprecated and unsupported).
+ PBSTREAM_ERROR_GROUP,
+
/** NONFATAL ERRORS: the input was invalid, but we can continue if desired. */
// A field marked "required" was not present. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback