diff options
Diffstat (limited to 'upb/pb/textprinter.h')
-rw-r--r-- | upb/pb/textprinter.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/upb/pb/textprinter.h b/upb/pb/textprinter.h new file mode 100644 index 0000000..9455208 --- /dev/null +++ b/upb/pb/textprinter.h @@ -0,0 +1,31 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * Copyright (c) 2009 Google Inc. See LICENSE for details. + * Author: Josh Haberman <jhaberman@gmail.com> + */ + +#ifndef UPB_TEXT_H_ +#define UPB_TEXT_H_ + +#include "upb/bytestream.h" +#include "upb/handlers.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_mhandlers *upb_textprinter_reghandlers(upb_handlers *h, upb_msgdef *m); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* UPB_TEXT_H_ */ |