WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
build_enum.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_MINI_DESCRIPTOR_BUILD_ENUM_H_
9#define UPB_MINI_DESCRIPTOR_BUILD_ENUM_H_
10
11#include "upb/base/status.h"
12#include "upb/mem/arena.h"
13#include "upb/mini_table/enum.h"
14
15// Must be last.
16#include "upb/port/def.inc"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22// Builds a upb_MiniTableEnum from an enum mini descriptor.
23// The mini descriptor must be for an enum, not a message.
25 upb_Arena* arena,
26 upb_Status* status);
27
28#ifdef __cplusplus
29} /* extern "C" */
30#endif
31
32#include "upb/port/undef.inc"
33
34#endif // UPB_MINI_DESCRIPTOR_BUILD_ENUM_H_
UPB_API upb_MiniTableEnum * upb_MiniTableEnum_Build(const char *data, size_t len, upb_Arena *arena, upb_Status *status)
#define UPB_API
Definition def.inc:162
Definition arena.h:29
Definition enum.h:16
Definition status.h:18