• 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 // Declarations common to all public def types.
11 
12 #ifndef UPB_REFLECTION_COMMON_H_
13 #define UPB_REFLECTION_COMMON_H_
14 
15 #include "upb/reflection/descriptor_bootstrap.h"  // IWYU pragma: export
16 
17 typedef enum {
18   kUpb_Syntax_Proto2 = 2,
19   kUpb_Syntax_Proto3 = 3,
20   kUpb_Syntax_Editions = 99
21 } upb_Syntax;
22 
23 // Forward declarations for circular references.
24 typedef struct upb_DefPool upb_DefPool;
25 typedef struct upb_EnumDef upb_EnumDef;
26 typedef struct upb_EnumReservedRange upb_EnumReservedRange;
27 typedef struct upb_EnumValueDef upb_EnumValueDef;
28 typedef struct upb_ExtensionRange upb_ExtensionRange;
29 typedef struct upb_FieldDef upb_FieldDef;
30 typedef struct upb_FileDef upb_FileDef;
31 typedef struct upb_MessageDef upb_MessageDef;
32 typedef struct upb_MessageReservedRange upb_MessageReservedRange;
33 typedef struct upb_MethodDef upb_MethodDef;
34 typedef struct upb_OneofDef upb_OneofDef;
35 typedef struct upb_ServiceDef upb_ServiceDef;
36 
37 // EVERYTHING BELOW THIS LINE IS INTERNAL - DO NOT USE /////////////////////////
38 
39 typedef struct upb_DefBuilder upb_DefBuilder;
40 
41 #endif /* UPB_REFLECTION_COMMON_H_ */
42