aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-08-05 17:12:04 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-08-05 17:12:04 -0700
commit83b7971c10d18fcc1c04056a028860283b2be051 (patch)
tree648aa28a2f0e09f5f9fd67e8bc5b67ae590af4f6 /src/objective-c/GRPCClient
parent0607bae87e0f3417972bc221a5c4f8dc6bec5fef (diff)
Forward-declare GRPCCompletionQueue and grpc_call
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCHost.h6
-rw-r--r--src/objective-c/GRPCClient/private/GRPCHost.m3
2 files changed, 7 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.h b/src/objective-c/GRPCClient/private/GRPCHost.h
index 86e43a283d..f0bbd53023 100644
--- a/src/objective-c/GRPCClient/private/GRPCHost.h
+++ b/src/objective-c/GRPCClient/private/GRPCHost.h
@@ -33,7 +33,8 @@
#import <Foundation/Foundation.h>
-#import "GRPCCompletionQueue.h"
+@class GRPCCompletionQueue;
+struct grpc_call;
@interface GRPCHost : NSObject
@@ -51,6 +52,7 @@
- (instancetype)initWithAddress:(NSString *)address NS_DESIGNATED_INITIALIZER;
// Create a grpc_call object to the provided path on this host.
-- (grpc_call *)unmanagedCallWithPath:(NSString *)path completionQueue:(GRPCCompletionQueue *)queue;
+- (struct grpc_call *)unmanagedCallWithPath:(NSString *)path
+ completionQueue:(GRPCCompletionQueue *)queue;
@end
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m
index f3e4ce3ab9..05c72e447d 100644
--- a/src/objective-c/GRPCClient/private/GRPCHost.m
+++ b/src/objective-c/GRPCClient/private/GRPCHost.m
@@ -33,7 +33,10 @@
#import "GRPCHost.h"
+#include <grpc/grpc.h>
+
#import "GRPCChannel.h"
+#import "GRPCCompletionQueue.h"
#import "GRPCSecureChannel.h"
#import "GRPCUnsecuredChannel.h"