Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:18

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_TABLE_SUB_H_
0009 #define UPB_MINI_TABLE_SUB_H_
0010 
0011 #include "upb/mini_table/enum.h"
0012 #include "upb/mini_table/internal/sub.h"
0013 #include "upb/mini_table/message.h"
0014 
0015 // Must be last.
0016 #include "upb/port/def.inc"
0017 
0018 typedef union upb_MiniTableSub upb_MiniTableSub;
0019 
0020 #ifdef __cplusplus
0021 extern "C" {
0022 #endif
0023 
0024 // Constructors
0025 
0026 UPB_API_INLINE upb_MiniTableSub
0027 upb_MiniTableSub_FromEnum(const upb_MiniTableEnum* subenum);
0028 
0029 UPB_API_INLINE upb_MiniTableSub
0030 upb_MiniTableSub_FromMessage(const upb_MiniTable* submsg);
0031 
0032 // Getters
0033 
0034 UPB_API_INLINE const upb_MiniTableEnum* upb_MiniTableSub_Enum(
0035     upb_MiniTableSub sub);
0036 
0037 UPB_API_INLINE const upb_MiniTable* upb_MiniTableSub_Message(
0038     upb_MiniTableSub sub);
0039 
0040 #ifdef __cplusplus
0041 } /* extern "C" */
0042 #endif
0043 
0044 #include "upb/port/undef.inc"
0045 
0046 #endif /* UPB_MINI_TABLE_SUB_H_ */