Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:25:23

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef UPB_MINI_DESCRIPTOR_BUILD_ENUM_H_
0009 #define UPB_MINI_DESCRIPTOR_BUILD_ENUM_H_
0010 
0011 #include "upb/base/status.h"
0012 #include "upb/mem/arena.h"
0013 #include "upb/mini_table/enum.h"
0014 
0015 // Must be last.
0016 #include "upb/port/def.inc"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 // Builds a upb_MiniTableEnum from an enum mini descriptor.
0023 // The mini descriptor must be for an enum, not a message.
0024 UPB_API upb_MiniTableEnum* upb_MiniTableEnum_Build(const char* data, size_t len,
0025                                                    upb_Arena* arena,
0026                                                    upb_Status* status);
0027 
0028 #ifdef __cplusplus
0029 } /* extern "C" */
0030 #endif
0031 
0032 #include "upb/port/undef.inc"
0033 
0034 #endif  // UPB_MINI_DESCRIPTOR_BUILD_ENUM_H_