Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
12 months ago
|
// Protocol Buffers - Google's data interchange format
|
||
|
// Copyright 2023 Google LLC. All rights reserved.
|
||
|
//
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file or at
|
||
|
// https://developers.google.com/open-source/licenses/bsd
|
||
|
|
||
|
#ifndef UPB_MESSAGE_COMPAT_H_
|
||
|
#define UPB_MESSAGE_COMPAT_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include "upb/message/message.h"
|
||
|
|
||
|
// Must be last.
|
||
|
#include "upb/port/def.inc"
|
||
|
|
||
|
// upb does not support mixing minitables from different sources but these
|
||
|
// functions are still used by some existing users so for now we make them
|
||
|
// available here. This may or may not change in the future so do not add
|
||
|
// them to new code.
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
// Returns the extension with the given field number, or NULL on failure.
|
||
|
const upb_Message_Extension* upb_Message_FindExtensionByNumber(
|
||
|
const upb_Message* msg, uint32_t field_number);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#include "upb/port/undef.inc"
|
||
|
|
||
|
#endif /* UPB_MESSAGE_COMPAT_H_ */
|