Lines Matching refs:iokit

93 iokit = ctypes.cdll.LoadLibrary(  variable
119 iokit.IOObjectRelease.argtypes = [IO_OBJECT_T]
121 iokit.IOHIDManagerCreate.restype = IO_HID_MANAGER_REF
122 iokit.IOHIDManagerCreate.argtypes = [CF_ALLOCATOR_REF, IO_OPTION_BITS]
123 iokit.IOHIDManagerCopyDevices.restype = CF_SET_REF
124 iokit.IOHIDManagerCopyDevices.argtypes = [IO_HID_MANAGER_REF]
125 iokit.IOHIDManagerSetDeviceMatching.restype = None
126 iokit.IOHIDManagerSetDeviceMatching.argtypes = [IO_HID_MANAGER_REF, CF_TYPE_REF]
128 iokit.IORegistryEntryIDMatching.restype = CF_MUTABLE_DICTIONARY_REF
129 iokit.IORegistryEntryIDMatching.argtypes = [ctypes.c_uint64]
130 iokit.IORegistryEntryGetRegistryEntryID.restype = IO_RETURN
131 iokit.IORegistryEntryGetRegistryEntryID.argtypes = [
136 iokit.IOHIDDeviceCreate.restype = IO_HID_DEVICE_REF
137 iokit.IOHIDDeviceCreate.argtypes = [CF_ALLOCATOR_REF, IO_SERVICE_T]
138 iokit.IOHIDDeviceClose.restype = IO_RETURN
139 iokit.IOHIDDeviceClose.argtypes = [IO_HID_DEVICE_REF, ctypes.c_uint32]
140 iokit.IOHIDDeviceGetProperty.restype = CF_TYPE_REF
141 iokit.IOHIDDeviceGetProperty.argtypes = [IO_HID_DEVICE_REF, CF_STRING_REF]
142 iokit.IOHIDDeviceSetReport.restype = IO_RETURN
143 iokit.IOHIDDeviceSetReport.argtypes = [
150 iokit.IOHIDDeviceGetReport.restype = IO_RETURN
151 iokit.IOHIDDeviceGetReport.argtypes = [
159 iokit.IOServiceGetMatchingService.restype = IO_SERVICE_T
160 iokit.IOServiceGetMatchingService.argtypes = [MACH_PORT_T, CF_DICTIONARY_REF]
168 matching_dict = iokit.IORegistryEntryIDMatching(entry_id)
169 device_entry = iokit.IOServiceGetMatchingService(
177 self.handle = iokit.IOHIDDeviceCreate(K_CF_ALLOCATOR_DEFAULT, device_entry)
180 iokit.IOObjectRelease(device_entry)
183 result = iokit.IOHIDDeviceOpen(self.handle, 0)
189 iokit.IOHIDDeviceClose(self.handle, 0)
196 result = iokit.IOHIDDeviceGetReport(
212 result = iokit.IOHIDDeviceSetReport(
228 type_ref = iokit.IOHIDDeviceGetProperty(dev, cf_key)
254 io_service_obj = iokit.IOHIDDeviceGetService(device_handle)
256 result = iokit.IORegistryEntryGetRegistryEntryID(
267 hid_mgr = iokit.IOHIDManagerCreate(None, 0)
272 iokit.IOHIDManagerSetDeviceMatching(hid_mgr, None)
273 device_set_ref = iokit.IOHIDManagerCopyDevices(hid_mgr)
277 num = iokit.CFSetGetCount(device_set_ref)
279 iokit.CFSetGetValues(device_set_ref, devices)