summaryrefslogtreecommitdiffstats
path: root/pb_decode.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-06-16 14:07:37 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-06-16 14:07:37 +0300
commite18352d50678005c9dbb3ac76913555f5317c81c (patch)
tree5aabaaaff018d39e548ca5e4777005030af0e782 /pb_decode.h
parent7e1059628c1d67f96c00781cf2f57c915feadde1 (diff)
Added new functions to public interface in pb_decode.h.
pb_decode_tag and pb_skip_field allow manually iterating the fields in a message.
Diffstat (limited to 'pb_decode.h')
-rw-r--r--pb_decode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pb_decode.h b/pb_decode.h
index f12b1900..0abb342c 100644
--- a/pb_decode.h
+++ b/pb_decode.h
@@ -48,6 +48,9 @@ bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struc
* You may want to use these from your caller or callbacks.
*/
+bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, int *tag, bool *eof);
+bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
+
bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
bool pb_skip_varint(pb_istream_t *stream);