├── spm-core-include └── grpc ├── spm-cpp-include └── grpcpp ├── tests ├── spm │ ├── README.md │ └── gRPCSample │ │ ├── README.md │ │ ├── build.xcconfig │ │ └── gRPCSample │ │ └── gRPCSampleApp.swift └── cocoapod │ └── gRPCSample │ ├── Podfile │ └── gRPCSample │ ├── Info.plist │ ├── ViewController.h │ ├── AppDelegate.h │ ├── SceneDelegate.h │ └── ViewController.m ├── src ├── objective-c │ ├── GRPCClient │ │ ├── README.md │ │ ├── GRPCTypes.mm │ │ ├── GRPCCall+GID.mm │ │ ├── private │ │ │ └── GRPCCore │ │ │ │ ├── NSData+GRPC.h │ │ │ │ └── NSDictionary+GRPC.h │ │ ├── GRPCCall+GID.h │ │ ├── version.h │ │ └── GRPCDispatchable.h │ ├── RxLibrary │ │ ├── README.md │ │ ├── GRXWriter+Transformations.h │ │ ├── GRXWriter+Transformations.m │ │ └── GRXMappingWriter.h │ ├── PrivacyInfo.xcprivacy │ └── ProtoRPC │ │ └── ProtoServiceLegacy.h ├── core │ ├── net │ │ ├── socket_mutator.cc │ │ └── socket_mutator.h │ ├── ext │ │ ├── upb-gen │ │ │ ├── envoy │ │ │ │ ├── type │ │ │ │ │ ├── v3 │ │ │ │ │ │ ├── http.upb_minitable.c │ │ │ │ │ │ ├── http.upb_minitable.h │ │ │ │ │ │ ├── ratelimit_unit.upb_minitable.c │ │ │ │ │ │ ├── ratelimit_unit.upb_minitable.h │ │ │ │ │ │ ├── http.upb.h │ │ │ │ │ │ ├── http_status.upb_minitable.h │ │ │ │ │ │ └── token_bucket.upb_minitable.h │ │ │ │ │ ├── http │ │ │ │ │ │ └── v3 │ │ │ │ │ │ │ └── cookie.upb_minitable.h │ │ │ │ │ └── matcher │ │ │ │ │ │ └── v3 │ │ │ │ │ │ ├── node.upb_minitable.h │ │ │ │ │ │ └── path.upb_minitable.h │ │ │ │ ├── admin │ │ │ │ │ └── v3 │ │ │ │ │ │ ├── tap.upb_minitable.h │ │ │ │ │ │ ├── memory.upb_minitable.h │ │ │ │ │ │ ├── metrics.upb_minitable.h │ │ │ │ │ │ └── mutex_stats.upb_minitable.h │ │ │ │ └── config │ │ │ │ │ └── core │ │ │ │ │ └── v3 │ │ │ │ │ └── http_uri.upb_minitable.h │ │ │ ├── google │ │ │ │ ├── api │ │ │ │ │ ├── annotations.upb_minitable.h │ │ │ │ │ └── httpbody.upb_minitable.h │ │ │ │ ├── rpc │ │ │ │ │ └── status.upb_minitable.h │ │ │ │ └── protobuf │ │ │ │ │ ├── any.upb_minitable.h │ │ │ │ │ ├── empty.upb_minitable.h │ │ │ │ │ ├── duration.upb_minitable.h │ │ │ │ │ └── timestamp.upb_minitable.h │ │ │ ├── udpa │ │ │ │ └── annotations │ │ │ │ │ └── sensitive.upb_minitable.h │ │ │ └── xds │ │ │ │ ├── core │ │ │ │ └── v3 │ │ │ │ │ ├── cidr.upb_minitable.h │ │ │ │ │ ├── resource.upb_minitable.h │ │ │ │ │ ├── authority.upb_minitable.h │ │ │ │ │ ├── extension.upb_minitable.h │ │ │ │ │ └── resource_name.upb_minitable.h │ │ │ │ ├── annotations │ │ │ │ └── v3 │ │ │ │ │ └── sensitive.upb_minitable.h │ │ │ │ ├── type │ │ │ │ ├── v3 │ │ │ │ │ └── typed_struct.upb_minitable.h │ │ │ │ └── matcher │ │ │ │ │ └── v3 │ │ │ │ │ └── cel.upb_minitable.h │ │ │ │ └── service │ │ │ │ └── orca │ │ │ │ └── v3 │ │ │ │ └── orca.upb_minitable.h │ │ ├── upbdefs-gen │ │ │ ├── envoy │ │ │ │ ├── type │ │ │ │ │ └── v3 │ │ │ │ │ │ ├── http.upbdefs.h │ │ │ │ │ │ └── ratelimit_unit.upbdefs.h │ │ │ │ ├── config │ │ │ │ │ └── trace │ │ │ │ │ │ └── v3 │ │ │ │ │ │ └── trace.upbdefs.h │ │ │ │ ├── annotations │ │ │ │ │ └── deprecation.upbdefs.h │ │ │ │ └── extensions │ │ │ │ │ └── transport_sockets │ │ │ │ │ └── tls │ │ │ │ │ └── v3 │ │ │ │ │ └── cert.upbdefs.h │ │ │ ├── google │ │ │ │ └── api │ │ │ │ │ └── annotations.upbdefs.h │ │ │ ├── udpa │ │ │ │ └── annotations │ │ │ │ │ └── sensitive.upbdefs.h │ │ │ └── xds │ │ │ │ └── annotations │ │ │ │ └── v3 │ │ │ │ └── sensitive.upbdefs.h │ │ └── transport │ │ │ └── chttp2 │ │ │ └── transport │ │ │ └── internal_channel_arg_names.h │ ├── util │ │ ├── shared_bit_gen.cc │ │ ├── grpc_check.cc │ │ ├── gethostname.h │ │ ├── gethostname_fallback.cc │ │ ├── json │ │ │ └── json.h │ │ ├── strerror.h │ │ └── alloc.h │ ├── lib │ │ ├── transport │ │ │ └── transport_fwd.h │ │ ├── debug │ │ │ └── trace.h │ │ ├── surface │ │ │ ├── init_internally.cc │ │ │ └── version.cc │ │ ├── iomgr │ │ │ ├── pollset_set_windows.h │ │ │ ├── closure.cc │ │ │ └── wakeup_fd_pipe.h │ │ └── slice │ │ │ └── slice_string_helpers.cc │ ├── client_channel │ │ └── client_channel_args.h │ ├── telemetry │ │ └── default_tcp_tracer.cc │ ├── call │ │ └── call_arena_allocator.cc │ ├── resolver │ │ └── resolver.cc │ └── xds │ │ └── grpc │ │ └── xds_enabled_server.h └── cpp │ ├── common │ ├── rpc_method.cc │ └── version_cc.cc │ └── util │ ├── string_ref.cc │ └── status.cc ├── etc └── README.md ├── scripts ├── prepare_env.sh ├── build_spm_package.sh ├── build_commons.sh ├── build_test_spm_samples.sh ├── delete_pod_version.sh ├── wait_for_pod_release.sh ├── release_cocoapod.sh ├── sync_grpc_src_shallow.sh ├── skip_pod_push_lint.sh └── build_test_cocoapod_samples.sh ├── third_party ├── zlib │ └── inffast.h ├── re2 │ └── util │ │ └── strutil.h ├── upb │ └── upb │ │ ├── reflection │ │ ├── message.hpp │ │ ├── descriptor_bootstrap.h │ │ ├── def.h │ │ ├── internal │ │ │ ├── strdup2.h │ │ │ └── strdup2.c │ │ ├── enum_reserved_range.h │ │ └── message_reserved_range.h │ │ ├── message │ │ ├── map_gencode_util.h │ │ └── merge.h │ │ ├── lex │ │ └── strtod.h │ │ ├── wire │ │ ├── types.h │ │ ├── eps_copy_input_stream.c │ │ └── internal │ │ │ └── constants.h │ │ ├── text │ │ └── options.h │ │ ├── mem │ │ └── alloc.c │ │ ├── base │ │ └── upcast.h │ │ └── mini_table │ │ └── enum.h └── utf8_range │ └── utf8_range.h ├── .gitignore ├── NOTICE.txt └── include ├── grpcpp ├── support │ └── status.h ├── impl │ ├── method_handler_impl.h │ └── codegen │ │ ├── method_handler_impl.h │ │ ├── call.h │ │ ├── sync.h │ │ ├── time.h │ │ ├── slice.h │ │ ├── call_op_set_interface.h │ │ ├── config.h │ │ ├── status.h │ │ ├── call_hook.h │ │ ├── rpc_method.h │ │ ├── string_ref.h │ │ ├── sync_stream.h │ │ ├── async_stream.h │ │ ├── byte_buffer.h │ │ ├── call_op_set.h │ │ ├── interceptor.h │ │ ├── proto_utils.h │ │ ├── metadata_map.h │ │ ├── service_type.h │ │ ├── stub_options.h │ │ ├── client_context.h │ │ ├── server_context.h │ │ ├── client_callback.h │ │ ├── method_handler.h │ │ ├── server_callback.h │ │ ├── callback_common.h │ │ ├── server_interface.h │ │ ├── async_unary_call.h │ │ ├── completion_queue.h │ │ ├── channel_interface.h │ │ ├── client_unary_call.h │ │ ├── message_allocator.h │ │ ├── client_interceptor.h │ │ ├── delegating_channel.h │ │ ├── interceptor_common.h │ │ ├── rpc_service_method.h │ │ ├── server_interceptor.h │ │ ├── create_auth_context.h │ │ ├── intercepted_channel.h │ │ ├── proto_buffer_reader.h │ │ ├── proto_buffer_writer.h │ │ ├── completion_queue_tag.h │ │ ├── security │ │ └── auth_context.h │ │ ├── serialization_traits.h │ │ ├── async_generic_service.h │ │ ├── server_callback_handlers.h │ │ └── status_code_enum.h ├── passive_listener.h └── version_info.h ├── grpc++ ├── alarm.h ├── grpc++.h ├── server.h ├── channel.h ├── impl │ ├── call.h │ ├── rpc_method.h │ ├── codegen │ │ ├── call.h │ │ ├── time.h │ │ ├── slice.h │ │ ├── config.h │ │ └── status.h │ ├── grpc_library.h │ └── service_type.h ├── server_posix.h ├── support │ ├── time.h │ ├── slice.h │ ├── config.h │ ├── status.h │ ├── string_ref.h │ ├── byte_buffer.h │ ├── sync_stream.h │ └── async_stream.h ├── client_context.h ├── create_channel.h ├── resource_quota.h ├── server_builder.h ├── server_context.h ├── completion_queue.h ├── create_channel_posix.h ├── generic │ └── generic_stub.h └── security │ └── credentials.h └── grpc └── impl └── codegen ├── fork.h ├── port_platform.h ├── log.h ├── status.h ├── slice.h ├── atm.h ├── byte_buffer.h ├── sync.h ├── propagation_bits.h ├── byte_buffer_reader.h └── sync_posix.h /spm-core-include/grpc: -------------------------------------------------------------------------------- 1 | ../include/grpc -------------------------------------------------------------------------------- /spm-cpp-include/grpcpp: -------------------------------------------------------------------------------- 1 | ../include/grpcpp -------------------------------------------------------------------------------- /tests/spm/README.md: -------------------------------------------------------------------------------- 1 | ### Overview 2 | 3 | This folder contains test targets related to Swift Package Manager distribution of gRPC-iOS 4 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/README.md: -------------------------------------------------------------------------------- 1 | This is a generic gRPC client for Objective-C on iOS. 2 | 3 | If you're trying to get started with the library or with gRPC, you should first 4 | read GRPCCall.h. 5 | -------------------------------------------------------------------------------- /tests/spm/gRPCSample/README.md: -------------------------------------------------------------------------------- 1 | ### Overview 2 | 3 | Manually created sample app using gRPC via Swift Package Manager 4 | 5 | ### Project Settings 6 | 7 | * XCode 13.3 (13E113) 8 | * SwiftUI & Swift 9 | -------------------------------------------------------------------------------- /etc/README.md: -------------------------------------------------------------------------------- 1 | The roots.pem file is periodically generated from: 2 | https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt 3 | using 4 | https://github.com/agl/extract-nss-root-certs 5 | -------------------------------------------------------------------------------- /tests/spm/gRPCSample/build.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // build.xcconfig 3 | // gRPCSample 4 | // 5 | // Created by Denny Dai on 6/2/22. 6 | // 7 | 8 | // Configuration settings file format documentation can be found at: 9 | // https://help.apple.com/xcode/#/dev745c5c974 10 | 11 | 12 | GCC_TREAT_WARNINGS_AS_ERRORS = YES 13 | -------------------------------------------------------------------------------- /scripts/prepare_env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Scripts to prepare environment for gPRC iOS repo build and test 4 | set -ex 5 | 6 | # Prerequisites 7 | # Xcode command line tools and Homebrew should be already installed 8 | 9 | # GNU command line tools 10 | brew install coreutils 11 | 12 | python3 -m venv .venv 13 | source .venv/bin/activate 14 | pip3 install pyyaml 15 | -------------------------------------------------------------------------------- /src/objective-c/RxLibrary/README.md: -------------------------------------------------------------------------------- 1 | This is a generic Reactive Extensions library for Objective-C, created to ease 2 | the implementation of the gRPC Objective-C runtime. 3 | 4 | It has no dependencies on gRPC nor other libraries, and should eventually be 5 | moved under its own GitHub project. 6 | 7 | If you're trying to get started on the library, you might want to first read 8 | GRXWriter.h and then GRXWriteable.h. 9 | -------------------------------------------------------------------------------- /scripts/build_spm_package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | source ./scripts/build_commons.sh 5 | 6 | ## Build gRPC Swift release package 7 | 8 | # build configuration and paths 9 | SCHEME=gRPC-Package 10 | 11 | DESTINATION="${1:-$GRPC_IOS_DESTINATION}" 12 | 13 | # build via xcodebuild command line 14 | time xcodebuild \ 15 | -scheme $SCHEME \ 16 | -verbose \ 17 | -destination "${DESTINATION}" \ 18 | build \ 19 | $GRPC_IOS_BUILD_FLAGS 20 | -------------------------------------------------------------------------------- /third_party/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start); 12 | -------------------------------------------------------------------------------- /scripts/build_commons.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | # custom build flags 5 | # TODO: re-enable warning as error after grpc native warning fix (https://github.com/grpc/grpc-ios/issues/83) 6 | GRPC_IOS_BUILD_FLAGS=" 7 | GCC_TREAT_WARNINGS_AS_ERRORS=NO 8 | CODE_SIGNING_REQUIRED=NO 9 | CODE_SIGNING_ALLOWED=NO 10 | ONLY_ACTIVE_ARCH=NO 11 | ARCHS=arm64 12 | IPHONEOS_DEPLOYMENT_TARGET=15.0 13 | " 14 | 15 | # Xcodebuild destination for iOS 16 | GRPC_IOS_DESTINATION='generic/platform=iOS' 17 | -------------------------------------------------------------------------------- /scripts/build_test_spm_samples.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | source ./scripts/build_commons.sh 5 | 6 | ## Build gRPC Sample App with Swift Package Manager and Verify Build Success 7 | 8 | # build configuration and paths 9 | SAMPLE_PRJ=tests/spm/gRPCSample/gRPCSample.xcodeproj 10 | SCHEME=gRPCSample 11 | 12 | # build via xcodebuild command line 13 | time xcodebuild \ 14 | -project $SAMPLE_PRJ \ 15 | -scheme $SCHEME \ 16 | -verbose \ 17 | -destination "${GRPC_IOS_DESTINATION}" \ 18 | build \ 19 | $GRPC_IOS_BUILD_FLAGS 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # XCode 2 | ^build/ 3 | *.pbxuser 4 | !default.pbxuser 5 | *.mode1v3 6 | !default.mode1v3 7 | *.mode2v3 8 | !default.mode2v3 9 | *.perspectivev3 10 | !default.perspectivev3 11 | xcuserdata 12 | *.xccheckout 13 | *.moved-aside 14 | DerivedData 15 | *.hmap 16 | *.ipa 17 | *.xcuserstate 18 | *.DS_Store 19 | 20 | # Objective-C generated files 21 | *.pbobjc.* 22 | *.pbrpc.* 23 | 24 | # Cocoapods artifacts 25 | Pods/ 26 | Podfile.lock 27 | *.xcworkspace 28 | 29 | # Bazel files 30 | bazel-* 31 | bazel_format_virtual_environment/ 32 | 33 | # SPM 34 | .build/ 35 | Package.resolved 36 | .swiftpm/ 37 | -------------------------------------------------------------------------------- /third_party/re2/util/strutil.h: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The RE2 Authors. All Rights Reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #ifndef UTIL_STRUTIL_H_ 6 | #define UTIL_STRUTIL_H_ 7 | 8 | #include 9 | 10 | #include "re2/stringpiece.h" 11 | #include "util/util.h" 12 | 13 | namespace re2 { 14 | 15 | std::string CEscape(const StringPiece& src); 16 | void PrefixSuccessor(std::string* prefix); 17 | std::string StringPrintf(const char* format, ...); 18 | 19 | } // namespace re2 20 | 21 | #endif // UTIL_STRUTIL_H_ 22 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 gRPC authors. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/message.hpp: -------------------------------------------------------------------------------- 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_REFLECTION_MESSAGE_HPP_ 9 | #define UPB_REFLECTION_MESSAGE_HPP_ 10 | 11 | #include "upb/reflection/message.h" 12 | 13 | namespace upb { 14 | 15 | typedef upb_MessageValue MessageValue; 16 | 17 | } // namespace upb 18 | 19 | #endif // UPB_REFLECTION_MESSAGE_HPP_ 20 | -------------------------------------------------------------------------------- /scripts/delete_pod_version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | ## Script to delete an exsiting podspec version 5 | ## https://guides.cocoapods.org/terminal/commands.html#pod_trunk_delete 6 | ## Usage: ./delete_pod_version.sh [POD_NAME] [VERSION] 7 | 8 | TARGET_POD=$1 9 | TARGET_VERSION=$2 10 | 11 | if [ -z "$TARGET_POD" ] || [ -z "$TARGET_VERSION" ]; then 12 | echo "ERROR: invalid pod name or version" 13 | exit 1 14 | fi 15 | 16 | echo "deleting pod $TARGET_POD for version $TARGET_VERSION" 17 | 18 | # Ignoring return code as trunk delete alwasy exit with error 19 | pod trunk delete $TARGET_POD $TARGET_VERSION || true 20 | -------------------------------------------------------------------------------- /scripts/wait_for_pod_release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Utility script to check for a target pod version's availability in pod trunk 5 | # Script exit without error if found 6 | # Usage: timeout 60s ./wait_for_pod_release.sh [POD_NAME] [VERSION] 7 | 8 | POD_NAME=$1 9 | POD_VERSION=$2 10 | 11 | while true 12 | do 13 | echo "Checking pod availability for ${POD_NAME}, version ${POD_VERSION}" 14 | pod repo update --silent 15 | results=$(pod trunk info $POD_NAME | grep $POD_VERSION) || true 16 | if [[ $results == *"- ${POD_VERSION} ("* ]]; then 17 | echo "Version found!" 18 | break 19 | fi 20 | done 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /scripts/release_cocoapod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | # Release script for Cocoapod 5 | # Usage: ./release_cocoapod.sh [PODSPEC_FILE] 6 | 7 | TARGET_PODSPEC=$1 8 | TARGET_DIR=$(dirname $TARGET_PODSPEC) 9 | TARGET_FILE=$(basename $TARGET_PODSPEC) 10 | 11 | if [ -z "$TARGET_PODSPEC" ]; then 12 | echo "ERROR: please specify podspec" 13 | exit 1 14 | fi 15 | 16 | echo "Publishing podspec $TARGET_PODSPEC" 17 | 18 | pushd ${TARGET_DIR} 19 | time pod trunk push $TARGET_FILE \ 20 | --allow-warnings \ 21 | --use-libraries \ 22 | --skip-tests \ 23 | --skip-import-validation \ 24 | --synchronous \ 25 | --verbose 26 | popd 27 | -------------------------------------------------------------------------------- /third_party/utf8_range/utf8_range.h: -------------------------------------------------------------------------------- 1 | #ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_ 2 | #define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_ 3 | 4 | #include 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | // Returns 1 if the sequence of characters is a valid UTF-8 sequence, otherwise 11 | // 0. 12 | int utf8_range_IsValid(const char* data, size_t len); 13 | 14 | // Returns the length in bytes of the prefix of str that is all 15 | // structurally valid UTF-8. 16 | size_t utf8_range_ValidPrefix(const char* data, size_t len); 17 | 18 | #ifdef __cplusplus 19 | } // extern "C" 20 | #endif 21 | 22 | #endif // THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_ 23 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | platform :ios, '15.0' 3 | 4 | install! 'cocoapods', :deterministic_uuids => false 5 | 6 | GRPC_PODSPEC_ROOT = '../../..' 7 | 8 | target 'gRPCSample' do 9 | pod 'gRPC-ProtoRPC', :path => GRPC_PODSPEC_ROOT 10 | pod 'gRPC', :path => GRPC_PODSPEC_ROOT 11 | pod 'gRPC-RxLibrary', :path => GRPC_PODSPEC_ROOT 12 | pod 'gRPC-Core', :path => GRPC_PODSPEC_ROOT 13 | end 14 | 15 | post_install do |installer| 16 | installer.pods_project.targets.each do |target| 17 | target.build_configurations.each do |config| 18 | config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'c++17' 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /third_party/upb/upb/message/map_gencode_util.h: -------------------------------------------------------------------------------- 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 | // These functions are only used by generated code. 9 | 10 | #ifndef UPB_MESSAGE_MAP_GENCODE_UTIL_H_ 11 | #define UPB_MESSAGE_MAP_GENCODE_UTIL_H_ 12 | 13 | // This header file is referenced by multiple files. Leave it empty. 14 | // TODO: b/399481227 - Remove this header file, after all the references are 15 | // cleaned up. 16 | #endif /* UPB_MESSAGE_MAP_GENCODE_UTIL_H_ */ 17 | -------------------------------------------------------------------------------- /src/objective-c/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyTracking 6 | 7 | NSPrivacyCollectedDataTypes 8 | 9 | NSPrivacyTrackingDomains 10 | 11 | NSPrivacyAccessedAPITypes 12 | 13 | 14 | NSPrivacyAccessedAPIType 15 | NSPrivacyAccessedAPICategoryFileTimestamp 16 | NSPrivacyAccessedAPITypeReasons 17 | 18 | C617.1 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /third_party/upb/upb/lex/strtod.h: -------------------------------------------------------------------------------- 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_LEX_STRTOD_H_ 9 | #define UPB_LEX_STRTOD_H_ 10 | 11 | // Must be last. 12 | #include "upb/port/def.inc" 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | double _upb_NoLocaleStrtod(const char *str, char **endptr); 19 | 20 | #ifdef __cplusplus 21 | } /* extern "C" */ 22 | #endif 23 | 24 | #include "upb/port/undef.inc" 25 | 26 | #endif /* UPB_LEX_STRTOD_H_ */ 27 | -------------------------------------------------------------------------------- /third_party/upb/upb/wire/types.h: -------------------------------------------------------------------------------- 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_WIRE_TYPES_H_ 9 | #define UPB_WIRE_TYPES_H_ 10 | 11 | // A list of types as they are encoded on the wire. 12 | typedef enum { 13 | kUpb_WireType_Varint = 0, 14 | kUpb_WireType_64Bit = 1, 15 | kUpb_WireType_Delimited = 2, 16 | kUpb_WireType_StartGroup = 3, 17 | kUpb_WireType_EndGroup = 4, 18 | kUpb_WireType_32Bit = 5 19 | } upb_WireType; 20 | 21 | #endif /* UPB_WIRE_TYPES_H_ */ 22 | -------------------------------------------------------------------------------- /scripts/sync_grpc_src_shallow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | # Optional checkout revision, or default to grpc master 5 | TARGET_REV=${1:-master} 6 | 7 | # Prepping the folder 8 | rm -rf tmp && mkdir tmp 9 | 10 | ### Clone grpc and extract shallow source copy 11 | git clone https://github.com/grpc/grpc.git tmp 12 | pushd tmp 13 | git checkout $TARGET_REV 14 | REVISION=$(git rev-parse HEAD) 15 | git submodule update --init 16 | 17 | # Extract source files for gRPC ios 18 | python3 ../scripts/extract-grpc-ios-files.py build_handwritten.yaml build_autogenerated.yaml 19 | popd 20 | 21 | sed -i".bak" -E -e 's=https://github.com/grpc/grpc.git=https://github.com/grpc/grpc-ios.git=g' *.podspec 22 | rm -f *.podspec.bak 23 | 24 | rm -rf tmp 25 | -------------------------------------------------------------------------------- /third_party/upb/upb/text/options.h: -------------------------------------------------------------------------------- 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 | #ifndef UPB_TEXT_OPTIONS_H_ 9 | #define UPB_TEXT_OPTIONS_H_ 10 | 11 | enum { 12 | // When set, prints everything on a single line. 13 | UPB_TXTENC_SINGLELINE = 1, 14 | 15 | // When set, unknown fields are not printed. 16 | UPB_TXTENC_SKIPUNKNOWN = 2, 17 | 18 | // When set, maps are *not* sorted (this avoids allocating tmp mem). 19 | UPB_TXTENC_NOSORT = 4 20 | }; 21 | 22 | #endif // UPB_TEXT_OPTIONS_H_ 23 | -------------------------------------------------------------------------------- /src/core/net/socket_mutator.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // TODO(hork): move src/core/lib/iomgr/socket_mutator.cc here 20 | -------------------------------------------------------------------------------- /src/cpp/common/rpc_method.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include 20 | 21 | namespace grpc {} // namespace grpc 22 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/http.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #include 10 | #include "upb/generated_code_support.h" 11 | #include "envoy/type/v3/http.upb_minitable.h" 12 | #include "udpa/annotations/status.upb_minitable.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | extern const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_StaticallyTreeShaken); 18 | const upb_MiniTableFile envoy_type_v3_http_proto_upb_file_layout = { 19 | NULL, 20 | NULL, 21 | NULL, 22 | 0, 23 | 0, 24 | 0, 25 | }; 26 | 27 | #include "upb/port/undef.inc" 28 | 29 | -------------------------------------------------------------------------------- /src/objective-c/ProtoRPC/ProtoServiceLegacy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2019 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "ProtoService.h" 20 | 21 | @class GRPCProtoCall; 22 | @class GRXWriter; 23 | @protocol GRXWriteable; 24 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/gRPCSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIApplicationSceneManifest 6 | 7 | UIApplicationSupportsMultipleScenes 8 | 9 | UISceneConfigurations 10 | 11 | UIWindowSceneSessionRoleApplication 12 | 13 | 14 | UISceneConfigurationName 15 | Default Configuration 16 | UISceneDelegateClassName 17 | SceneDelegate 18 | UISceneStoryboardFile 19 | Main 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/skip_pod_push_lint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Script to disable pod lint during trunk push. 4 | # 5 | # The script provides an ad-hoc patch to the internal cocoapod push command by removing the 6 | # validation / lint steps. The script should be relatively stable for runners with a fixed virtual 7 | # mac os x image, but may require updates to the Gem/Trunk versioning if upgrading to a new runner 8 | set -ex 9 | 10 | # env setup 11 | GEM_VERSION=3.0.0 12 | POD_TRUNK_VERSION=1.6.0 13 | 14 | # PUSH_FILE_DIR="/Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk" 15 | PUSH_FILE_DIR="/usr/local/lib/ruby/gems/${GEM_VERSION}/gems/cocoapods-trunk-${POD_TRUNK_VERSION}/lib/pod/command/trunk" 16 | 17 | # remove validation steps 18 | pushd $PUSH_FILE_DIR 19 | sudo sed -i "" 's/^ *validate_podspec//' push.rb 20 | popd 21 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/gRPCSample/ViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import 20 | 21 | @interface ViewController : UIViewController 22 | 23 | 24 | @end 25 | 26 | -------------------------------------------------------------------------------- /third_party/upb/upb/message/merge.h: -------------------------------------------------------------------------------- 1 | #ifndef GOOGLE_UPB_UPB_MESSAGE_MERGE_H__ 2 | #define GOOGLE_UPB_UPB_MESSAGE_MERGE_H__ 3 | 4 | #include "upb/mem/arena.h" 5 | #include "upb/message/message.h" 6 | #include "upb/mini_table/extension_registry.h" 7 | #include "upb/mini_table/message.h" 8 | 9 | // Must be last. 10 | #include "upb/port/def.inc" 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | UPB_API bool upb_Message_MergeFrom(upb_Message* dst, const upb_Message* src, 17 | const upb_MiniTable* mt, 18 | const upb_ExtensionRegistry* extreg, 19 | upb_Arena* arena); 20 | 21 | #ifdef __cplusplus 22 | } /* extern "C" */ 23 | #endif 24 | 25 | #include "upb/port/undef.inc" 26 | #endif // GOOGLE_UPB_UPB_MESSAGE_MERGE_H__ 27 | -------------------------------------------------------------------------------- /third_party/upb/upb/mem/alloc.c: -------------------------------------------------------------------------------- 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 | #include "upb/mem/alloc.h" 9 | 10 | #include 11 | 12 | // Must be last. 13 | #include "upb/port/def.inc" 14 | 15 | static void* upb_global_allocfunc(upb_alloc* alloc, void* ptr, size_t oldsize, 16 | size_t size) { 17 | UPB_UNUSED(alloc); 18 | UPB_UNUSED(oldsize); 19 | if (size == 0) { 20 | free(ptr); 21 | return NULL; 22 | } else { 23 | return realloc(ptr, size); 24 | } 25 | } 26 | 27 | upb_alloc upb_alloc_global = {&upb_global_allocfunc}; 28 | -------------------------------------------------------------------------------- /third_party/upb/upb/wire/eps_copy_input_stream.c: -------------------------------------------------------------------------------- 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 | #include "upb/wire/eps_copy_input_stream.h" 9 | 10 | static const char* _upb_EpsCopyInputStream_NoOpCallback( 11 | upb_EpsCopyInputStream* e, const char* old_end, const char* new_start) { 12 | return new_start; 13 | } 14 | 15 | const char* _upb_EpsCopyInputStream_IsDoneFallbackNoCallback( 16 | upb_EpsCopyInputStream* e, const char* ptr, int overrun) { 17 | return _upb_EpsCopyInputStream_IsDoneFallbackInline( 18 | e, ptr, overrun, _upb_EpsCopyInputStream_NoOpCallback); 19 | } 20 | -------------------------------------------------------------------------------- /src/core/util/shared_bit_gen.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2025 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #include "src/core/util/shared_bit_gen.h" 16 | 17 | namespace grpc_core { 18 | 19 | thread_local absl::BitGen SharedBitGen::bit_gen_; 20 | 21 | } // namespace grpc_core 22 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/descriptor_bootstrap.h: -------------------------------------------------------------------------------- 1 | #ifndef GOOGLE_UPB_UPB_REFLECTION_DESCRIPTOR_BOOTSTRAP_H__ 2 | #define GOOGLE_UPB_UPB_REFLECTION_DESCRIPTOR_BOOTSTRAP_H__ 3 | 4 | // IWYU pragma: begin_exports 5 | 6 | #if defined(UPB_BOOTSTRAP_STAGE) && UPB_BOOTSTRAP_STAGE == 0 7 | // This header is checked in. 8 | #include "upb/reflection/stage0/google/protobuf/descriptor.upb.h" 9 | #elif defined(UPB_BOOTSTRAP_STAGE) && UPB_BOOTSTRAP_STAGE == 1 10 | // This header is generated at build time by the bootstrapping process. 11 | #include "upb/reflection/stage1/google/protobuf/descriptor.upb.h" 12 | #else 13 | // This is the normal header, generated by upb_c_proto_library(). 14 | #include "google/protobuf/descriptor.upb.h" 15 | #endif 16 | 17 | // IWYU pragma: end_exports 18 | 19 | #endif // GOOGLE_UPB_UPB_REFLECTION_DESCRIPTOR_BOOTSTRAP_H__ 20 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/gRPCSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import 20 | 21 | @interface AppDelegate : UIResponder 22 | 23 | 24 | @end 25 | 26 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/http.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | 22 | extern const upb_MiniTableFile envoy_type_v3_http_proto_upb_file_layout; 23 | 24 | #ifdef __cplusplus 25 | } /* extern "C" */ 26 | #endif 27 | 28 | #include "upb/port/undef.inc" 29 | 30 | #endif /* ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_MINITABLE_H_ */ 31 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/ratelimit_unit.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #include 10 | #include "upb/generated_code_support.h" 11 | #include "envoy/type/v3/ratelimit_unit.upb_minitable.h" 12 | #include "udpa/annotations/status.upb_minitable.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | extern const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_StaticallyTreeShaken); 18 | const upb_MiniTableFile envoy_type_v3_ratelimit_unit_proto_upb_file_layout = { 19 | NULL, 20 | NULL, 21 | NULL, 22 | 0, 23 | 0, 24 | 0, 25 | }; 26 | 27 | #include "upb/port/undef.inc" 28 | 29 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/http.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPBDEFS_H_ 12 | #define ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init envoy_type_v3_http_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/util/grpc_check.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The gRPC Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifdef GRPC_POSTMORTEM_CHECKS 16 | #include "src/core/util/postmortem_emit.h" 17 | 18 | bool PostMortemEmitAndReturnTrue() { 19 | grpc_core::PostMortemEmit(); 20 | return true; 21 | } 22 | #endif -------------------------------------------------------------------------------- /third_party/upb/upb/wire/internal/constants.h: -------------------------------------------------------------------------------- 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_WIRE_INTERNAL_CONSTANTS_H_ 9 | #define UPB_WIRE_INTERNAL_CONSTANTS_H_ 10 | 11 | #define kUpb_WireFormat_DefaultDepthLimit 100 12 | 13 | // MessageSet wire format is: 14 | // message MessageSet { 15 | // repeated group Item = 1 { 16 | // required int32 type_id = 2; 17 | // required bytes message = 3; 18 | // } 19 | // } 20 | 21 | enum { 22 | kUpb_MsgSet_Item = 1, 23 | kUpb_MsgSet_TypeId = 2, 24 | kUpb_MsgSet_Message = 3, 25 | }; 26 | 27 | #endif /* UPB_WIRE_INTERNAL_CONSTANTS_H_ */ 28 | -------------------------------------------------------------------------------- /src/cpp/common/version_cc.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include 20 | 21 | #include 22 | 23 | namespace grpc { 24 | std::string Version() { return GRPC_CPP_VERSION_STRING; } 25 | } // namespace grpc 26 | -------------------------------------------------------------------------------- /include/grpcpp/support/status.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_SUPPORT_STATUS_H 20 | #define GRPCPP_SUPPORT_STATUS_H 21 | 22 | #include // IWYU pragma: export 23 | 24 | #endif // GRPCPP_SUPPORT_STATUS_H 25 | -------------------------------------------------------------------------------- /scripts/build_test_cocoapod_samples.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | source ./scripts/build_commons.sh 5 | 6 | # Build gRPC Sample App with Cocoapod Integrations 7 | SAMPLE_ROOT=tests/cocoapod/gRPCSample 8 | SAMPLE_WORKSPACE=$SAMPLE_ROOT/gRPCSample.xcworkspace 9 | SAMPLE_XCODEPROJ=$SAMPLE_ROOT/gRPCSample.xcodeproj 10 | SCHEME=gRPCSample 11 | 12 | # Fetch latest podinfo 13 | time pod repo update 14 | 15 | # Cocoapod install 16 | pushd $SAMPLE_ROOT 17 | rm -Rf Pods Podfile.lock gRPCSample.xcworkspace 18 | pod install --verbose --clean-install --repo-update 19 | popd 20 | 21 | # Build via xcodebuild command line 22 | time xcodebuild \ 23 | -workspace $SAMPLE_WORKSPACE \ 24 | -scheme $SCHEME \ 25 | -verbose \ 26 | -destination "${GRPC_IOS_DESTINATION}" \ 27 | build \ 28 | $GRPC_IOS_BUILD_FLAGS 29 | 30 | # Clean up modified xcodeproj 31 | git checkout HEAD -- "${SAMPLE_XCODEPROJ}" 32 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/api/annotations.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPBDEFS_H_ 12 | #define GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init google_api_annotations_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/cpp/util/string_ref.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include 20 | #include 21 | 22 | namespace grpc { 23 | 24 | const size_t string_ref::npos = static_cast(-1); 25 | 26 | } // namespace grpc 27 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/gRPCSample/SceneDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import 20 | 21 | @interface SceneDelegate : UIResponder 22 | 23 | @property (strong, nonatomic) UIWindow * window; 24 | 25 | @end 26 | 27 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * udpa/annotations/sensitive.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ 12 | #define UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init udpa_annotations_sensitive_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpcpp/impl/method_handler_impl.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_METHOD_HANDLER_IMPL_H 20 | #define GRPCPP_IMPL_METHOD_HANDLER_IMPL_H 21 | 22 | #include 23 | 24 | #endif // GRPCPP_IMPL_METHOD_HANDLER_IMPL_H 25 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/config/trace/v3/trace.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H__UPBDEFS_H_ 12 | #define ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init envoy_config_trace_v3_trace_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/lib/transport/transport_fwd.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifndef GRPC_SRC_CORE_LIB_TRANSPORT_TRANSPORT_FWD_H 16 | #define GRPC_SRC_CORE_LIB_TRANSPORT_TRANSPORT_FWD_H 17 | 18 | namespace grpc_core { 19 | class Transport; 20 | } 21 | 22 | #endif // GRPC_SRC_CORE_LIB_TRANSPORT_TRANSPORT_FWD_H 23 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/ratelimit_unit.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | 22 | extern const upb_MiniTableFile envoy_type_v3_ratelimit_unit_proto_upb_file_layout; 23 | 24 | #ifdef __cplusplus 25 | } /* extern "C" */ 26 | #endif 27 | 28 | #include "upb/port/undef.inc" 29 | 30 | #endif /* ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPB_MINITABLE_H_ */ 31 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/method_handler_impl.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_IMPL_H 20 | #define GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_IMPL_H 21 | 22 | // IWYU pragma: private 23 | 24 | #endif // GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_IMPL_H 25 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/ratelimit_unit.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPBDEFS_H_ 12 | #define ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init envoy_type_v3_ratelimit_unit_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/annotations/v3/sensitive.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ 12 | #define XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init xds_annotations_v3_sensitive_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/GRPCTypes.mm: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRPCTypes.h" 20 | 21 | NSString *const kGRPCHeadersKey = @"io.grpc.HeadersKey"; 22 | NSString *const kGRPCTrailersKey = @"io.grpc.TrailersKey"; 23 | 24 | NSString *const kGRPCErrorDomain = @"io.grpc"; 25 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/annotations/deprecation.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H__UPBDEFS_H_ 12 | #define ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init envoy_annotations_deprecation_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /src/cpp/util/status.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include 20 | 21 | #include 22 | 23 | namespace grpc { 24 | 25 | const Status& Status::OK = Status(); 26 | const Status& Status::CANCELLED = Status(StatusCode::CANCELLED, ""); 27 | 28 | } // namespace grpc 29 | -------------------------------------------------------------------------------- /tests/spm/gRPCSample/gRPCSample/gRPCSampleApp.swift: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | import SwiftUI 20 | 21 | @available(iOS 14.0, *) 22 | @main 23 | struct gRPCSampleApp: App { 24 | var body: some Scene { 25 | WindowGroup { 26 | ContentView() 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/api/annotations.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/api/annotations.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTableExtension google_api_http_ext; 22 | 23 | extern const upb_MiniTableFile google_api_annotations_proto_upb_file_layout; 24 | 25 | #ifdef __cplusplus 26 | } /* extern "C" */ 27 | #endif 28 | 29 | #include "upb/port/undef.inc" 30 | 31 | #endif /* GOOGLE_API_ANNOTATIONS_PROTO_UPB_H__UPB_MINITABLE_H_ */ 32 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/def.h: -------------------------------------------------------------------------------- 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_REFLECTION_DEF_H_ 9 | #define UPB_REFLECTION_DEF_H_ 10 | 11 | // IWYU pragma: begin_exports 12 | #include "upb/reflection/def_pool.h" 13 | #include "upb/reflection/enum_def.h" 14 | #include "upb/reflection/enum_value_def.h" 15 | #include "upb/reflection/extension_range.h" 16 | #include "upb/reflection/field_def.h" 17 | #include "upb/reflection/file_def.h" 18 | #include "upb/reflection/message_def.h" 19 | #include "upb/reflection/method_def.h" 20 | #include "upb/reflection/oneof_def.h" 21 | #include "upb/reflection/service_def.h" 22 | // IWYU pragma: end_exports 23 | 24 | #endif /* UPB_REFLECTION_DEF_H_ */ 25 | -------------------------------------------------------------------------------- /src/core/lib/debug/trace.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifndef GRPC_SRC_CORE_LIB_DEBUG_TRACE_H 16 | #define GRPC_SRC_CORE_LIB_DEBUG_TRACE_H 17 | 18 | #include "src/core/lib/debug/trace_flags.h" // IWYU pragma: export 19 | #include "src/core/lib/debug/trace_impl.h" // IWYU pragma: export 20 | 21 | #endif // GRPC_SRC_CORE_LIB_DEBUG_TRACE_H 22 | -------------------------------------------------------------------------------- /src/core/lib/surface/init_internally.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2022 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #include "src/core/lib/surface/init_internally.h" 16 | 17 | #include 18 | 19 | namespace grpc_core { 20 | 21 | void (*InitInternally)(); 22 | void (*ShutdownInternally)(); 23 | bool (*IsInitializedInternally)(); 24 | 25 | } // namespace grpc_core 26 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/call.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | #ifndef GRPCPP_IMPL_CODEGEN_CALL_H 19 | #define GRPCPP_IMPL_CODEGEN_CALL_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_CALL_H 27 | -------------------------------------------------------------------------------- /src/core/util/gethostname.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2017 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_UTIL_GETHOSTNAME_H 20 | #define GRPC_SRC_CORE_UTIL_GETHOSTNAME_H 21 | 22 | // Returns the hostname of the local machine. 23 | // Caller takes ownership of result. 24 | char* grpc_gethostname(); 25 | 26 | #endif // GRPC_SRC_CORE_UTIL_GETHOSTNAME_H 27 | -------------------------------------------------------------------------------- /src/core/net/socket_mutator.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_NET_SOCKET_MUTATOR_H 20 | #define GRPC_SRC_CORE_NET_SOCKET_MUTATOR_H 21 | 22 | // TODO(hork): move src/core/lib/iomgr/socket_mutator.h here 23 | #include "src/core/lib/iomgr/socket_mutator.h" 24 | 25 | #endif // GRPC_SRC_CORE_NET_SOCKET_MUTATOR_H 26 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/GRPCCall+GID.mm: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2017 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRPCCall+GID.h" 20 | 21 | @implementation GIDSignIn (GRPC) 22 | 23 | - (void)getTokenWithHandler:(void (^)(NSString *token))handler { 24 | NSString *token = self.currentUser.authentication.accessToken; 25 | handler(token); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /third_party/upb/upb/base/upcast.h: -------------------------------------------------------------------------------- 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_BASE_UPCAST_H_ 9 | #define UPB_BASE_UPCAST_H_ 10 | 11 | // Must be last. 12 | #include "upb/port/def.inc" 13 | 14 | // This macro provides a way to upcast message pointers in a way that is 15 | // somewhat more bulletproof than blindly casting a pointer. Example: 16 | // 17 | // typedef struct { 18 | // upb_Message UPB_PRIVATE(base); 19 | // } pkg_FooMessage; 20 | // 21 | // void f(pkg_FooMessage* msg) { 22 | // upb_Decode(UPB_UPCAST(msg), ...); 23 | // } 24 | 25 | #define UPB_UPCAST(x) (&(x)->base##_dont_copy_me__upb_internal_use_only) 26 | 27 | #include "upb/port/undef.inc" 28 | 29 | #endif /* UPB_BASE_UPCAST_H_ */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/sync.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SYNC_H 20 | #define GRPCPP_IMPL_CODEGEN_SYNC_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SYNC_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/time.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_TIME_H 20 | #define GRPCPP_IMPL_CODEGEN_TIME_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_TIME_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * udpa/annotations/sensitive.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTableExtension udpa_annotations_sensitive_ext; 22 | 23 | extern const upb_MiniTableFile udpa_annotations_sensitive_proto_upb_file_layout; 24 | 25 | #ifdef __cplusplus 26 | } /* extern "C" */ 27 | #endif 28 | 29 | #include "upb/port/undef.inc" 30 | 31 | #endif /* UDPA_ANNOTATIONS_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ */ 32 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/private/GRPCCore/NSData+GRPC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import 20 | 21 | struct grpc_byte_buffer; 22 | 23 | @interface NSData (GRPC) 24 | + (instancetype)grpc_dataWithByteBuffer:(struct grpc_byte_buffer *)buffer; 25 | - (struct grpc_byte_buffer *)grpc_byteBuffer; 26 | @end 27 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/internal/strdup2.h: -------------------------------------------------------------------------------- 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_REFLECTION_INTERNAL_STRDUP2_H_ 9 | #define UPB_REFLECTION_INTERNAL_STRDUP2_H_ 10 | 11 | #include 12 | 13 | #include "upb/mem/arena.h" 14 | 15 | // Must be last. 16 | #include "upb/port/def.inc" 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | // Variant that works with a length-delimited rather than NULL-delimited string, 23 | // as supported by strtable. 24 | char* upb_strdup2(const char* s, size_t len, upb_Arena* a); 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* UPB_REFLECTION_INTERNAL_STRDUP2_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/slice.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SLICE_H 20 | #define GRPCPP_IMPL_CODEGEN_SLICE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SLICE_H 28 | -------------------------------------------------------------------------------- /src/core/client_channel/client_channel_args.h: -------------------------------------------------------------------------------- 1 | // Copyright 2024 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifndef GRPC_SRC_CORE_CLIENT_CHANNEL_CLIENT_CHANNEL_ARGS_H 16 | #define GRPC_SRC_CORE_CLIENT_CHANNEL_CLIENT_CHANNEL_ARGS_H 17 | 18 | // Channel arg key for server URI string. 19 | #define GRPC_ARG_SERVER_URI "grpc.server_uri" 20 | 21 | #endif // GRPC_SRC_CORE_CLIENT_CHANNEL_CLIENT_CHANNEL_ARGS_H 22 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/rpc/status.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/rpc/status.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_RPC_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_RPC_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__rpc__Status_msg_init; 22 | extern const upb_MiniTable* google__rpc__Status_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_rpc_status_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_RPC_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/call_op_set_interface.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H 20 | #define GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_CALL_OP_SET_INTERFACE_H 27 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/config.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CONFIG_H 20 | #define GRPCPP_IMPL_CODEGEN_CONFIG_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CONFIG_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/status.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_STATUS_H 20 | #define GRPCPP_IMPL_CODEGEN_STATUS_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_STATUS_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/core/v3/cidr.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_CORE_V3_CIDR_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_CORE_V3_CIDR_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__core__v3__CidrRange_msg_init; 22 | extern const upb_MiniTable* xds__core__v3__CidrRange_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_core_v3_cidr_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_CORE_V3_CIDR_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/annotations/v3/sensitive.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTableExtension xds_annotations_v3_sensitive_ext; 22 | 23 | extern const upb_MiniTableFile xds_annotations_v3_sensitive_proto_upb_file_layout; 24 | 25 | #ifdef __cplusplus 26 | } /* extern "C" */ 27 | #endif 28 | 29 | #include "upb/port/undef.inc" 30 | 31 | #endif /* XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H__UPB_MINITABLE_H_ */ 32 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/enum_reserved_range.h: -------------------------------------------------------------------------------- 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 | // IWYU pragma: private, include "upb/reflection/def.h" 9 | 10 | #ifndef UPB_REFLECTION_ENUM_RESERVED_RANGE_H_ 11 | #define UPB_REFLECTION_ENUM_RESERVED_RANGE_H_ 12 | 13 | #include "upb/reflection/common.h" 14 | 15 | // Must be last. 16 | #include "upb/port/def.inc" 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | int32_t upb_EnumReservedRange_Start(const upb_EnumReservedRange* r); 23 | int32_t upb_EnumReservedRange_End(const upb_EnumReservedRange* r); 24 | 25 | #ifdef __cplusplus 26 | } /* extern "C" */ 27 | #endif 28 | 29 | #include "upb/port/undef.inc" 30 | 31 | #endif /* UPB_REFLECTION_ENUM_RESERVED_RANGE_H_ */ 32 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/api/httpbody.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_API_HTTPBODY_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_API_HTTPBODY_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__api__HttpBody_msg_init; 22 | extern const upb_MiniTable* google__api__HttpBody_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_api_httpbody_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_API_HTTPBODY_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/protobuf/any.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_PROTOBUF_ANY_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_PROTOBUF_ANY_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__protobuf__Any_msg_init; 22 | extern const upb_MiniTable* google__protobuf__Any_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_protobuf_any_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_PROTOBUF_ANY_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/lib/iomgr/pollset_set_windows.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_LIB_IOMGR_POLLSET_SET_WINDOWS_H 20 | #define GRPC_SRC_CORE_LIB_IOMGR_POLLSET_SET_WINDOWS_H 21 | 22 | #include 23 | 24 | #include "src/core/lib/iomgr/pollset_set.h" 25 | 26 | #endif // GRPC_SRC_CORE_LIB_IOMGR_POLLSET_SET_WINDOWS_H 27 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/call_hook.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CALL_HOOK_H 20 | #define GRPCPP_IMPL_CODEGEN_CALL_HOOK_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CALL_HOOK_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/rpc_method.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_RPC_METHOD_H 20 | #define GRPCPP_IMPL_CODEGEN_RPC_METHOD_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_RPC_METHOD_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/string_ref.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_STRING_REF_H 20 | #define GRPCPP_IMPL_CODEGEN_STRING_REF_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_STRING_REF_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/sync_stream.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #ifndef GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H 19 | #define GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H 27 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/admin/v3/tap.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_ADMIN_V3_TAP_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_ADMIN_V3_TAP_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__admin__v3__TapRequest_msg_init; 22 | extern const upb_MiniTable* envoy__admin__v3__TapRequest_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_admin_v3_tap_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_ADMIN_V3_TAP_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/core/v3/resource.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_CORE_V3_RESOURCE_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_CORE_V3_RESOURCE_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__core__v3__Resource_msg_init; 22 | extern const upb_MiniTable* xds__core__v3__Resource_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_core_v3_resource_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_CORE_V3_RESOURCE_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/lib/surface/version.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // This file is autogenerated from: 20 | // templates/src/core/surface/version.c.template 21 | 22 | #include 23 | #include 24 | 25 | const char* grpc_version_string(void) { return "51.0.0"; } 26 | 27 | const char* grpc_g_stands_for(void) { return "genuine"; } 28 | -------------------------------------------------------------------------------- /include/grpc++/alarm.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_ALARM_H 24 | #define GRPCXX_ALARM_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_ALARM_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/fork.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2017 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_FORK_H 20 | #define GRPC_IMPL_CODEGEN_FORK_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_FORK_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/async_stream.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H 19 | #define GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H 27 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/byte_buffer.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2017 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H 20 | #define GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/call_op_set.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CALL_OP_SET_H 20 | #define GRPCPP_IMPL_CODEGEN_CALL_OP_SET_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CALL_OP_SET_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/interceptor.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H 20 | #define GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_INTERCEPTOR_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/proto_utils.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_PROTO_UTILS_H 20 | #define GRPCPP_IMPL_CODEGEN_PROTO_UTILS_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_PROTO_UTILS_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/protobuf/empty.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__protobuf__Empty_msg_init; 22 | extern const upb_MiniTable* google__protobuf__Empty_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_protobuf_empty_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/telemetry/default_tcp_tracer.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The gRPC Authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #include "src/core/telemetry/default_tcp_tracer.h" 16 | 17 | #include "src/core/util/sync.h" 18 | 19 | namespace grpc_core { 20 | 21 | void DefaultTcpTracer::RecordConnectionMetrics(TcpConnectionMetrics metrics) { 22 | MutexLock lock(&mu_); 23 | connection_metrics_ = metrics; 24 | } 25 | 26 | } // namespace grpc_core 27 | -------------------------------------------------------------------------------- /include/grpc++/grpc++.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_GRPCXX_H 24 | #define GRPCXX_GRPCXX_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_GRPCXX_H 29 | -------------------------------------------------------------------------------- /include/grpc++/server.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SERVER_H 24 | #define GRPCXX_SERVER_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SERVER_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/port_platform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_PORT_PLATFORM_H 20 | #define GRPC_IMPL_CODEGEN_PORT_PLATFORM_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif /* GRPC_IMPL_CODEGEN_PORT_PLATFORM_H */ 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/metadata_map.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_METADATA_MAP_H 20 | #define GRPCPP_IMPL_CODEGEN_METADATA_MAP_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_METADATA_MAP_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/service_type.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SERVICE_TYPE_H 20 | #define GRPCPP_IMPL_CODEGEN_SERVICE_TYPE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SERVICE_TYPE_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/stub_options.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_STUB_OPTIONS_H 20 | #define GRPCPP_IMPL_CODEGEN_STUB_OPTIONS_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_STUB_OPTIONS_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/passive_listener.h: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The gRPC Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | #ifndef GRPCPP_PASSIVE_LISTENER_H 15 | #define GRPCPP_PASSIVE_LISTENER_H 16 | 17 | #include 18 | 19 | namespace grpc { 20 | namespace experimental { 21 | 22 | using grpc_core::experimental::PassiveListener; 23 | 24 | } // namespace experimental 25 | } // namespace grpc 26 | 27 | #endif // GRPCPP_PASSIVE_LISTENER_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/admin/v3/memory.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_ADMIN_V3_MEMORY_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_ADMIN_V3_MEMORY_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__admin__v3__Memory_msg_init; 22 | extern const upb_MiniTable* envoy__admin__v3__Memory_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_admin_v3_memory_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_ADMIN_V3_MEMORY_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/http.upb.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/http.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_H_ 10 | #define ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | #include "envoy/type/v3/http.upb_minitable.h" 15 | 16 | #include "udpa/annotations/status.upb_minitable.h" 17 | 18 | // Must be last. 19 | #include "upb/port/def.inc" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | typedef enum { 26 | envoy_type_v3_HTTP1 = 0, 27 | envoy_type_v3_HTTP2 = 1, 28 | envoy_type_v3_HTTP3 = 2 29 | } envoy_type_v3_CodecClientType; 30 | 31 | 32 | 33 | #ifdef __cplusplus 34 | } /* extern "C" */ 35 | #endif 36 | 37 | #include "upb/port/undef.inc" 38 | 39 | #endif /* ENVOY_TYPE_V3_HTTP_PROTO_UPB_H__UPB_H_ */ 40 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/core/v3/authority.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_CORE_V3_AUTHORITY_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_CORE_V3_AUTHORITY_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__core__v3__Authority_msg_init; 22 | extern const upb_MiniTable* xds__core__v3__Authority_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_core_v3_authority_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_CORE_V3_AUTHORITY_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/util/gethostname_fallback.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2017 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include 20 | 21 | #include "src/core/lib/iomgr/port.h" 22 | #include "src/core/util/gethostname.h" 23 | 24 | #ifdef GRPC_GETHOSTNAME_FALLBACK 25 | 26 | #include 27 | 28 | char* grpc_gethostname() { return NULL; } 29 | 30 | #endif // GRPC_GETHOSTNAME_FALLBACK 31 | -------------------------------------------------------------------------------- /src/core/util/json/json.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright 2015 gRPC authors. 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | #ifndef GRPC_SRC_CORE_UTIL_JSON_JSON_H 18 | #define GRPC_SRC_CORE_UTIL_JSON_JSON_H 19 | 20 | #include 21 | #include 22 | 23 | namespace grpc_core { 24 | 25 | using Json = experimental::Json; 26 | 27 | } // namespace grpc_core 28 | 29 | #endif // GRPC_SRC_CORE_UTIL_JSON_JSON_H 30 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/message_reserved_range.h: -------------------------------------------------------------------------------- 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 | // IWYU pragma: private, include "upb/reflection/def.h" 9 | 10 | #ifndef UPB_REFLECTION_MESSAGE_RESERVED_RANGE_H_ 11 | #define UPB_REFLECTION_MESSAGE_RESERVED_RANGE_H_ 12 | 13 | #include "upb/reflection/common.h" 14 | 15 | // Must be last. 16 | #include "upb/port/def.inc" 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | int32_t upb_MessageReservedRange_Start(const upb_MessageReservedRange* r); 23 | int32_t upb_MessageReservedRange_End(const upb_MessageReservedRange* r); 24 | 25 | #ifdef __cplusplus 26 | } /* extern "C" */ 27 | #endif 28 | 29 | #include "upb/port/undef.inc" 30 | 31 | #endif /* UPB_REFLECTION_MESSAGE_RESERVED_RANGE_H_ */ 32 | -------------------------------------------------------------------------------- /include/grpc++/channel.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_CHANNEL_H 24 | #define GRPCXX_CHANNEL_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_CHANNEL_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_LOG_H 20 | #define GRPC_IMPL_CODEGEN_LOG_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_LOG_H */ 30 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/status.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_STATUS_H 20 | #define GRPC_IMPL_CODEGEN_STATUS_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_STATUS_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/client_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H 20 | #define GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/server_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SERVER_CONTEXT_H 20 | #define GRPCPP_IMPL_CODEGEN_SERVER_CONTEXT_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SERVER_CONTEXT_H 28 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/slice.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_SLICE_H 20 | #define GRPC_IMPL_CODEGEN_SLICE_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_SLICE_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/client_callback.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H 19 | #define GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H 27 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/method_handler.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H 20 | #define GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/server_callback.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #ifndef GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_H 19 | #define GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_H 27 | -------------------------------------------------------------------------------- /src/core/call/call_arena_allocator.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2024 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #include "src/core/call/call_arena_allocator.h" 16 | 17 | #include 18 | 19 | #include 20 | 21 | namespace grpc_core { 22 | 23 | void CallArenaAllocator::FinalizeArena(Arena* arena) { 24 | call_size_estimator_.UpdateCallSizeEstimate(arena->TotalUsedBytes()); 25 | } 26 | 27 | } // namespace grpc_core 28 | -------------------------------------------------------------------------------- /src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/extensions/transport_sockets/tls/v3/cert.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | 10 | 11 | #ifndef ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_CERT_PROTO_UPB_H__UPBDEFS_H_ 12 | #define ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_CERT_PROTO_UPB_H__UPBDEFS_H_ 13 | 14 | #include "upb/reflection/def.h" 15 | #include "upb/reflection/internal/def_pool.h" 16 | 17 | #include "upb/port/def.inc" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | extern _upb_DefPool_Init envoy_extensions_transport_sockets_tls_v3_cert_proto_upbdefinit; 24 | 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_CERT_PROTO_UPB_H__UPBDEFS_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpc++/impl/call.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CALL_H 24 | #define GRPCXX_IMPL_CALL_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CALL_H 29 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/callback_common.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H 20 | #define GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/server_interface.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H 20 | #define GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SERVER_INTERFACE_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/admin/v3/metrics.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_ADMIN_V3_METRICS_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_ADMIN_V3_METRICS_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__admin__v3__SimpleMetric_msg_init; 22 | extern const upb_MiniTable* envoy__admin__v3__SimpleMetric_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_admin_v3_metrics_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_ADMIN_V3_METRICS_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/async_unary_call.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_UNARY_CALL_H 20 | #define GRPCPP_IMPL_CODEGEN_ASYNC_UNARY_CALL_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_ASYNC_UNARY_CALL_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/completion_queue.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015-2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_H 20 | #define GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/protobuf/duration.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_PROTOBUF_DURATION_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_PROTOBUF_DURATION_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__protobuf__Duration_msg_init; 22 | extern const upb_MiniTable* google__protobuf__Duration_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_protobuf_duration_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_PROTOBUF_DURATION_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/core/v3/extension.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_CORE_V3_EXTENSION_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_CORE_V3_EXTENSION_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__core__v3__TypedExtensionConfig_msg_init; 22 | extern const upb_MiniTable* xds__core__v3__TypedExtensionConfig_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_core_v3_extension_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_CORE_V3_EXTENSION_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/type/v3/typed_struct.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__type__v3__TypedStruct_msg_init; 22 | extern const upb_MiniTable* xds__type__v3__TypedStruct_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_type_v3_typed_struct_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/GRPCCall+GID.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2017 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRPCCall+OAuth2.h" 20 | #import "GRPCCallLegacy.h" 21 | 22 | #import 23 | 24 | /** 25 | * Extend GIDSignIn class to comply GRPCAuthorizationProtocol 26 | */ 27 | @interface GIDSignIn (GRPC) 28 | - (void)getTokenWithHandler:(void (^)(NSString *token))hander; 29 | @end 30 | -------------------------------------------------------------------------------- /src/objective-c/RxLibrary/GRXWriter+Transformations.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRXWriter.h" 20 | 21 | @interface GRXWriter (Transformations) 22 | 23 | /** 24 | * Returns a writer that wraps the receiver, and has all the values the receiver would write 25 | * transformed by the provided mapping function. 26 | */ 27 | - (GRXWriter *)map:(id (^)(id value))map; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /tests/cocoapod/gRPCSample/gRPCSample/ViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "ViewController.h" 20 | 21 | #include "grpc/grpc.h" 22 | 23 | @interface ViewController () 24 | 25 | @end 26 | 27 | @implementation ViewController 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | // Do any additional setup after loading the view. 32 | } 33 | 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /third_party/upb/upb/reflection/internal/strdup2.c: -------------------------------------------------------------------------------- 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 | #include "upb/reflection/internal/strdup2.h" 9 | 10 | #include 11 | 12 | #include "upb/mem/arena.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | char* upb_strdup2(const char* s, size_t len, upb_Arena* a) { 18 | size_t n; 19 | char* p; 20 | 21 | // Prevent overflow errors. 22 | if (len == SIZE_MAX) return NULL; 23 | 24 | // Always null-terminate, even if binary data; but don't rely on the input to 25 | // have a null-terminating byte since it may be a raw binary buffer. 26 | n = len + 1; 27 | p = upb_Arena_Malloc(a, n); 28 | if (p) { 29 | if (len != 0) memcpy(p, s, len); 30 | p[len] = 0; 31 | } 32 | return p; 33 | } 34 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/channel_interface.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 20 | #define GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/client_unary_call.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_UNARY_CALL_H 20 | #define GRPCPP_IMPL_CODEGEN_CLIENT_UNARY_CALL_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CLIENT_UNARY_CALL_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/message_allocator.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H 20 | #define GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_MESSAGE_ALLOCATOR_H 28 | -------------------------------------------------------------------------------- /src/core/lib/iomgr/closure.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2022 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #include "src/core/lib/iomgr/closure.h" 16 | 17 | #include 18 | 19 | #include "absl/strings/str_format.h" 20 | 21 | std::string grpc_closure::DebugString() const { 22 | #ifdef NDEBUG 23 | return absl::StrFormat("%p", this); 24 | #else 25 | return absl::StrFormat("%p|created=%s:%d", this, file_created, line_created); 26 | #endif 27 | } 28 | -------------------------------------------------------------------------------- /third_party/upb/upb/mini_table/enum.h: -------------------------------------------------------------------------------- 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_MINI_TABLE_ENUM_H_ 9 | #define UPB_MINI_TABLE_ENUM_H_ 10 | 11 | #include 12 | 13 | #include "upb/mini_table/internal/enum.h" 14 | 15 | // Must be last 16 | #include "upb/port/def.inc" 17 | 18 | typedef struct upb_MiniTableEnum upb_MiniTableEnum; 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | // Validates enum value against range defined by enum mini table. 25 | UPB_API_INLINE bool upb_MiniTableEnum_CheckValue(const upb_MiniTableEnum* e, 26 | uint32_t val); 27 | 28 | #ifdef __cplusplus 29 | } /* extern "C" */ 30 | #endif 31 | 32 | #include "upb/port/undef.inc" 33 | 34 | #endif /* UPB_MINI_TABLE_ENUM_H_ */ 35 | -------------------------------------------------------------------------------- /include/grpc++/server_posix.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SERVER_POSIX_H 24 | #define GRPCXX_SERVER_POSIX_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SERVER_POSIX_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/time.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_TIME_H 24 | #define GRPCXX_SUPPORT_TIME_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_TIME_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/atm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_ATM_H 20 | #define GRPC_IMPL_CODEGEN_ATM_H 21 | 22 | // IWYU pragma: private, include 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_ATM_H */ 30 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/byte_buffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_BYTE_BUFFER_H 20 | #define GRPC_IMPL_CODEGEN_BYTE_BUFFER_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_BYTE_BUFFER_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/client_interceptor.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H 20 | #define GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/delegating_channel.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_DELEGATING_CHANNEL_H 20 | #define GRPCPP_IMPL_CODEGEN_DELEGATING_CHANNEL_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_DELEGATING_CHANNEL_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/interceptor_common.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTOR_COMMON_H 20 | #define GRPCPP_IMPL_CODEGEN_INTERCEPTOR_COMMON_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_INTERCEPTOR_COMMON_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/rpc_service_method.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H 20 | #define GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_RPC_SERVICE_METHOD_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/server_interceptor.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SERVER_INTERCEPTOR_H 20 | #define GRPCPP_IMPL_CODEGEN_SERVER_INTERCEPTOR_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SERVER_INTERCEPTOR_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/http/v3/cookie.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_HTTP_V3_COOKIE_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_HTTP_V3_COOKIE_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__type__http__v3__Cookie_msg_init; 22 | extern const upb_MiniTable* envoy__type__http__v3__Cookie_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_type_http_v3_cookie_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_HTTP_V3_COOKIE_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/http_status.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_V3_HTTP_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_V3_HTTP_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__type__v3__HttpStatus_msg_init; 22 | extern const upb_MiniTable* envoy__type__v3__HttpStatus_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_type_v3_http_status_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_V3_HTTP_STATUS_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * google/protobuf/timestamp.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef GOOGLE_PROTOBUF_TIMESTAMP_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define GOOGLE_PROTOBUF_TIMESTAMP_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable google__protobuf__Timestamp_msg_init; 22 | extern const upb_MiniTable* google__protobuf__Timestamp_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile google_protobuf_timestamp_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* GOOGLE_PROTOBUF_TIMESTAMP_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/core/v3/resource_name.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_CORE_V3_RESOURCE_NAME_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_CORE_V3_RESOURCE_NAME_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__core__v3__ResourceName_msg_init; 22 | extern const upb_MiniTable* xds__core__v3__ResourceName_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_core_v3_resource_name_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_CORE_V3_RESOURCE_NAME_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/type/matcher/v3/cel.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__type__matcher__v3__CelMatcher_msg_init; 22 | extern const upb_MiniTable* xds__type__matcher__v3__CelMatcher_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_type_matcher_v3_cel_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/resolver/resolver.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include "src/core/resolver/resolver.h" 20 | 21 | #include 22 | 23 | namespace grpc_core { 24 | 25 | // 26 | // Resolver 27 | // 28 | 29 | Resolver::Resolver() 30 | : InternallyRefCounted( 31 | GRPC_TRACE_FLAG_ENABLED(resolver_refcount) ? "Resolver" : nullptr) {} 32 | 33 | } // namespace grpc_core 34 | -------------------------------------------------------------------------------- /src/core/util/strerror.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifndef GRPC_SRC_CORE_UTIL_STRERROR_H 16 | #define GRPC_SRC_CORE_UTIL_STRERROR_H 17 | 18 | #include 19 | 20 | #include 21 | 22 | namespace grpc_core { 23 | 24 | // Returns a string describing the posix error code. 25 | std::string StrError(int err); 26 | 27 | } // namespace grpc_core 28 | 29 | #endif // GRPC_SRC_CORE_UTIL_STRERROR_H 30 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | // This file is autogenerated from a template file. Please make 20 | // modifications to 21 | // `templates/src/objective-c/GRPCClient/private/version.h.template` 22 | // instead. This file can be regenerated from the template by running 23 | // `tools/buildgen/generate_projects.sh`. 24 | 25 | #define GRPC_OBJC_VERSION_STRING @"1.76.0" 26 | -------------------------------------------------------------------------------- /src/objective-c/RxLibrary/GRXWriter+Transformations.m: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRXWriter+Transformations.h" 20 | 21 | #import "GRXMappingWriter.h" 22 | 23 | @implementation GRXWriter (Transformations) 24 | 25 | - (GRXWriter *)map:(id (^)(id))map { 26 | if (!map) { 27 | return self; 28 | } 29 | return [[GRXMappingWriter alloc] initWithWriter:self map:map]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /include/grpc++/support/slice.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_SLICE_H 24 | #define GRPCXX_SUPPORT_SLICE_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_SLICE_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/sync.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2016 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_SYNC_H 20 | #define GRPC_IMPL_CODEGEN_SYNC_H 21 | 22 | // IWYU pragma: private, include 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_SYNC_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/create_auth_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_CREATE_AUTH_CONTEXT_H 20 | #define GRPCPP_IMPL_CODEGEN_CREATE_AUTH_CONTEXT_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_CREATE_AUTH_CONTEXT_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/intercepted_channel.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 20 | #define GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/proto_buffer_reader.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H 20 | #define GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/proto_buffer_writer.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_WRITER_H 20 | #define GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_WRITER_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_WRITER_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/admin/v3/mutex_stats.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_ADMIN_V3_MUTEX_STATS_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_ADMIN_V3_MUTEX_STATS_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__admin__v3__MutexStats_msg_init; 22 | extern const upb_MiniTable* envoy__admin__v3__MutexStats_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_admin_v3_mutex_stats_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_ADMIN_V3_MUTEX_STATS_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/v3/token_bucket.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__type__v3__TokenBucket_msg_init; 22 | extern const upb_MiniTable* envoy__type__v3__TokenBucket_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_type_v3_token_bucket_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpc++/client_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_CLIENT_CONTEXT_H 24 | #define GRPCXX_CLIENT_CONTEXT_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_CLIENT_CONTEXT_H 29 | -------------------------------------------------------------------------------- /include/grpc++/create_channel.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_CREATE_CHANNEL_H 24 | #define GRPCXX_CREATE_CHANNEL_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_CREATE_CHANNEL_H 29 | -------------------------------------------------------------------------------- /include/grpc++/resource_quota.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_RESOURCE_QUOTA_H 24 | #define GRPCXX_RESOURCE_QUOTA_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_RESOURCE_QUOTA_H 29 | -------------------------------------------------------------------------------- /include/grpc++/server_builder.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SERVER_BUILDER_H 24 | #define GRPCXX_SERVER_BUILDER_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SERVER_BUILDER_H 29 | -------------------------------------------------------------------------------- /include/grpc++/server_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SERVER_CONTEXT_H 24 | #define GRPCXX_SERVER_CONTEXT_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SERVER_CONTEXT_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/config.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_CONFIG_H 24 | #define GRPCXX_SUPPORT_CONFIG_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_CONFIG_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/status.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_STATUS_H 24 | #define GRPCXX_SUPPORT_STATUS_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_STATUS_H 29 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/completion_queue_tag.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_TAG_H 20 | #define GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_TAG_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_COMPLETION_QUEUE_TAG_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/security/auth_context.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H 20 | #define GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SECURITY_AUTH_CONTEXT_H 28 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/serialization_traits.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H 20 | #define GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_SERIALIZATION_TRAITS_H 28 | -------------------------------------------------------------------------------- /src/core/lib/iomgr/wakeup_fd_pipe.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_LIB_IOMGR_WAKEUP_FD_PIPE_H 20 | #define GRPC_SRC_CORE_LIB_IOMGR_WAKEUP_FD_PIPE_H 21 | 22 | #include 23 | 24 | #include "src/core/lib/iomgr/wakeup_fd_posix.h" 25 | 26 | extern const grpc_wakeup_fd_vtable grpc_pipe_wakeup_fd_vtable; 27 | 28 | #endif // GRPC_SRC_CORE_LIB_IOMGR_WAKEUP_FD_PIPE_H 29 | -------------------------------------------------------------------------------- /src/core/xds/grpc/xds_enabled_server.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright 2023 gRPC authors. 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | #ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H 18 | #define GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H 19 | 20 | // EXPERIMENTAL. Bool-valued channel arg used as an indicator that a server is 21 | // xds enabled. 22 | #define GRPC_ARG_XDS_ENABLED_SERVER "grpc.experimental.xds_enabled_server" 23 | 24 | #endif // GRPC_SRC_CORE_XDS_GRPC_XDS_ENABLED_SERVER_H 25 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/GRPCDispatchable.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * 4 | * Copyright 2019 gRPC authors. 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | * 18 | */ 19 | 20 | #import 21 | 22 | /** 23 | * An object that processes its methods with a dispatch queue. 24 | */ 25 | @protocol GRPCDispatchable 26 | 27 | /** 28 | * The dispatch queue where the object's methods should be run on. 29 | */ 30 | @property(atomic, readonly) dispatch_queue_t dispatchQueue; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /include/grpc++/impl/rpc_method.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_RPC_METHOD_H 24 | #define GRPCXX_IMPL_RPC_METHOD_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_RPC_METHOD_H 29 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/async_generic_service.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H 20 | #define GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H 21 | 22 | // IWYU pragma: private 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_ASYNC_GENERIC_SERVICE_H 28 | -------------------------------------------------------------------------------- /src/core/util/alloc.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_UTIL_ALLOC_H 20 | #define GRPC_SRC_CORE_UTIL_ALLOC_H 21 | 22 | #include 23 | 24 | /// Given a size, round up to the next multiple of sizeof(void*). 25 | #define GPR_ROUND_UP_TO_ALIGNMENT_SIZE(x) \ 26 | (((x) + GPR_MAX_ALIGNMENT - 1u) & ~(GPR_MAX_ALIGNMENT - 1u)) 27 | 28 | #endif // GRPC_SRC_CORE_UTIL_ALLOC_H 29 | -------------------------------------------------------------------------------- /include/grpc++/completion_queue.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_COMPLETION_QUEUE_H 24 | #define GRPCXX_COMPLETION_QUEUE_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_COMPLETION_QUEUE_H 29 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/server_callback_handlers.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2019 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | 18 | #ifndef GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_HANDLERS_H 19 | #define GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_HANDLERS_H 20 | 21 | // IWYU pragma: private 22 | 23 | /// TODO(chengyuc): Remove this file after solving compatibility. 24 | #include 25 | 26 | #endif // GRPCPP_IMPL_CODEGEN_SERVER_CALLBACK_HANDLERS_H 27 | -------------------------------------------------------------------------------- /src/objective-c/GRPCClient/private/GRPCCore/NSDictionary+GRPC.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import 20 | #include 21 | 22 | @interface NSDictionary (GRPC) 23 | + (instancetype)grpc_dictionaryFromMetadataArray:(grpc_metadata_array)array; 24 | + (instancetype)grpc_dictionaryFromMetadata:(grpc_metadata *)entries count:(size_t)count; 25 | - (grpc_metadata *)grpc_metadataArray; 26 | @end 27 | -------------------------------------------------------------------------------- /include/grpc++/impl/codegen/call.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CODEGEN_CALL_H 24 | #define GRPCXX_IMPL_CODEGEN_CALL_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CODEGEN_CALL_H 29 | -------------------------------------------------------------------------------- /include/grpc++/impl/codegen/time.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CODEGEN_TIME_H 24 | #define GRPCXX_IMPL_CODEGEN_TIME_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CODEGEN_TIME_H 29 | -------------------------------------------------------------------------------- /include/grpc++/impl/grpc_library.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_GRPC_LIBRARY_H 24 | #define GRPCXX_IMPL_GRPC_LIBRARY_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_GRPC_LIBRARY_H 29 | -------------------------------------------------------------------------------- /include/grpc++/impl/service_type.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_SERVICE_TYPE_H 24 | #define GRPCXX_IMPL_SERVICE_TYPE_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_SERVICE_TYPE_H 29 | -------------------------------------------------------------------------------- /include/grpcpp/impl/codegen/status_code_enum.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2016 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H 20 | #define GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H 21 | 22 | // IWYU pragma: private, include 23 | 24 | /// TODO(chengyuc): Remove this file after solving compatibility. 25 | #include 26 | 27 | #endif // GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H 28 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/matcher/v3/node.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_MATCHER_V3_NODE_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_MATCHER_V3_NODE_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__type__matcher__v3__NodeMatcher_msg_init; 22 | extern const upb_MiniTable* envoy__type__matcher__v3__NodeMatcher_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_type_matcher_v3_node_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_MATCHER_V3_NODE_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/type/matcher/v3/path.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_TYPE_MATCHER_V3_PATH_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_TYPE_MATCHER_V3_PATH_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__type__matcher__v3__PathMatcher_msg_init; 22 | extern const upb_MiniTable* envoy__type__matcher__v3__PathMatcher_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_type_matcher_v3_path_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_TYPE_MATCHER_V3_PATH_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/lib/slice/slice_string_helpers.cc: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2015 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #include "src/core/lib/slice/slice_string_helpers.h" 20 | 21 | #include 22 | 23 | #include "src/core/util/string.h" 24 | 25 | char* grpc_dump_slice(const grpc_slice& s, uint32_t flags) { 26 | return gpr_dump(reinterpret_cast GRPC_SLICE_START_PTR(s), 27 | GRPC_SLICE_LENGTH(s), flags); 28 | } 29 | -------------------------------------------------------------------------------- /src/objective-c/RxLibrary/GRXMappingWriter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #import "GRXForwardingWriter.h" 20 | 21 | /** A "proxy" writer that transforms all the values of its input writer by using a mapping function. 22 | */ 23 | @interface GRXMappingWriter : GRXForwardingWriter 24 | - (instancetype)initWithWriter:(GRXWriter *)writer 25 | map:(id (^)(id value))map NS_DESIGNATED_INITIALIZER; 26 | @end 27 | -------------------------------------------------------------------------------- /include/grpc++/impl/codegen/slice.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CODEGEN_SLICE_H 24 | #define GRPCXX_IMPL_CODEGEN_SLICE_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CODEGEN_SLICE_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/string_ref.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_STRING_REF_H 24 | #define GRPCXX_SUPPORT_STRING_REF_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_STRING_REF_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/propagation_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2016 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_PROPAGATION_BITS_H 20 | #define GRPC_IMPL_CODEGEN_PROPAGATION_BITS_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_PROPAGATION_BITS_H */ 30 | -------------------------------------------------------------------------------- /src/core/ext/transport/chttp2/transport/internal_channel_arg_names.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2025 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | #ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_INTERNAL_CHANNEL_ARG_NAMES_H 20 | #define GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_INTERNAL_CHANNEL_ARG_NAMES_H 21 | 22 | #define GRPC_ARG_PING_TIMEOUT_MS "grpc.http2.ping_timeout_ms" 23 | 24 | #endif // GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_INTERNAL_CHANNEL_ARG_NAMES_H 25 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * envoy/config/core/v3/http_uri.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef ENVOY_CONFIG_CORE_V3_HTTP_URI_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define ENVOY_CONFIG_CORE_V3_HTTP_URI_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable envoy__config__core__v3__HttpUri_msg_init; 22 | extern const upb_MiniTable* envoy__config__core__v3__HttpUri_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile envoy_config_core_v3_http_uri_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* ENVOY_CONFIG_CORE_V3_HTTP_URI_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h: -------------------------------------------------------------------------------- 1 | /* This file was generated by upb_generator from the input file: 2 | * 3 | * xds/service/orca/v3/orca.proto 4 | * 5 | * Do not edit -- your changes will be discarded when the file is 6 | * regenerated. 7 | * NO CHECKED-IN PROTOBUF GENCODE */ 8 | 9 | #ifndef XDS_SERVICE_ORCA_V3_ORCA_PROTO_UPB_H__UPB_MINITABLE_H_ 10 | #define XDS_SERVICE_ORCA_V3_ORCA_PROTO_UPB_H__UPB_MINITABLE_H_ 11 | 12 | #include "upb/generated_code_support.h" 13 | 14 | // Must be last. 15 | #include "upb/port/def.inc" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | extern const upb_MiniTable xds__service__orca__v3__OrcaLoadReportRequest_msg_init; 22 | extern const upb_MiniTable* xds__service__orca__v3__OrcaLoadReportRequest_msg_init_ptr; 23 | 24 | extern const upb_MiniTableFile xds_service_orca_v3_orca_proto_upb_file_layout; 25 | 26 | #ifdef __cplusplus 27 | } /* extern "C" */ 28 | #endif 29 | 30 | #include "upb/port/undef.inc" 31 | 32 | #endif /* XDS_SERVICE_ORCA_V3_ORCA_PROTO_UPB_H__UPB_MINITABLE_H_ */ 33 | -------------------------------------------------------------------------------- /include/grpc++/impl/codegen/config.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CODEGEN_CONFIG_H 24 | #define GRPCXX_IMPL_CODEGEN_CONFIG_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CODEGEN_CONFIG_H 29 | -------------------------------------------------------------------------------- /include/grpc++/impl/codegen/status.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_IMPL_CODEGEN_STATUS_H 24 | #define GRPCXX_IMPL_CODEGEN_STATUS_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_IMPL_CODEGEN_STATUS_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/byte_buffer.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_BYTE_BUFFER_H 24 | #define GRPCXX_SUPPORT_BYTE_BUFFER_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_BYTE_BUFFER_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/sync_stream.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_SYNC_STREAM_H 24 | #define GRPCXX_SUPPORT_SYNC_STREAM_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_SYNC_STREAM_H 29 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/byte_buffer_reader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H 20 | #define GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H 21 | 22 | // IWYU pragma: private 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H */ 30 | -------------------------------------------------------------------------------- /include/grpc/impl/codegen/sync_posix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | #ifndef GRPC_IMPL_CODEGEN_SYNC_POSIX_H 20 | #define GRPC_IMPL_CODEGEN_SYNC_POSIX_H 21 | 22 | // IWYU pragma: private, include 23 | 24 | #include 25 | 26 | /// TODO(chengyuc): Remove this file after solving compatibility. 27 | #include 28 | 29 | #endif /* GRPC_IMPL_CODEGEN_SYNC_POSIX_H */ 30 | -------------------------------------------------------------------------------- /include/grpcpp/version_info.h: -------------------------------------------------------------------------------- 1 | // Copyright 2022 gRPC authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // This file is autogenerated from: 16 | // templates/include/grpcpp/version_info.h.template 17 | 18 | #ifndef GRPCPP_VERSION_INFO_H 19 | #define GRPCPP_VERSION_INFO_H 20 | 21 | #define GRPC_CPP_VERSION_MAJOR 1 22 | #define GRPC_CPP_VERSION_MINOR 76 23 | #define GRPC_CPP_VERSION_PATCH 0 24 | #define GRPC_CPP_VERSION_TAG "" 25 | #define GRPC_CPP_VERSION_STRING "1.76.0" 26 | 27 | #endif // GRPCPP_VERSION_INFO_H 28 | -------------------------------------------------------------------------------- /include/grpc++/create_channel_posix.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_CREATE_CHANNEL_POSIX_H 24 | #define GRPCXX_CREATE_CHANNEL_POSIX_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_CREATE_CHANNEL_POSIX_H 29 | -------------------------------------------------------------------------------- /include/grpc++/generic/generic_stub.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_GENERIC_GENERIC_STUB_H 24 | #define GRPCXX_GENERIC_GENERIC_STUB_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_GENERIC_GENERIC_STUB_H 29 | -------------------------------------------------------------------------------- /include/grpc++/security/credentials.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SECURITY_CREDENTIALS_H 24 | #define GRPCXX_SECURITY_CREDENTIALS_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SECURITY_CREDENTIALS_H 29 | -------------------------------------------------------------------------------- /include/grpc++/support/async_stream.h: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // Copyright 2018 gRPC authors. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | // 18 | 19 | // DEPRECATED: The headers in include/grpc++ are deprecated. Please include the 20 | // headers in include/grpcpp instead. This header exists only for backwards 21 | // compatibility. 22 | 23 | #ifndef GRPCXX_SUPPORT_ASYNC_STREAM_H 24 | #define GRPCXX_SUPPORT_ASYNC_STREAM_H 25 | 26 | #include 27 | 28 | #endif // GRPCXX_SUPPORT_ASYNC_STREAM_H 29 | --------------------------------------------------------------------------------