Skip to content

Commit

Permalink
Native source sync at revision @6ae523d
Browse files Browse the repository at this point in the history
  • Loading branch information
dennycd authored and HannahShiSFB committed Oct 9, 2024
1 parent 6ae523d commit ad9f5fd
Show file tree
Hide file tree
Showing 1,969 changed files with 19,858 additions and 12,103 deletions.
250 changes: 133 additions & 117 deletions gRPC-C++.podspec

Large diffs are not rendered by default.

333 changes: 177 additions & 156 deletions gRPC-Core.podspec

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions include/grpc/compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#ifndef GRPC_COMPRESSION_H
#define GRPC_COMPRESSION_H

#include <stdlib.h>

#include <grpc/impl/compression_types.h> // IWYU pragma: export
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#ifndef GRPC_CREDENTIALS_H
#define GRPC_CREDENTIALS_H

#include <stdbool.h>

#include <grpc/grpc.h>
#include <grpc/grpc_security_constants.h>
#include <grpc/support/port_platform.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions include/grpc/event_engine/endpoint_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#ifndef GRPC_EVENT_ENGINE_ENDPOINT_CONFIG_H
#define GRPC_EVENT_ENGINE_ENDPOINT_CONFIG_H

#include <grpc/support/port_platform.h>

#include <string>

#include "absl/strings/string_view.h"
#include "absl/types/optional.h"

#include <grpc/support/port_platform.h>

