Adam Cozzette | 501ecec | 2023-09-26 14:36:20 -0700 | [diff] [blame] | 1 | // Protocol Buffers - Google's data interchange format |
| 2 | // Copyright 2023 Google LLC. All rights reserved. |
Adam Cozzette | 501ecec | 2023-09-26 14:36:20 -0700 | [diff] [blame] | 3 | // |
Hong Shin | c482a8a | 2023-11-09 09:30:34 -0800 | [diff] [blame] | 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 |
Adam Cozzette | 501ecec | 2023-09-26 14:36:20 -0700 | [diff] [blame] | 7 | |
| 8 | #ifndef UPB_PROTOS_GENERATOR_GEN_EXTENSIONS_H_ |
| 9 | #define UPB_PROTOS_GENERATOR_GEN_EXTENSIONS_H_ |
| 10 | |
| 11 | #include "google/protobuf/descriptor.h" |
| 12 | #include "protos_generator/output.h" |
| 13 | |
| 14 | namespace protos_generator { |
| 15 | |
| 16 | namespace protobuf = ::google::protobuf; |
| 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 protos_generator |
| 30 | |
| 31 | #endif // UPB_PROTOS_GENERATOR_GEN_EXTENSIONS_H_ |