• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // IWYU pragma: private, include "upb/reflection/def.h"
9 
10 #ifndef UPB_REFLECTION_ENUM_VALUE_DEF_H_
11 #define UPB_REFLECTION_ENUM_VALUE_DEF_H_
12 
13 #include "upb/reflection/common.h"
14 
15 // Must be last.
16 #include "upb/port/def.inc"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 const upb_EnumDef* upb_EnumValueDef_Enum(const upb_EnumValueDef* v);
23 const char* upb_EnumValueDef_FullName(const upb_EnumValueDef* v);
24 bool upb_EnumValueDef_HasOptions(const upb_EnumValueDef* v);
25 uint32_t upb_EnumValueDef_Index(const upb_EnumValueDef* v);
26 UPB_API const char* upb_EnumValueDef_Name(const upb_EnumValueDef* v);
27 UPB_API int32_t upb_EnumValueDef_Number(const upb_EnumValueDef* v);
28 const UPB_DESC(EnumValueOptions) *
29     upb_EnumValueDef_Options(const upb_EnumValueDef* v);
30 const UPB_DESC(FeatureSet) *
31     upb_EnumValueDef_ResolvedFeatures(const upb_EnumValueDef* e);
32 
33 #ifdef __cplusplus
34 } /* extern "C" */
35 #endif
36 
37 #include "upb/port/undef.inc"
38 
39 #endif /* UPB_REFLECTION_ENUM_VALUE_DEF_H_ */
40