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_stream.h | |
parent | 4d6585290955613b23e5ade89794fb465cb7ec3a (diff) |
Pass the upb_fielddef* to the endmsg callback.
Diffstat (limited to 'src/upb_stream.h')
-rw-r--r-- | src/upb_stream.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/upb_stream.h b/src/upb_stream.h index 229cf86..34e2710 100644 --- a/src/upb_stream.h +++ b/src/upb_stream.h @@ -98,7 +98,8 @@ typedef upb_flow_t (*upb_value_handler_t)(void *closure, typedef upb_flow_t (*upb_startsubmsg_handler_t)(void *closure, struct _upb_fielddef *f, upb_handlers *delegate_to); -typedef upb_flow_t (*upb_endsubmsg_handler_t)(void *closure); +typedef upb_flow_t (*upb_endsubmsg_handler_t)(void *closure, + struct _upb_fielddef *f); typedef upb_flow_t (*upb_unknownval_handler_t)(void *closure, upb_field_number_t fieldnum, upb_value val); @@ -126,7 +127,7 @@ typedef upb_flow_t (*upb_unknownval_handler_t)(void *closure, // return UPB_CONTINUE; // } // -// static upb_flow_t endsubmsg(void *closure) { +// static upb_flow_t endsubmsg(void *closure, upb_fielddef *f) { // // Called when a submessage ends. // return UPB_CONTINUE; // } @@ -207,7 +208,8 @@ INLINE upb_flow_t upb_dispatch_startmsg(upb_dispatcher *d); INLINE upb_flow_t upb_dispatch_endmsg(upb_dispatcher *d); INLINE upb_flow_t upb_dispatch_startsubmsg(upb_dispatcher *d, struct _upb_fielddef *f); -INLINE upb_flow_t upb_dispatch_endsubmsg(upb_dispatcher *d); +INLINE upb_flow_t upb_dispatch_endsubmsg(upb_dispatcher *d, + struct _upb_fielddef *f); INLINE upb_flow_t upb_dispatch_value(upb_dispatcher *d, struct _upb_fielddef *f, upb_value val); INLINE upb_flow_t upb_dispatch_unknownval(upb_dispatcher *d, |