summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-06-29 17:54:50 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-06-29 17:54:50 -0700
commit2d21601d477dfc242d31acabdad119a56d2b7945 (patch)
tree96a08d55056b9a82b7beed9b22fce7bb160a730f /upb.h
parent5e2691460e9fb2ec9b77c1f9d133ae6b667afc3a (diff)
Reworked low-level parsing: smaller, safer.
Diffstat (limited to 'upb.h')
-rw-r--r--upb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/upb.h b/upb.h
index 2e62b5a..3281a0e 100644
--- a/upb.h
+++ b/upb.h
@@ -110,6 +110,9 @@ union upb_symbol_ref {
typedef enum upb_status {
UPB_STATUS_OK = 0,
+ // The input byte stream ended in the middle of a record.
+ UPB_STATUS_NEED_MORE_DATA = 1,
+
// A varint did not terminate before hitting 64 bits.
UPB_ERROR_UNTERMINATED_VARINT = -1,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback