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_FILE_DEF_H_
0011 #define UPB_REFLECTION_FILE_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 char* upb_FileDef_EditionName(int edition);
0023 
0024 const upb_FileDef* upb_FileDef_Dependency(const upb_FileDef* f, int i);
0025 int upb_FileDef_DependencyCount(const upb_FileDef* f);
0026 bool upb_FileDef_HasOptions(const upb_FileDef* f);
0027 UPB_API const char* upb_FileDef_Name(const upb_FileDef* f);
0028 const UPB_DESC(FileOptions) * upb_FileDef_Options(const upb_FileDef* f);
0029 const UPB_DESC(FeatureSet) * upb_FileDef_ResolvedFeatures(const upb_FileDef* f);
0030 const char* upb_FileDef_Package(const upb_FileDef* f);
0031 UPB_DESC(Edition) upb_FileDef_Edition(const upb_FileDef* f);
0032 UPB_API const upb_DefPool* upb_FileDef_Pool(const upb_FileDef* f);
0033 
0034 const upb_FileDef* upb_FileDef_PublicDependency(const upb_FileDef* f, int i);
0035 int upb_FileDef_PublicDependencyCount(const upb_FileDef* f);
0036 
0037 const upb_ServiceDef* upb_FileDef_Service(const upb_FileDef* f, int i);
0038 int upb_FileDef_ServiceCount(const upb_FileDef* f);
0039 
0040 UPB_API upb_Syntax upb_FileDef_Syntax(const upb_FileDef* f);
0041 
0042 const upb_EnumDef* upb_FileDef_TopLevelEnum(const upb_FileDef* f, int i);
0043 int upb_FileDef_TopLevelEnumCount(const upb_FileDef* f);
0044 
0045 const upb_FieldDef* upb_FileDef_TopLevelExtension(const upb_FileDef* f, int i);
0046 int upb_FileDef_TopLevelExtensionCount(const upb_FileDef* f);
0047 
0048 const upb_MessageDef* upb_FileDef_TopLevelMessage(const upb_FileDef* f, int i);
0049 int upb_FileDef_TopLevelMessageCount(const upb_FileDef* f);
0050 
0051 const upb_FileDef* upb_FileDef_WeakDependency(const upb_FileDef* f, int i);
0052 int upb_FileDef_WeakDependencyCount(const upb_FileDef* f);
0053 
0054 // Returns whether |symbol| is transitively included by |f|
0055 bool upb_FileDef_Resolves(const upb_FileDef* f, const char* symbol);
0056 
0057 #ifdef __cplusplus
0058 } /* extern "C" */
0059 #endif
0060 
0061 #include "upb/port/undef.inc"
0062 
0063 #endif /* UPB_REFLECTION_FILE_DEF_H_ */