]> git.saurik.com Git - cydia.git/commitdiff
Add cydia.operator.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Mar 2011 17:10:08 +0000 (10:10 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Mar 2011 17:10:08 +0000 (10:10 -0700)
MobileCydia.mm

index e8d8cfc1f21f2188f31958ecec84d9c8f7af2ffd..632fb3af8dc22d8ea34e78414cab9c4df8589bc7 100644 (file)
@@ -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];
 }