diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-02-24 10:29:29 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-02-24 10:29:29 -0800 |
commit | 7fefc5c8756fc7568371cffe66cbc0136c6eb31b (patch) | |
tree | b31915046649ef07e32101acde5f60c7689268f7 /pbstream.h | |
parent | a0a99811beda79ee873f46f1519d59ee2070f34e (diff) |
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).
Diffstat (limited to 'pbstream.h')
-rw-r--r-- | pbstream.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. */ |