From a75a305c77acd6800b81204f387f7a437a62fe6b Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 25 Feb 2011 18:31:22 -0800 Subject: Implemented upb_stringsink, upb_msgtotext, and exposed the latter to Lua. --- src/upb_msg.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/upb_msg.h') 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; -- cgit v1.2.3