Sha256: 5a16054910a2724e136d204ba9fa9093405c57c5ac9cff9d54ee1ea30bdac1d5

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

// 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"
#include "upb/mini_table/extension.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

const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
    const upb_Message* msg, size_t index);

// Returns the minitable with the given field number, or NULL on failure.
const upb_MiniTableExtension* 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_ */

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grpc-1.68.1 third_party/upb/upb/message/compat.h
grpc-1.67.0 third_party/upb/upb/message/compat.h
grpc-1.67.0.pre1 third_party/upb/upb/message/compat.h
grpc-1.66.0 third_party/upb/upb/message/compat.h
grpc-1.66.0.pre5 third_party/upb/upb/message/compat.h
grpc-1.66.0.pre3 third_party/upb/upb/message/compat.h