diff options
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r-- | src/upb_msg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h index 1e0a176..fd5750f 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -274,6 +274,11 @@ INLINE void upb_msg_clear(upb_msg *msg, upb_msgdef *md) { memset(msg->data, 0, md->set_flags_bytes); } +// A non-resumable upb_src that pushes the current contents of the message to +// the given handlers. +void upb_msg_runhandlers(upb_msg *msg, upb_msgdef *md, upb_handlers *h, + upb_status *status); + typedef struct { upb_msg *msg; upb_msgdef *msgdef; |