1// Protocol Buffers - Google's data interchange format
2// Copyright 2024 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#include "hpb/extension.h"
9
10#include "hpb/multibackend.h"
11
12#if HPB_INTERNAL_BACKEND == HPB_INTERNAL_BACKEND_UPB
13#include "upb/mini_table/extension_registry.h"
14
15namespace hpb {
16namespace internal {
17upb_ExtensionRegistry* GetUpbExtensions(
18 const ExtensionRegistry& extension_registry) {
19 return extension_registry.registry_;
20}
21} // namespace internal
22} // namespace hpb
23#endif
24