WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
enum_value_def.h
Go to the documentation of this file.
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_ENUM_VALUE_DEF_INTERNAL_H_
9#define UPB_REFLECTION_ENUM_VALUE_DEF_INTERNAL_H_
10
12
13// Must be last.
14#include "upb/port/def.inc"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
21
22// Allocate and initialize an array of |n| enum value defs owned by |e|.
24 upb_DefBuilder* ctx, const char* prefix, int n,
25 const UPB_DESC(EnumValueDescriptorProto*) const* protos,
26 const UPB_DESC(FeatureSet*) parent_features, upb_EnumDef* e,
27 bool* is_sorted);
28
30 size_t n, upb_Arena* a);
31
32#ifdef __cplusplus
33} /* extern "C" */
34#endif
35
36#include "upb/port/undef.inc"
37
38#endif /* UPB_REFLECTION_ENUM_VALUE_DEF_INTERNAL_H_ */
#define UPB_DESC(sym)
Definition def.inc:496
upb_EnumValueDef * _upb_EnumValueDef_At(const upb_EnumValueDef *v, int i)
const upb_EnumValueDef ** _upb_EnumValueDefs_Sorted(const upb_EnumValueDef *v, size_t n, upb_Arena *a)
upb_EnumValueDef * _upb_EnumValueDefs_New(upb_DefBuilder *ctx, const char *prefix, int n, const UPB_DESC(EnumValueDescriptorProto *) const *protos, const UPB_DESC(FeatureSet *) parent_features, upb_EnumDef *e, bool *is_sorted)
struct upb_EnumDef upb_EnumDef
Definition common.h:25
struct upb_EnumValueDef upb_EnumValueDef
Definition common.h:27
Definition arena.h:29
Definition def_builder.h:49