summaryrefslogtreecommitdiff
path: root/src/upb_glue.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-02-18 18:17:06 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-02-18 18:17:06 -0800
commit61e5d367ff180a4fcd48dd06b9918a9d37edc766 (patch)
treedb9b726919615984bc2bc4750340b90f58777cb2 /src/upb_glue.c
parentff23340fe2983b1f034b0e156807b328417d2310 (diff)
Change the API for getting the bootstrapped defs.
The symtab that contains them is now hidden, and you can look them up by name but there is no access to the symtab itself, so there is no risk of mutating it (by extending it, adding other defs to it, etc).
Diffstat (limited to 'src/upb_glue.c')
-rw-r--r--src/upb_glue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/upb_glue.c b/src/upb_glue.c
index 536adc0..a3d4e7d 100644
--- a/src/upb_glue.c
+++ b/src/upb_glue.c
@@ -38,13 +38,12 @@ void upb_strtomsg(upb_string *str, upb_msg *msg, upb_msgdef *md,
}
void upb_parsedesc(upb_symtab *symtab, upb_string *str, upb_status *status) {
- upb_symtab_add_descriptorproto(symtab);
upb_stringsrc strsrc;
upb_stringsrc_init(&strsrc);
upb_stringsrc_reset(&strsrc, str);
upb_decoder d;
- upb_msgdef *fds_msgdef = upb_symtab_fds_def(symtab);
+ upb_msgdef *fds_msgdef = upb_getfdsdef();
upb_decoder_init(&d, fds_msgdef);
upb_decoder_reset(&d, upb_stringsrc_bytesrc(&strsrc));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback