From e18352d50678005c9dbb3ac76913555f5317c81c Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sat, 16 Jun 2012 14:07:37 +0300 Subject: 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. --- pb_decode.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pb_decode.h') 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); -- cgit