Remove `include/grpc/impl/codegen/byte_buffer_reader.h` (#31708)

pull/31545/head
Cheng-Yu Chung 2 years ago committed by GitHub
parent d197499b6c
commit 26f77fe729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      include/grpc/byte_buffer_reader.h
  2. 23
      include/grpc/impl/codegen/byte_buffer_reader.h

@ -21,6 +21,24 @@
#include <grpc/support/port_platform.h>
#include <grpc/impl/codegen/byte_buffer_reader.h> // IWYU pragma: export
#ifdef __cplusplus
extern "C" {
#endif
struct grpc_byte_buffer;
struct grpc_byte_buffer_reader {
struct grpc_byte_buffer* buffer_in;
struct grpc_byte_buffer* buffer_out;
/** Different current objects correspond to different types of byte buffers */
union grpc_byte_buffer_reader_current {
/** Index into a slice buffer's array of slices */
unsigned index;
} current;
};
#ifdef __cplusplus
}
#endif
#endif /* GRPC_BYTE_BUFFER_READER_H */

@ -19,26 +19,11 @@
#ifndef GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H
#define GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H
// IWYU pragma: private, include <grpc/byte_buffer_reader.h>
// IWYU pragma: private
#ifdef __cplusplus
extern "C" {
#endif
#include <grpc/support/port_platform.h>
struct grpc_byte_buffer;
struct grpc_byte_buffer_reader {
struct grpc_byte_buffer* buffer_in;
struct grpc_byte_buffer* buffer_out;
/** Different current objects correspond to different types of byte buffers */
union grpc_byte_buffer_reader_current {
/** Index into a slice buffer's array of slices */
unsigned index;
} current;
};
#ifdef __cplusplus
}
#endif
/// TODO(chengyuc): Remove this file after solving compatibility.
#include <grpc/byte_buffer_reader.h>
#endif /* GRPC_IMPL_CODEGEN_BYTE_BUFFER_READER_H */

Loading…
Cancel
Save