WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
compat.h
Go to the documentation of this file.
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_MESSAGE_COMPAT_H_
9#define UPB_MESSAGE_COMPAT_H_
10
11#include <stdint.h>
12
13#include "upb/message/message.h"
15
16// Must be last.
17#include "upb/port/def.inc"
18
19// upb does not support mixing minitables from different sources but these
20// functions are still used by some existing users so for now we make them
21// available here. This may or may not change in the future so do not add
22// them to new code.
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28// Same as upb_Message_NextExtension but iterates in reverse wire order
30 const upb_MiniTableExtension** result,
31 uintptr_t* iter);
32// Returns the minitable with the given field number, or NULL on failure.
34 const upb_Message* msg, uint32_t field_number);
35
36#ifdef __cplusplus
37} /* extern "C" */
38#endif
39
40#include "upb/port/undef.inc"
41
42#endif /* UPB_MESSAGE_COMPAT_H_ */
const upb_MiniTableExtension * upb_Message_FindExtensionByNumber(const upb_Message *msg, uint32_t field_number)
bool upb_Message_NextExtensionReverse(const upb_Message *msg, const upb_MiniTableExtension **result, uintptr_t *iter)
Definition types.h:18
Definition extension.h:21