Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:25:24

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef UPB_REFLECTION_ENUM_VALUE_DEF_INTERNAL_H_
0009 #define UPB_REFLECTION_ENUM_VALUE_DEF_INTERNAL_H_
0010 
0011 #include "upb/reflection/enum_value_def.h"
0012 
0013 // Must be last.
0014 #include "upb/port/def.inc"
0015 
0016 #ifdef __cplusplus
0017 extern "C" {
0018 #endif
0019 
0020 upb_EnumValueDef* _upb_EnumValueDef_At(const upb_EnumValueDef* v, int i);
0021 
0022 // Allocate and initialize an array of |n| enum value defs owned by |e|.
0023 upb_EnumValueDef* _upb_EnumValueDefs_New(
0024     upb_DefBuilder* ctx, const char* prefix, int n,
0025     const UPB_DESC(EnumValueDescriptorProto*) const* protos,
0026     const UPB_DESC(FeatureSet*) parent_features, upb_EnumDef* e,
0027     bool* is_sorted);
0028 
0029 const upb_EnumValueDef** _upb_EnumValueDefs_Sorted(const upb_EnumValueDef* v,
0030                                                    int n, upb_Arena* a);
0031 
0032 #ifdef __cplusplus
0033 } /* extern "C" */
0034 #endif
0035 
0036 #include "upb/port/undef.inc"
0037 
0038 #endif /* UPB_REFLECTION_ENUM_VALUE_DEF_INTERNAL_H_ */