Some more extern C

reviewable/pr12692/r4
Yash Tibrewal 8 years ago
parent 662d32444e
commit e2ae17221e
  1. 8
      src/core/ext/census/grpc_filter.h
  2. 8
      src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h
  3. 8
      src/core/ext/filters/http/client/http_client_filter.h
  4. 8
      src/core/ext/filters/http/message_compress/message_compress_filter.h
  5. 8
      src/core/ext/filters/http/server/http_server_filter.h
  6. 8
      src/core/ext/filters/load_reporting/server_load_reporting_filter.h
  7. 8
      src/core/ext/filters/max_age/max_age_filter.h
  8. 8
      src/core/ext/filters/message_size/message_size_filter.h
  9. 8
      src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h
  10. 8
      src/core/ext/transport/chttp2/client/chttp2_connector.h
  11. 8
      src/core/ext/transport/chttp2/transport/huffsyms.h
  12. 9
      src/core/lib/iomgr/gethostname.h
  13. 1
      src/core/lib/iomgr/gethostname_fallback.cc
  14. 1
      src/core/lib/iomgr/gethostname_host_name_max.cc
  15. 1
      src/core/lib/iomgr/gethostname_sysconf.cc

@ -21,9 +21,17 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Census filters: provides tracing and stats collection functionalities. It
needs to reside right below the surface filter in the channel stack. */
extern const grpc_channel_filter grpc_client_census_filter;
extern const grpc_channel_filter grpc_server_census_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_CENSUS_GRPC_FILTER_H */

@ -21,7 +21,15 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const grpc_channel_filter grpc_client_load_reporting_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_GRPCLB_CLIENT_LOAD_REPORTING_FILTER_H \
*/

@ -20,10 +20,18 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Processes metadata on the client side for HTTP2 transports */
extern const grpc_channel_filter grpc_http_client_filter;
/* Channel arg to determine maximum size of payload eligable for GET request */
#define GRPC_ARG_MAX_PAYLOAD_SIZE_FOR_GET "grpc.max_payload_size_for_get"
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_HTTP_CLIENT_HTTP_CLIENT_FILTER_H */

@ -23,6 +23,10 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
/** Compression filter for outgoing data.
*
* See <grpc/compression.h> for the available compression settings.
@ -47,5 +51,9 @@
extern const grpc_channel_filter grpc_message_compress_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_HTTP_MESSAGE_COMPRESS_MESSAGE_COMPRESS_FILTER_H \
*/

@ -21,7 +21,15 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Processes metadata on the client side for HTTP2 transports */
extern const grpc_channel_filter grpc_http_server_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_HTTP_SERVER_HTTP_SERVER_FILTER_H */

@ -22,7 +22,15 @@
#include "src/core/ext/filters/load_reporting/server_load_reporting_plugin.h"
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const grpc_channel_filter grpc_server_load_reporting_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_LOAD_REPORTING_SERVER_LOAD_REPORTING_FILTER_H \
*/

@ -19,6 +19,14 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const grpc_channel_filter grpc_max_age_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_MAX_AGE_MAX_AGE_FILTER_H */

@ -19,6 +19,14 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const grpc_channel_filter grpc_message_size_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_MESSAGE_SIZE_MESSAGE_SIZE_FILTER_H */

@ -19,7 +19,15 @@
#include "src/core/lib/channel/channel_stack.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const grpc_channel_filter grpc_workaround_cronet_compression_filter;
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_FILTERS_WORKAROUNDS_WORKAROUND_CRONET_COMPRESSION_FILTER_H \
*/

@ -19,8 +19,16 @@
#ifndef GRPC_CORE_EXT_TRANSPORT_CHTTP2_CLIENT_CHTTP2_CONNECTOR_H
#define GRPC_CORE_EXT_TRANSPORT_CHTTP2_CLIENT_CHTTP2_CONNECTOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include "src/core/ext/filters/client_channel/connector.h"
grpc_connector* grpc_chttp2_connector_create();
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_TRANSPORT_CHTTP2_CLIENT_CHTTP2_CONNECTOR_H */

@ -19,6 +19,10 @@
#ifndef GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HUFFSYMS_H
#define GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HUFFSYMS_H
#ifdef __cplusplus
extern "C" {
#endif
/* HPACK static huffman table */
#define GRPC_CHTTP2_NUM_HUFFSYMS 257
@ -30,4 +34,8 @@ typedef struct {
extern const grpc_chttp2_huffsym grpc_chttp2_huffsyms[GRPC_CHTTP2_NUM_HUFFSYMS];
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HUFFSYMS_H */

@ -19,8 +19,17 @@
#ifndef GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H
#define GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H
#ifdef __cplusplus
extern "C" {
#endif
// Returns the hostname of the local machine.
// Caller takes ownership of result.
char *grpc_gethostname();
#ifdef __cplusplus
}
#endif
#endif /* GRPC_CORE_LIB_IOMGR_GETHOSTNAME_H */

@ -17,6 +17,7 @@
*/
#include "src/core/lib/iomgr/port.h"
#include "src/core/lib/iomgr/gethostname.h"
#ifdef GRPC_GETHOSTNAME_FALLBACK

@ -17,6 +17,7 @@
*/
#include "src/core/lib/iomgr/port.h"
#include "src/core/lib/iomgr/gethostname.h"
#ifdef GRPC_POSIX_HOST_NAME_MAX

@ -17,6 +17,7 @@
*/
#include "src/core/lib/iomgr/port.h"
#include "src/core/lib/iomgr/gethostname.h"
#ifdef GRPC_POSIX_SYSCONF

Loading…
Cancel
Save