1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef UPB_REFLECTION_ENUM_RESERVED_RANGE_INTERNAL_H_ 9 #define UPB_REFLECTION_ENUM_RESERVED_RANGE_INTERNAL_H_ 10 11 #include "upb/reflection/enum_reserved_range.h" 12 13 // Must be last. 14 #include "upb/port/def.inc" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 upb_EnumReservedRange* _upb_EnumReservedRange_At(const upb_EnumReservedRange* r, 21 int i); 22 23 // Allocate and initialize an array of |n| reserved ranges owned by |e|. 24 upb_EnumReservedRange* _upb_EnumReservedRanges_New( 25 upb_DefBuilder* ctx, int n, 26 const UPB_DESC(EnumDescriptorProto_EnumReservedRange*) const* protos, 27 const upb_EnumDef* e); 28 29 #ifdef __cplusplus 30 } /* extern "C" */ 31 #endif 32 33 #include "upb/port/undef.inc" 34 35 #endif /* UPB_REFLECTION_ENUM_RESERVED_RANGE_INTERNAL_H_ */ 36