Lines Matching defs:matching
146 CFMutableDictionaryRef matching = NULL;
169 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
170 if ( matching ) {
175 CFDictionarySetValue(matching, CFSTR(kIOHIDElementTypeKey), number);
177 outputElements = IOHIDDeviceCopyMatchingElements(device, matching, 0);
185 CFRelease(matching);
210 CFMutableDictionaryRef matching = NULL;
237 if ( !matching )
238 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
239 CFDictionarySetValue(matching, CFSTR(kIOHIDDeviceUsageKey), number);
247 if ( !matching )
248 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
249 CFDictionarySetValue(matching, CFSTR(kIOHIDDeviceUsagePageKey), number);
257 if ( !matching )
258 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
259 CFDictionarySetValue(matching, CFSTR(kIOHIDVendorIDKey), number);
267 if ( !matching )
268 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
269 CFDictionarySetValue(matching, CFSTR(kIOHIDProductIDKey), number);
276 if ( !matching )
277 matching = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
278 CFDictionarySetValue(matching, CFSTR(kIOHIDTransportKey), string);
304 IOHIDManagerSetDeviceMatching(manager, matching);
309 if ( matching )
310 CFRelease(matching);