summaryrefslogtreecommitdiff
path: root/src/upb_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_text.h')
-rw-r--r--src/upb_text.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/upb_text.h b/src/upb_text.h
index bc15c3f..86d69a2 100644
--- a/src/upb_text.h
+++ b/src/upb_text.h
@@ -13,22 +13,22 @@
extern "C" {
#endif
-struct upb_text_printer {
+typedef struct {
int indent_depth;
bool single_line;
-};
+} upb_text_printer;
-INLINE void upb_text_printer_init(struct upb_text_printer *p, bool single_line) {
+INLINE void upb_text_printer_init(upb_text_printer *p, bool single_line) {
p->indent_depth = 0;
p->single_line = single_line;
}
void upb_text_printval(upb_field_type_t type, union upb_value p, FILE *file);
-void upb_text_printfield(struct upb_text_printer *p, upb_strptr name,
+void upb_text_printfield(upb_text_printer *p, upb_strptr name,
upb_field_type_t valtype, union upb_value val,
FILE *stream);
-void upb_text_push(struct upb_text_printer *p, upb_strptr submsg_type,
+void upb_text_push(upb_text_printer *p, upb_strptr submsg_type,
FILE *stream);
-void upb_text_pop(struct upb_text_printer *p, FILE *stream);
+void upb_text_pop(upb_text_printer *p, FILE *stream);
#ifdef __cplusplus
} /* extern "C" */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback