Lines Matching defs:keys
56 hasKey(CFMutableArrayRef keys, CFStringRef key)
58 if (keys != NULL) {
61 n = CFArrayGetCount(keys);
62 if (CFArrayContainsValue(keys, CFRangeMake(0, n), key)) {
120 sc_status = hasKey(storePrivate->keys, key);
132 addKey(&storePrivate->keys, key);
244 __SCDynamicStoreSetNotificationKeys(SCDynamicStoreRef store, CFArrayRef keys, CFArrayRef patterns)
251 CFSTR("watch : %5d : %ld keys, %ld patterns\n"),
253 keys ? CFArrayGetCount(keys) : 0,
260 /* remove any previously registered keys, register any new keys */
262 myContext.newKeys = keys;
264 if (storePrivate->keys != NULL) {
265 myContext.oldKeys = CFArrayCreateCopy(NULL, storePrivate->keys);
266 my_CFArrayApplyFunction(storePrivate->keys, removeOldKey, &myContext);
268 if (keys != NULL) {
269 CFArrayApplyFunction(keys,
270 CFRangeMake(0, CFArrayGetCount(keys)),
306 CFArrayRef keys = NULL; /* key (un-serialized) */
313 /* un-serialize the keys */
314 if (!_SCUnserialize((CFPropertyListRef *)&keys, NULL, (void *)keysRef, keysLen)) {
330 if ((keys != NULL) && !isA_CFArray(keys)) {
347 *sc_status = __SCDynamicStoreSetNotificationKeys(mySession->store, keys, patterns);
351 if (keys != NULL) CFRelease(keys);