diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-05-10 21:59:46 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-05-10 21:59:46 -0700 |
commit | 3231fd0fdd64bc6355bce921a988713524726f23 (patch) | |
tree | 326d6c6d334d14005db80c448fca485f641ed516 /src/upb_glue.c | |
parent | ea2a80840e08887e6e5ea59bce1f56a3c69bd38c (diff) |
Vastly improved/simplified the upb_handlers API.
Diffstat (limited to 'src/upb_glue.c')
-rw-r--r-- | src/upb_glue.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/upb_glue.c b/src/upb_glue.c index b6a0273..d54b446 100644 --- a/src/upb_glue.c +++ b/src/upb_glue.c @@ -18,8 +18,8 @@ void upb_strtomsg(upb_string *str, upb_msg *msg, upb_msgdef *md, upb_stringsrc_reset(&strsrc, str); upb_handlers h; - upb_handlers_init(&h, md); - upb_msg_regdhandlers(&h); + upb_handlers_init(&h); + upb_msg_reghandlers(&h, md); upb_decoder d; upb_decoder_init(&d, &h); @@ -39,8 +39,8 @@ void upb_msgtotext(upb_string *str, upb_msg *msg, upb_msgdef *md, upb_textprinter *p = upb_textprinter_new(); upb_handlers h; - upb_handlers_init(&h, md); - upb_textprinter_reghandlers(&h); + upb_handlers_init(&h); + upb_textprinter_reghandlers(&h, md); upb_textprinter_reset(p, upb_stringsink_bytesink(&strsink), single_line); upb_status status = UPB_STATUS_INIT; @@ -60,7 +60,7 @@ void upb_parsedesc(upb_symtab *symtab, upb_string *str, upb_status *status) { upb_stringsrc_reset(&strsrc, str); upb_handlers h; - upb_handlers_init(&h, NULL); + upb_handlers_init(&h); upb_defbuilder_reghandlers(&h); upb_decoder d; |