Forward-declare GRPCCompletionQueue and grpc_call

pull/2754/head
Jorge Canizales 9 years ago
parent 0607bae87e
commit 83b7971c10
  1. 6
      src/objective-c/GRPCClient/private/GRPCHost.h
  2. 3
      src/objective-c/GRPCClient/private/GRPCHost.m

@ -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

@ -33,7 +33,10 @@
#import "GRPCHost.h"
#include <grpc/grpc.h>
#import "GRPCChannel.h"
#import "GRPCCompletionQueue.h"
#import "GRPCSecureChannel.h"
#import "GRPCUnsecuredChannel.h"

Loading…
Cancel
Save