diff options
author | Makarand Dharmapurikar <makarandd@google.com> | 2016-05-25 13:21:53 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@google.com> | 2016-05-25 13:21:53 -0700 |
commit | 6d2ed00a1a6c1a2d101d40f125ecb688a37cdad0 (patch) | |
tree | 0ef67d41bd0bccac410a6776e77ba1320567deb4 /src/objective-c/GRPCClient | |
parent | de733bd78ce8c1390fa8553dd145b304178c23f4 (diff) |
Slight change to surface API.
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall+Cronet.h | 3 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall+Cronet.m | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Cronet.h b/src/objective-c/GRPCClient/GRPCCall+Cronet.h index e63aaec94f..d623ed61a3 100644 --- a/src/objective-c/GRPCClient/GRPCCall+Cronet.h +++ b/src/objective-c/GRPCClient/GRPCCall+Cronet.h @@ -39,8 +39,7 @@ */ @interface GRPCCall (Cronet) -+(void) setUseCronet:(BOOL) useCronet - :(cronet_engine *)cronet_engine; ++(void)useCronet:(cronet_engine *)cronet_engine; +(void *)getCronetEngine; diff --git a/src/objective-c/GRPCClient/GRPCCall+Cronet.m b/src/objective-c/GRPCClient/GRPCCall+Cronet.m index 17d6254a47..2409cd4645 100644 --- a/src/objective-c/GRPCClient/GRPCCall+Cronet.m +++ b/src/objective-c/GRPCClient/GRPCCall+Cronet.m @@ -38,9 +38,8 @@ static void *g_cronet_engine; @implementation GRPCCall (Cronet) -+ (void)setUseCronet:(BOOL)useCronet - :(cronet_engine *)cronet_engine { - use_cronet = useCronet; ++ (void)useCronet:(cronet_engine *)cronet_engine { + use_cronet = YES; g_cronet_engine = cronet_engine; } |