Lines Matching defs:interface

79 	IOHIDDeviceInterface ** interface;		/* interface to device, NULL = no interface */
123 if (NULL != pDevice && NULL != pElement && NULL != pDevice->interface)
125 result = (*(pDevice->interface))->getElementValue(pDevice->interface, pElement->cookie, &hidEvent);
164 /* Create and open an interface to device, required prior to extracting values or building queues.
175 if (NULL == pDevice->interface)
181 /* Call a method of the intermediate plug-in to create the device interface */
183 CFUUIDGetUUIDBytes (kIOHIDDeviceInterfaceID), (void *) &(pDevice->interface));
185 HIDReportErrorNum ("Couldn�t query HID class device interface from plugInInterface", plugInResult);
191 if (NULL != pDevice->interface)
193 result = (*(pDevice->interface))->open (pDevice->interface, 0);
195 HIDReportErrorNum ("Failed to open pDevice->interface via open.", result);
197 (*(pDevice->interface))->setRemovalCallback (pDevice->interface, HIDRemovalCallback, pDevice, pDevice);
203 /* Closes and releases interface to device, should be done prior to exting application
204 * Note: will have no affect if device or interface do not exist
205 * application will "own" the device if interface is not closed
213 if ((NULL != pDevice) && (NULL != pDevice->interface))
215 /* close the interface */
216 result = (*(pDevice->interface))->close (pDevice->interface);
223 /* release the interface */
224 result = (*(pDevice->interface))->Release (pDevice->interface);
227 pDevice->interface = NULL;
499 /* create device interface */
537 /* disposes of a single device, closing and releaseing interface, freeing memory fro device and elements, setting device pointer to NULL
555 result = HIDCloseReleaseInterface (*ppDevice); /* function sanity checks interface value (now application does not own device) */