summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-09 22:18:53 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-09 22:18:53 -0800
commit37fa9338c8b79e1212a8709b688fe13686837db5 (patch)
tree06f3d0b9a9081b4759fbeb5928f7c99fdf2dc0ef /MobileCydia.mm
parent84851d87e0bc7d4fcc068abb56d077a0c548ca80 (diff)
Add cydia.getMetadataKeys().
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 ab82735..096c4ab 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3991,6 +3991,8 @@ static _H<NSMutableSet> Diversions_;
return @"getPreferredLanguages";
else if (selector == @selector(getPackageById:))
return @"getPackageById";
+ else if (selector == @selector(getMetadataKeys))
+ return @"getMetadataKeys";
else if (selector == @selector(getMetadataValue:))
return @"getMetadataValue";
else if (selector == @selector(getSessionValue:))
@@ -4130,6 +4132,11 @@ static _H<NSMutableSet> Diversions_;
}
}
+- (NSArray *) getMetadataKeys {
+@synchronized (Values_) {
+ return [Values_ allKeys];
+} }
+
- (id) getMetadataValue:(NSString *)key {
@synchronized (Values_) {
return [Values_ objectForKey:key];