From cafebf6beede670a10535809667ac9b9f3033091 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Tue, 6 Mar 2018 23:59:58 +0000 Subject: For encoding upb needs descriptor type instead of type. --- upb/def.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'upb/def.h') diff --git a/upb/def.h b/upb/def.h index 81c553b..10fa510 100644 --- a/upb/def.h +++ b/upb/def.h @@ -279,6 +279,9 @@ typedef enum { UPB_SYNTAX_PROTO3 = 3 } upb_syntax_t; +/* Maps descriptor type -> upb field type. */ +extern const uint8_t upb_desctype_to_fieldtype[]; + /* Maximum field number allowed for FieldDefs. This is an inherent limit of the * protobuf wire format. */ #define UPB_MAX_FIELDNUMBER ((1 << 29) - 1) -- cgit v1.2.3