WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
oneof_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_ONEOF_DEF_INTERNAL_H_
9#define UPB_REFLECTION_ONEOF_DEF_INTERNAL_H_
10
12
13// Must be last.
14#include "upb/port/def.inc"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
22 const upb_FieldDef* f, const char* name, size_t size);
23
24// Allocate and initialize an array of |n| oneof defs owned by |m|.
26 const UPB_DESC(OneofDescriptorProto*)
27 const* protos,
28 const UPB_DESC(FeatureSet*) parent_features,
30
32
33#ifdef __cplusplus
34} /* extern "C" */
35#endif
36
37#include "upb/port/undef.inc"
38
39#endif /* UPB_REFLECTION_ONEOF_DEF_INTERNAL_H_ */
#define UPB_DESC(sym)
Definition def.inc:496
size_t _upb_OneofDefs_Finalize(upb_DefBuilder *ctx, upb_MessageDef *m)
upb_OneofDef * _upb_OneofDefs_New(upb_DefBuilder *ctx, int n, const UPB_DESC(OneofDescriptorProto *) const *protos, const UPB_DESC(FeatureSet *) parent_features, upb_MessageDef *m)
upb_OneofDef * _upb_OneofDef_At(const upb_OneofDef *o, int i)
void _upb_OneofDef_Insert(upb_DefBuilder *ctx, upb_OneofDef *o, const upb_FieldDef *f, const char *name, size_t size)
struct upb_FieldDef upb_FieldDef
Definition common.h:29
struct upb_OneofDef upb_OneofDef
Definition common.h:34
struct upb_MessageDef upb_MessageDef
Definition common.h:31
Definition def_builder.h:49