Skip to content

Commit

Permalink
Undo forward-declaring grpc_channel_args, which isn’t a struct!
Browse files Browse the repository at this point in the history
It’s a typedef of an anonymous struct.
  • Loading branch information
jcanizales committed Aug 6, 2015
1 parent d13bbed commit 145f865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/objective-c/GRPCClient/private/GRPCSecureChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
*
*/

struct grpc_credentials;
struct grpc_channel_args;
#include <grpc/grpc.h>

#import "GRPCChannel.h"

struct grpc_credentials;

@interface GRPCSecureChannel : GRPCChannel
- (instancetype)initWithHost:(NSString *)host;

Expand All @@ -47,5 +48,5 @@ struct grpc_channel_args;

- (instancetype)initWithHost:(NSString *)host
credentials:(struct grpc_credentials *)credentials
args:(struct grpc_channel_args *)args NS_DESIGNATED_INITIALIZER;
args:(grpc_channel_args *)args NS_DESIGNATED_INITIALIZER;
@end
2 changes: 1 addition & 1 deletion src/objective-c/GRPCClient/private/GRPCSecureChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#import "GRPCSecureChannel.h"

#import <grpc/grpc_security.h>
#include <grpc/grpc_security.h>

static grpc_credentials *CertificatesAtPath(NSString *path) {
NSData *certsData = [NSData dataWithContentsOfFile:path];
Expand Down

0 comments on commit 145f865

Please sign in to comment.