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 #ifndef UPB_REFLECTION_FILE_DEF_INTERNAL_H_ 9 #define UPB_REFLECTION_FILE_DEF_INTERNAL_H_ 10 11 #include "upb/reflection/file_def.h" 12 13 // Must be last. 14 #include "upb/port/def.inc" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 const upb_MiniTableExtension* _upb_FileDef_ExtensionMiniTable( 21 const upb_FileDef* f, int i); 22 const int32_t* _upb_FileDef_PublicDependencyIndexes(const upb_FileDef* f); 23 const int32_t* _upb_FileDef_WeakDependencyIndexes(const upb_FileDef* f); 24 25 // upb_FileDef_Package() returns "" if f->package is NULL, this does not. 26 const char* _upb_FileDef_RawPackage(const upb_FileDef* f); 27 28 void _upb_FileDef_Create(upb_DefBuilder* ctx, 29 const UPB_DESC(FileDescriptorProto) * file_proto); 30 31 #ifdef __cplusplus 32 } /* extern "C" */ 33 #endif 34 35 #include "upb/port/undef.inc" 36 37 #endif /* UPB_REFLECTION_FILE_DEF_INTERNAL_H_ */ 38