Back to home page

EIC code displayed by LXR

 
 

    


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

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_MESSAGE_COMPAT_H_
0009 #define UPB_MESSAGE_COMPAT_H_
0010 
0011 #include <stdint.h>
0012 
0013 #include "upb/message/message.h"
0014 #include "upb/mini_table/extension.h"
0015 
0016 // Must be last.
0017 #include "upb/port/def.inc"
0018 
0019 // upb does not support mixing minitables from different sources but these
0020 // functions are still used by some existing users so for now we make them
0021 // available here. This may or may not change in the future so do not add
0022 // them to new code.
0023 
0024 #ifdef __cplusplus
0025 extern "C" {
0026 #endif
0027 
0028 const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
0029     const upb_Message* msg, size_t index);
0030 
0031 // Returns the minitable with the given field number, or NULL on failure.
0032 const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
0033     const upb_Message* msg, uint32_t field_number);
0034 
0035 #ifdef __cplusplus
0036 } /* extern "C" */
0037 #endif
0038 
0039 #include "upb/port/undef.inc"
0040 
0041 #endif /* UPB_MESSAGE_COMPAT_H_ */