Add comments to the interface

pull/14318/head
Muxi Yan 7 years ago
parent 3e440f3500
commit 1a6d3a529b
  1. 2
      include/grpc/impl/codegen/grpc_types.h
  2. 8
      src/objective-c/GRPCClient/GRPCCall+MobileLog.h

@ -309,6 +309,8 @@ typedef struct {
Defaults to "blend". In the current implementation "blend" is equivalent to
"latency". */
#define GRPC_ARG_OPTIMIZATION_TARGET "grpc.optimization_target"
/** Channel arg that carries the bridged objective c object for custom metrics
* logging filter. */
#define GRPC_ARG_MOBILE_LOG_CONFIG "grpc.mobile_log_config"
/** \} */

@ -16,11 +16,15 @@
*
*/
// Set the log config object to be passed to channels as channel arg.
// The setting is only effective to channels created after setLogConfig.
#import "GRPCCall.h"
@interface GRPCCall (MobileLog)
// Set the object to be passed down along channel stack with channel arg
// GRPC_ARG_MOBILE_LOG_CONFIG. The setting may be used by custom channel
// filters for metrics logging.
+ (void)setLogConfig:(id)logConfig;
// Obtain the object to be passed down along channel stack with channel arg
// GRPC_ARG_MOBILE_LOG_CONFIG.
+ (id)logConfig;
@end

Loading…
Cancel
Save