Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:18

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 // IWYU pragma: private, include "upb/reflection/def.h"
0009 
0010 #ifndef UPB_REFLECTION_ONEOF_DEF_H_
0011 #define UPB_REFLECTION_ONEOF_DEF_H_
0012 
0013 #include "upb/reflection/common.h"
0014 
0015 // Must be last.
0016 #include "upb/port/def.inc"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 UPB_API const upb_MessageDef* upb_OneofDef_ContainingType(
0023     const upb_OneofDef* o);
0024 UPB_API const upb_FieldDef* upb_OneofDef_Field(const upb_OneofDef* o, int i);
0025 UPB_API int upb_OneofDef_FieldCount(const upb_OneofDef* o);
0026 const char* upb_OneofDef_FullName(const upb_OneofDef* o);
0027 bool upb_OneofDef_HasOptions(const upb_OneofDef* o);
0028 uint32_t upb_OneofDef_Index(const upb_OneofDef* o);
0029 bool upb_OneofDef_IsSynthetic(const upb_OneofDef* o);
0030 const upb_FieldDef* upb_OneofDef_LookupName(const upb_OneofDef* o,
0031                                             const char* name);
0032 const upb_FieldDef* upb_OneofDef_LookupNameWithSize(const upb_OneofDef* o,
0033                                                     const char* name,
0034                                                     size_t size);
0035 const upb_FieldDef* upb_OneofDef_LookupNumber(const upb_OneofDef* o,
0036                                               uint32_t num);
0037 UPB_API const char* upb_OneofDef_Name(const upb_OneofDef* o);
0038 int upb_OneofDef_numfields(const upb_OneofDef* o);
0039 const UPB_DESC(OneofOptions*) upb_OneofDef_Options(const upb_OneofDef* o);
0040 const UPB_DESC(FeatureSet*)
0041     upb_OneofDef_ResolvedFeatures(const upb_OneofDef* o);
0042 
0043 #ifdef __cplusplus
0044 } /* extern "C" */
0045 #endif
0046 
0047 #include "upb/port/undef.inc"
0048 
0049 #endif /* UPB_REFLECTION_ONEOF_DEF_H_ */