diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-02-04 15:43:52 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-02-04 15:43:52 -0800 |
commit | 7d565f1e7a0f107506d3cf31ef2e33e22a504d2b (patch) | |
tree | 151a5102b0ded6e8ad098a86e692c1d14e390167 /upb/pb/glue.c | |
parent | 0fd2f830882402979a83010e89650e7245960d39 (diff) |
Sync from Google development.
Diffstat (limited to 'upb/pb/glue.c')
-rw-r--r-- | upb/pb/glue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/upb/pb/glue.c b/upb/pb/glue.c index 73ef145..fde2dd1 100644 --- a/upb/pb/glue.c +++ b/upb/pb/glue.c @@ -17,8 +17,10 @@ upb_def **upb_load_defs_from_descriptor(const char *str, size_t len, int *n, void *owner, upb_status *status) { // Create handlers. const upb_handlers *reader_h = upb_descreader_newhandlers(&reader_h); + upb_pbdecodermethodopts opts; + upb_pbdecodermethodopts_init(&opts, reader_h); const upb_pbdecodermethod *decoder_m = - upb_pbdecodermethod_newfordesthandlers(reader_h, &decoder_m); + upb_pbdecodermethod_new(&opts, &decoder_m); upb_pbdecoder decoder; upb_descreader reader; |