summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-18 10:10:08 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-18 10:10:08 -0700
commit2656c992b0e1ecb4324519c2355d26ccb1ab3a83 (patch)
tree01e85e15c8f3c392eff8c04f23d7bde6d10c47be /MobileCydia.mm
parentf87cac81daa0599173488e566abe961b4202b818 (diff)
Add cydia.operator.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index e8d8cfc..632fb3a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3964,6 +3964,7 @@ static _H<NSMutableSet> Diversions_;
@"mcc",
@"mnc",
@"model",
+ @"operator",
@"role",
@"serial",
@"token",
@@ -4011,6 +4012,12 @@ static _H<NSMutableSet> Diversions_;
return nil;
}
+- (NSString *) operator {
+ if (CFStringRef (*$CTRegistrationCopyOperatorName)(CFAllocatorRef) = reinterpret_cast<CFStringRef (*)(CFAllocatorRef)>(dlsym(RTLD_DEFAULT, "CTRegistrationCopyOperatorName")))
+ return [(NSString *) (*$CTRegistrationCopyOperatorName)(kCFAllocatorDefault) autorelease];
+ return nil;
+}
+
- (NSString *) bbsnum {
return (id) BBSNum_ ?: [NSNull null];
}