| 74 | } |
| 75 | |
| 76 | class CIntelBTPatcher { |
| 77 | public: |
| 78 | bool init(); |
| 79 | void free(); |
| 80 | |
| 81 | void processKext(KernelPatcher &patcher, size_t index, mach_vm_address_t address, size_t size); |
| 82 | static IOReturn newFindQueueRequest(void *that, unsigned short arg1, void *addr, unsigned short arg2, bool arg3, void **hciRequestPtr); |
| 83 | |
| 84 | static IOReturn newHostDeviceRequest(void *that, IOService *provider, StandardUSB::DeviceRequest &request, void *data, IOMemoryDescriptor *descriptor, unsigned int &length,IOUSBHostCompletion *completion, unsigned int timeout); |
| 85 | |
| 86 | |
| 87 | mach_vm_address_t oldFindQueueRequest {}; |
| 88 | mach_vm_address_t oldHostDeviceRequest {}; |
| 89 | |
| 90 | private: |
| 91 | static bool _randomAddressInit; |
| 92 | }; |
| 93 | |
| 94 | #endif /* IntelBTPatcher_h */ |
nothing calls this directly
no outgoing calls
no test coverage detected