diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-06-24 18:35:57 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-06-24 18:35:57 -0700 |
commit | ec67a5ded6a3f9c77e265e1beb3efff9fd68aa32 (patch) | |
tree | 09d582152e0109eaf8ce2fd30c19cc7c7eb55aed /upb_msg.h | |
parent | 9595dfa2dccef73009cf71078627d5ef7ed3e514 (diff) |
Implemented a bit more of upb_context.
Diffstat (limited to 'upb_msg.h')
-rw-r--r-- | upb_msg.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -67,9 +67,11 @@ struct upb_msg { int num_required_fields; /* Required fields have the lowest set bytemasks. */ struct upb_inttable fields_by_num; struct upb_strtable fields_by_name; - struct upb_msg_field fields[]; + struct upb_msg_field *fields; }; +/* Initialize and free a upb_msg. Note that init does not resolve + * upb_msg_field.ref -- that is left to the caller. */ void upb_msg_init(struct upb_msg *m, struct google_protobuf_DescriptorProto *d); void upb_msg_free(struct upb_msg *m); |