namespace grpc_event_engine {
namespace experimental {

Expand Down
12 changes: 6 additions & 6 deletions include/grpc/event_engine/event_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
#ifndef GRPC_EVENT_ENGINE_EVENT_ENGINE_H
#define GRPC_EVENT_ENGINE_EVENT_ENGINE_H

#include <vector>

#include "absl/functional/any_invocable.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"

#include <grpc/event_engine/endpoint_config.h>
#include <grpc/event_engine/extensible.h>
#include <grpc/event_engine/memory_allocator.h>
#include <grpc/event_engine/port.h>
#include <grpc/event_engine/slice_buffer.h>
#include <grpc/support/port_platform.h>

#include <vector>

#include "absl/functional/any_invocable.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"

// TODO(vigneshbabu): Define the Endpoint::Write metrics collection system
namespace grpc_event_engine {
namespace experimental {
Expand Down
4 changes: 2 additions & 2 deletions include/grpc/event_engine/extensible.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#ifndef GRPC_EVENT_ENGINE_EXTENSIBLE_H
#define GRPC_EVENT_ENGINE_EXTENSIBLE_H

#include "absl/strings/string_view.h"

#include <grpc/support/port_platform.h>

#include "absl/strings/string_view.h"

namespace grpc_event_engine {
namespace experimental {

Expand Down
8 changes: 4 additions & 4 deletions include/grpc/event_engine/internal/memory_allocator_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
#ifndef GRPC_EVENT_ENGINE_INTERNAL_MEMORY_ALLOCATOR_IMPL_H
#define GRPC_EVENT_ENGINE_INTERNAL_MEMORY_ALLOCATOR_IMPL_H

#include <grpc/event_engine/memory_request.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>

#include <algorithm>
#include <memory>
#include <type_traits>
#include <vector>

#include <grpc/event_engine/memory_request.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>

namespace grpc_event_engine {
namespace experimental {

Expand Down
7 changes: 3 additions & 4 deletions include/grpc/event_engine/memory_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
#ifndef GRPC_EVENT_ENGINE_MEMORY_ALLOCATOR_H
#define GRPC_EVENT_ENGINE_MEMORY_ALLOCATOR_H

#include <grpc/event_engine/internal/memory_allocator_impl.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>
#include <stdlib.h> // for abort()

#include <algorithm>
#include <memory>
#include <type_traits>
#include <vector>

#include <grpc/event_engine/internal/memory_allocator_impl.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>

namespace grpc_event_engine {
namespace experimental {

Expand Down
3 changes: 1 addition & 2 deletions include/grpc/event_engine/memory_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
#ifndef GRPC_EVENT_ENGINE_MEMORY_REQUEST_H
#define GRPC_EVENT_ENGINE_MEMORY_REQUEST_H

#include <grpc/support/port_platform.h>
#include <stddef.h>

#include "absl/strings/string_view.h"

#include <grpc/support/port_platform.h>

namespace grpc_event_engine {
namespace experimental {

Expand Down
7 changes: 3 additions & 4 deletions include/grpc/event_engine/slice.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#ifndef GRPC_EVENT_ENGINE_SLICE_H
#define GRPC_EVENT_ENGINE_SLICE_H

#include <grpc/event_engine/internal/slice_cast.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>
#include <string.h>

#include <cstdint>
Expand All @@ -23,10 +26,6 @@

#include "absl/strings/string_view.h"

#include <grpc/event_engine/internal/slice_cast.h>
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>

// This public slice definition largely based of the internal grpc_core::Slice
// implementation. Changes to this implementation might warrant changes to the
// internal grpc_core::Slice type as well.
Expand Down
13 changes: 6 additions & 7 deletions include/grpc/event_engine/slice_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
#ifndef GRPC_EVENT_ENGINE_SLICE_BUFFER_H
#define GRPC_EVENT_ENGINE_SLICE_BUFFER_H

#include <grpc/event_engine/internal/slice_cast.h>
#include <grpc/event_engine/slice.h>
#include <grpc/impl/codegen/slice.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/port_platform.h>
#include <string.h>

#include <cstdint>
Expand All @@ -23,13 +29,6 @@
#include "absl/strings/string_view.h"
#include "absl/utility/utility.h"

#include <grpc/event_engine/internal/slice_cast.h>
#include <grpc/event_engine/slice.h>
#include <grpc/impl/codegen/slice.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/port_platform.h>

namespace grpc_event_engine {
namespace experimental {

Expand Down
3 changes: 1 addition & 2 deletions include/grpc/grpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#ifndef GRPC_GRPC_H
#define GRPC_GRPC_H

#include <stddef.h>

#include <grpc/byte_buffer.h>
#include <grpc/impl/connectivity_state.h> // IWYU pragma: export
#include <grpc/impl/grpc_types.h> // IWYU pragma: export
Expand All @@ -29,6 +27,7 @@
#include <grpc/status.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/time.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
Expand Down
6 changes: 3 additions & 3 deletions include/grpc/grpc_audit_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
#ifndef GRPC_GRPC_AUDIT_LOGGING_H
#define GRPC_GRPC_AUDIT_LOGGING_H

#include <grpc/support/json.h>
#include <grpc/support/port_platform.h>

#include <memory>
#include <string>

#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"

#include <grpc/support/json.h>
#include <grpc/support/port_platform.h>

namespace grpc_core {
namespace experimental {

Expand Down
8 changes: 4 additions & 4 deletions include/grpc/grpc_crl_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
#ifndef GRPC_GRPC_CRL_PROVIDER_H
#define GRPC_GRPC_CRL_PROVIDER_H

#include <grpc/credentials.h>
#include <grpc/grpc_security.h>
#include <grpc/support/port_platform.h>

#include <memory>
#include <string>

#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"

#include <grpc/credentials.h>
#include <grpc/grpc_security.h>
#include <grpc/support/port_platform.h>

namespace grpc_core {
namespace experimental {

Expand Down
3 changes: 1 addition & 2 deletions include/grpc/grpc_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#ifndef GRPC_GRPC_POSIX_H
#define GRPC_GRPC_POSIX_H

#include <stddef.h>

#include <grpc/grpc.h>
#include <grpc/impl/grpc_types.h>
#include <grpc/support/port_platform.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/grpc_security.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
#ifndef GRPC_GRPC_SECURITY_H
#define GRPC_GRPC_SECURITY_H

#include <stdbool.h>

#include <grpc/grpc.h>
#include <grpc/grpc_security_constants.h>
#include <grpc/status.h>
#include <grpc/support/port_platform.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions include/grpc/impl/call.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#ifndef GRPC_IMPL_CALL_H
#define GRPC_IMPL_CALL_H

#include "absl/functional/any_invocable.h"

#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>

#include "absl/functional/any_invocable.h"

// Run a callback in the call's EventEngine.
// Internal-only
void grpc_call_run_in_event_engine(const grpc_call* call,
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/impl/grpc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@

// IWYU pragma: private, include <grpc/grpc.h>

#include <stddef.h>

#include <grpc/impl/channel_arg_names.h>
#include <grpc/impl/compression_types.h>
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/time.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/impl/slice_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@

// IWYU pragma: private, include <grpc/slice.h>

#include <stddef.h>

#include <grpc/support/port_platform.h>
#include <stddef.h>

typedef struct grpc_slice grpc_slice;

Expand Down
4 changes: 2 additions & 2 deletions include/grpc/passive_listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#ifndef GRPC_PASSIVE_LISTENER_H
#define GRPC_PASSIVE_LISTENER_H

#include <memory>

#include <grpc/event_engine/event_engine.h>
#include <grpc/grpc.h>

#include <memory>
// #include <grpc/support/port_platform.h>

namespace grpc_core {
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/support/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
#ifndef GRPC_SUPPORT_ALLOC_H
#define GRPC_SUPPORT_ALLOC_H

#include <stddef.h>

#include <grpc/support/port_platform.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
Expand Down
3 changes: 1 addition & 2 deletions include/grpc/support/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GRPC_SUPPORT_JSON_H
#define GRPC_SUPPORT_JSON_H

#include <grpc/support/port_platform.h>
#include <stdint.h>

#include <map>
Expand All @@ -27,8 +28,6 @@
#include "absl/strings/str_cat.h"
#include "absl/types/variant.h"

#include <grpc/support/port_platform.h>

namespace grpc_core {
namespace experimental {

Expand Down
3 changes: 1 addition & 2 deletions include/grpc/support/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#ifndef GRPC_SUPPORT_LOG_H
#define GRPC_SUPPORT_LOG_H

#include <grpc/support/port_platform.h>
#include <stdarg.h>
#include <stdlib.h> /* for abort() */

#include <grpc/support/port_platform.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
4 changes: 2 additions & 2 deletions include/grpc/support/metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#ifndef GRPC_SUPPORT_METRICS_H
#define GRPC_SUPPORT_METRICS_H

#include "absl/strings/string_view.h"

#include <grpc/event_engine/endpoint_config.h>
#include <grpc/support/port_platform.h>

#include "absl/strings/string_view.h"

namespace grpc_core {
namespace experimental {

Expand Down
3 changes: 1 addition & 2 deletions include/grpc/support/sync_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
#ifndef GRPC_SUPPORT_SYNC_POSIX_H
#define GRPC_SUPPORT_SYNC_POSIX_H

#include <pthread.h>

#include <grpc/support/port_platform.h>
#include <grpc/support/sync_generic.h>
#include <pthread.h>

#ifdef GRPC_ASAN_ENABLED
/* The member |leak_checker| is used to check whether there is a memory leak
Expand Down
Loading

0 comments on commit ad9f5fd

Please sign in to comment.