From 7fefc5c8756fc7568371cffe66cbc0136c6eb31b Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 24 Feb 2009 10:29:29 -0800 Subject: Removed DECODE macro (wasn't buying much). Also decided that groups aren't a TODO -- I don't plan to ever support them (unless there is a real need). --- pbstream.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pbstream.h') 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. */ -- cgit v1.2.3