diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-07 10:39:08 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-07 10:39:08 -0700 |
commit | 209dce5eb08709bfb5b21e19289b3814619ca6cc (patch) | |
tree | 000b1e5f1ef07274c4ed46e86b0993f60d8c900f /src/upb_def.h | |
parent | a7eaeaaaeca7f0860ecd690f5861e7d72259bf68 (diff) |
Defined the function for getting a upb_symtab for descriptor.proto.
Diffstat (limited to 'src/upb_def.h')
-rw-r--r-- | src/upb_def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upb_def.h b/src/upb_def.h index 033dcde..b73b0f9 100644 --- a/src/upb_def.h +++ b/src/upb_def.h @@ -257,6 +257,11 @@ upb_def **upb_symtab_getdefs(upb_symtab *s, int *count, upb_def_type_t type); // more useful? Maybe it should be an option. void upb_symtab_addfds(upb_symtab *s, upb_src *desc, upb_status *status); +// Returns a symtab that defines google.protobuf.DescriptorProto and all other +// types that are defined in descriptor.proto. This allows you to load other +// proto types. The caller owns a ref on the returned symtab. +upb_symtab *upb_get_descriptor_symtab(); + /* upb_def casts **************************************************************/ |