summaryrefslogtreecommitdiff
path: root/pbstream.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-02-24 10:29:29 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-02-24 10:29:29 -0800
commit7fefc5c8756fc7568371cffe66cbc0136c6eb31b (patch)
treeb31915046649ef07e32101acde5f60c7689268f7 /pbstream.h
parenta0a99811beda79ee873f46f1519d59ee2070f34e (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.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