summaryrefslogtreecommitdiff
path: root/stream/upb_textprinter.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 /stream/upb_textprinter.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 'stream/upb_textprinter.h')
-rw-r--r--stream/upb_textprinter.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/stream/upb_textprinter.h b/stream/upb_textprinter.h
new file mode 100644
index 0000000..7e35412
--- /dev/null
+++ b/stream/upb_textprinter.h
@@ -0,0 +1,30 @@
+/*
+ * upb - a minimalist implementation of protocol buffers.
+ *
+ * Copyright (c) 2009 Joshua Haberman. See LICENSE for details.
+ */
+
+#ifndef UPB_TEXT_H_
+#define UPB_TEXT_H_
+
+#include "upb_stream.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct _upb_textprinter;
+typedef struct _upb_textprinter upb_textprinter;
+
+upb_textprinter *upb_textprinter_new();
+void upb_textprinter_free(upb_textprinter *p);
+void upb_textprinter_reset(upb_textprinter *p, upb_bytesink *sink,
+ bool single_line);
+
+upb_sink *upb_textprinter_sink(upb_textprinter *p);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* UPB_TEXT_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback