• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_TABLE_EXTENSION_H_
9 #define UPB_MINI_TABLE_EXTENSION_H_
10 
11 #include <stdint.h>
12 
13 #include "upb/base/descriptor_constants.h"
14 #include "upb/mini_table/internal/extension.h"
15 #include "upb/mini_table/message.h"
16 
17 // Must be last.
18 #include "upb/port/def.inc"
19 
20 typedef struct upb_MiniTableExtension upb_MiniTableExtension;
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 UPB_API_INLINE upb_CType
27 upb_MiniTableExtension_CType(const upb_MiniTableExtension* e);
28 
29 UPB_API_INLINE uint32_t
30 upb_MiniTableExtension_Number(const upb_MiniTableExtension* e);
31 
32 UPB_API_INLINE const upb_MiniTable* upb_MiniTableExtension_GetSubMessage(
33     const upb_MiniTableExtension* e);
34 
35 UPB_API_INLINE void upb_MiniTableExtension_SetSubMessage(
36     upb_MiniTableExtension* e, const upb_MiniTable* m);
37 
38 #ifdef __cplusplus
39 } /* extern "C" */
40 #endif
41 
42 #include "upb/port/undef.inc"
43 
44 #endif /* UPB_MINI_TABLE_EXTENSION_H_ */
45