blob: 71c91c84c705ea81ea86894626509320089f969b [file] [log] [blame]
Adam Cozzette501ecec2023-09-26 14:36:20 -07001// Protocol Buffers - Google's data interchange format
2// Copyright 2023 Google LLC. All rights reserved.
Adam Cozzette501ecec2023-09-26 14:36:20 -07003//
Hong Shinc482a8a2023-11-09 09:30:34 -08004// 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 Cozzette501ecec2023-09-26 14:36:20 -07007
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
14namespace protos_generator {
15
16namespace protobuf = ::google::protobuf;
17
18void WriteExtensionIdentifiersHeader(
19 const std::vector<const protobuf::FieldDescriptor*>& extensions,
20 Output& output);
21void WriteExtensionIdentifierHeader(const protobuf::FieldDescriptor* ext,
22 Output& output);
23void WriteExtensionIdentifiers(
24 const std::vector<const protobuf::FieldDescriptor*>& extensions,
25 Output& output);
26void WriteExtensionIdentifier(const protobuf::FieldDescriptor* ext,
27 Output& output);
28
29} // namespace protos_generator
30
31#endif // UPB_PROTOS_GENERATOR_GEN_EXTENSIONS_H_