Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 09:31:37

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 // Same as upb_Message_NextExtension but iterates in reverse wire order
0029 bool upb_Message_NextExtensionReverse(const upb_Message* msg,
0030                                       const upb_MiniTableExtension** result,
0031                                       uintptr_t* iter);
0032 // Returns the minitable with the given field number, or NULL on failure.
0033 const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
0034     const upb_Message* msg, uint32_t field_number);
0035 
0036 #ifdef __cplusplus
0037 } /* extern "C" */
0038 #endif
0039 
0040 #include "upb/port/undef.inc"
0041 
0042 #endif /* UPB_MESSAGE_COMPAT_H_ */