diff options
Diffstat (limited to 'src/upb_textprinter.c')
-rw-r--r-- | src/upb_textprinter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/upb_textprinter.c b/src/upb_textprinter.c index 2f3a6b5..7d0a9dd 100644 --- a/src/upb_textprinter.c +++ b/src/upb_textprinter.c @@ -185,12 +185,13 @@ void upb_textprinter_reset(upb_textprinter *p, upb_bytesink *sink, p->indent_depth = 0; } -void upb_textprinter_reghandlers(upb_handlers *h) { - upb_register_all(h, +upb_mhandlers *upb_textprinter_reghandlers(upb_handlers *h, upb_msgdef *m) { + upb_handlerset hset = { NULL, // startmsg NULL, // endmsg upb_textprinter_value, upb_textprinter_startsubmsg, upb_textprinter_endsubmsg - ); + }; + return upb_handlers_reghandlerset(h, m, &hset); } |