diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-24 00:09:27 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-24 00:09:27 -0800 |
commit | abfc897b50532e5ed64f7f5497f80ef56abd3b26 (patch) | |
tree | 003c19da802085acb293d0b7d30026e9ad1adc56 /src/upb_decoder.h | |
parent | 4d6585290955613b23e5ade89794fb465cb7ec3a (diff) |
Pass the upb_fielddef* to the endmsg callback.
Diffstat (limited to 'src/upb_decoder.h')
-rw-r--r-- | src/upb_decoder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/upb_decoder.h b/src/upb_decoder.h index 6a9f7cc..98b1b94 100644 --- a/src/upb_decoder.h +++ b/src/upb_decoder.h @@ -30,7 +30,7 @@ extern "C" { // The decoder keeps a stack with one entry per level of recursion. // upb_decoder_frame is one frame of that stack. typedef struct { - upb_msgdef *msgdef; + upb_fielddef *f; size_t end_offset; // For groups, 0. } upb_decoder_frame; @@ -69,6 +69,8 @@ struct _upb_decoder { // Where we will store any errors that occur. upb_status *status; + // A fake fielddef for storing the msgdef for the top-level message. + upb_fielddef f; upb_decoder_frame stack[UPB_MAX_NESTING]; }; |