From 9116c697f845e7ca215628029800c36f7dfbfaee Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 15 Jan 2010 18:12:28 -0800 Subject: upb_parser -> upb_decoder --- src/upb_data.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/upb_data.c') diff --git a/src/upb_data.c b/src/upb_data.c index fd0415c..a7027d6 100644 --- a/src/upb_data.c +++ b/src/upb_data.c @@ -6,8 +6,8 @@ #include #include "upb_data.h" +#include "upb_decoder.h" #include "upb_def.h" -#include "upb_parse.h" static uint32_t round_up_to_pow2(uint32_t v) { @@ -282,18 +282,18 @@ void _upb_msg_free(upb_msg *msg, struct upb_msgdef *md) free(msg); } -void upb_msg_parsestr(upb_msg *msg, struct upb_msgdef *md, upb_strptr str, - struct upb_status *status) +void upb_msg_decodestr(upb_msg *msg, struct upb_msgdef *md, upb_strptr str, + struct upb_status *status) { - upb_parser *p = upb_parser_new(md); + upb_decoder *d = upb_decoder_new(md); upb_msgsink *s = upb_msgsink_new(md); upb_msgsink_reset(s, msg); - upb_parser_reset(p, upb_msgsink_sink(s)); + upb_decoder_reset(d, upb_msgsink_sink(s)); upb_msg_clear(msg, md); - upb_parser_parse(p, str, status); + upb_decoder_decode(d, str, status); - upb_parser_free(p); + upb_decoder_free(d); upb_msgsink_free(s); } -- cgit v1.2.3