summaryrefslogtreecommitdiff
path: root/core/upb_stream.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-17 12:56:04 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-17 12:56:04 -0700
commit87b2c69c15716b96a294f5918878fb8b7b9a0b40 (patch)
tree22dcd3ac6d958fe172fcb521f931243f576ddf44 /core/upb_stream.h
parent5b5e26144ddcfcbbee8b6df843a7d169d4cf1eea (diff)
Fleshed out upb_stdio and upb_textprinter.
test_decoder now compiles and links! But it doesn't work yet.
Diffstat (limited to 'core/upb_stream.h')
-rw-r--r--core/upb_stream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/upb_stream.h b/core/upb_stream.h
index 9147e45..b7400c5 100644
--- a/core/upb_stream.h
+++ b/core/upb_stream.h
@@ -111,7 +111,10 @@ bool upb_sink_putdef(upb_sink *sink, struct _upb_fielddef *def);
bool upb_sink_putval(upb_sink *sink, upb_value val);
bool upb_sink_putstr(upb_sink *sink, upb_string *str);
-// Ends a submessage.
+// Starts/ends a submessage. upb_sink_startmsg may seem redundant, but a
+// client could have a submessage already serialized, and therefore put it
+// as a string instead of its individual elements.
+bool upb_sink_startmsg(upb_sink *sink);
bool upb_sink_endmsg(upb_sink *sink);
// Returns the current error status for the stream.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback