aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2019-01-07 09:50:21 -0800
committerGravatar GitHub <noreply@github.com>2019-01-07 09:50:21 -0800
commit36b47ce0de60754cf14258e15d25dd2d1bb5abe0 (patch)
tree891087733e8609cc0594559dbd17d8b4b9b5b1e9 /src/objective-c/GRPCClient/private/GRPCWrappedCall.h
parent46bd2f7adb926053345665d5c487fa20acd2b5b0 (diff)
parentb4a926961abc9e29016b2ba30093f3925de10514 (diff)
Merge pull request #16190 from muxi/config-isolation
Implement L38: gRPC Objective-C API Upgrade
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCWrappedCall.h')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCWrappedCall.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.h b/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
index f711850c2f..92bd1be257 100644
--- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
+++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
@@ -71,12 +71,16 @@
#pragma mark GRPCWrappedCall
+@class GRPCPooledChannel;
+
@interface GRPCWrappedCall : NSObject
-- (instancetype)initWithHost:(NSString *)host
- serverName:(NSString *)serverName
- path:(NSString *)path
- timeout:(NSTimeInterval)timeout NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
+
++ (instancetype) new NS_UNAVAILABLE;
+
+- (instancetype)initWithUnmanagedCall:(grpc_call *)unmanagedCall
+ pooledChannel:(GRPCPooledChannel *)pooledChannel NS_DESIGNATED_INITIALIZER;
- (void)startBatchWithOperations:(NSArray *)ops errorHandler:(void (^)(void))errorHandler;
@@ -84,4 +88,6 @@
- (void)cancel;
+- (void)channelDisconnected;
+
@end