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 PROTOBUF_COMPILER_HBP_GEN_EXTENSIONS_H_ 9 #define PROTOBUF_COMPILER_HBP_GEN_EXTENSIONS_H_ 10 11 #include "google/protobuf/descriptor.h" 12 #include "google/protobuf/compiler/hpb/output.h" 13 14 namespace google::protobuf::hpb_generator { 15 16 namespace protobuf = ::proto2; 17 18 void WriteExtensionIdentifiersHeader( 19 const std::vector<const protobuf::FieldDescriptor*>& extensions, 20 Output& output); 21 void WriteExtensionIdentifierHeader(const protobuf::FieldDescriptor* ext, 22 Output& output); 23 void WriteExtensionIdentifiers( 24 const std::vector<const protobuf::FieldDescriptor*>& extensions, 25 Output& output); 26 void WriteExtensionIdentifier(const protobuf::FieldDescriptor* ext, 27 Output& output); 28 29 } // namespace protobuf 30 } // namespace google::hpb_generator 31 32 #endif // PROTOBUF_COMPILER_HBP_GEN_EXTENSIONS_H_ 33