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 THIRD_PARTY_UPB_UPB_GENERATOR_REFLECTION_NAMES_H_ 9 #define THIRD_PARTY_UPB_UPB_GENERATOR_REFLECTION_NAMES_H_ 10 11 #include <string> 12 13 #include "absl/strings/string_view.h" 14 15 // Must be last. 16 #include "upb/port/def.inc" 17 18 namespace upb { 19 namespace generator { 20 21 // These are the publicly visible symbols defined in foo.upbdefs.h. 22 // const upb_MessageDef* <GetMessage>(upb_DefPool *s); 23 // extern const _upb_DefPool_Init <File>; 24 25 UPBC_API std::string ReflectionGetMessageSymbol(absl::string_view full_name); 26 UPBC_API std::string ReflectionFileSymbol(absl::string_view filename); 27 28 } // namespace generator 29 } // namespace upb 30 31 #include "upb/port/undef.inc" 32 33 #endif // THIRD_PARTY_UPB_UPB_GENERATOR_REFLECTION_NAMES_H_ 34