summaryrefslogtreecommitdiff
path: root/src/upb_msg.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-02-25 18:31:22 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-02-25 18:31:22 -0800
commita75a305c77acd6800b81204f387f7a437a62fe6b (patch)
treedbd83530befface0868b7fdca37769590b61d5ed /src/upb_msg.h
parentabfc897b50532e5ed64f7f5497f80ef56abd3b26 (diff)
Implemented upb_stringsink, upb_msgtotext, and exposed the latter to Lua.
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r--src/upb_msg.h5
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback