summaryrefslogtreecommitdiff
path: root/upb/pb/textprinter.h
blob: 94552081bdf7415047624b2f5f221d5a6afa5036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback