summaryrefslogtreecommitdiff
path: root/upb_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb_msg.h')
-rw-r--r--upb_msg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/upb_msg.h b/upb_msg.h
index 4f06119..6bbb3c3 100644
--- a/upb_msg.h
+++ b/upb_msg.h
@@ -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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback