diff options
Diffstat (limited to 'platform/darwin/mbgl/storage')
-rw-r--r-- | platform/darwin/mbgl/storage/reachability.h | 2 | ||||
-rw-r--r-- | platform/darwin/mbgl/storage/reachability.m | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/platform/darwin/mbgl/storage/reachability.h b/platform/darwin/mbgl/storage/reachability.h index 78e302eafc..e38c9b1e20 100644 --- a/platform/darwin/mbgl/storage/reachability.h +++ b/platform/darwin/mbgl/storage/reachability.h @@ -63,7 +63,7 @@ typedef void (^NetworkUnreachable)(MGLReachability * reachability); +(instancetype)reachabilityWithHostname:(NSString*)hostname; // This is identical to the function above, but is here to maintain -//compatibility with Apples original code. (see .m) +// compatibility with Apples original code. (see .m) +(instancetype)reachabilityWithHostName:(NSString*)hostname; +(instancetype)reachabilityForInternetConnection; +(instancetype)reachabilityWithAddress:(void *)hostAddress; diff --git a/platform/darwin/mbgl/storage/reachability.m b/platform/darwin/mbgl/storage/reachability.m index aa6746a2a9..2030e7ef71 100644 --- a/platform/darwin/mbgl/storage/reachability.m +++ b/platform/darwin/mbgl/storage/reachability.m @@ -242,10 +242,10 @@ static void TMReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRea // This is for the case where you flick the airplane mode; // you end up getting something like this: -//Reachability: WR ct----- -//Reachability: -- ------- -//Reachability: WR ct----- -//Reachability: -- ------- +// Reachability: WR ct----- +// Reachability: -- ------- +// Reachability: WR ct----- +// Reachability: -- ------- // We treat this as 4 UNREACHABLE triggers - really apple should do better than this #define testcase (kSCNetworkReachabilityFlagsConnectionRequired | kSCNetworkReachabilityFlagsTransientConnection) |