diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 18:25:27 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 18:25:27 -0700 |
commit | 518a552a416971e57e565b3942104a988294c3fd (patch) | |
tree | db6520ad7812971edbe9b139c1cbc0a0678da73d /MobileCydia.mm | |
parent | 6cbfbe28f883e3df8b61cf7959bd8de9d41ab33e (diff) |
Add cydia.isReachable().
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index a2d4333..1b58d39 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4127,6 +4127,8 @@ static _H<NSMutableSet> Diversions_; return @"getSessionValue"; else if (selector == @selector(installPackages:)) return @"installPackages"; + else if (selector == @selector(isReachable:)) + return @"isReachable"; else if (selector == @selector(localizedStringForKey:value:table:)) return @"localize"; else if (selector == @selector(popViewController:)) @@ -4437,6 +4439,10 @@ static _H<NSMutableSet> Diversions_; [indirect_ performSelectorOnMainThread:@selector(close) withObject:nil waitUntilDone:NO]; } +- (NSNumber *) isReachable:(NSString *)name { + return [NSNumber numberWithBool:IsReachable([name UTF8String])]; +} + - (void) installPackages:(NSArray *)packages { [delegate_ performSelectorOnMainThread:@selector(installPackages:) withObject:packages waitUntilDone:NO]; } |