diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-17 12:56:04 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-17 12:56:04 -0700 |
commit | 87b2c69c15716b96a294f5918878fb8b7b9a0b40 (patch) | |
tree | 22dcd3ac6d958fe172fcb521f931243f576ddf44 /stream/upb_textprinter.h | |
parent | 5b5e26144ddcfcbbee8b6df843a7d169d4cf1eea (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.h | 30 |
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_ */ |