From: Jay Freeman (saurik) Date: Mon, 27 Jan 2014 17:56:39 +0000 (-0800) Subject: I had expected a compile error at some point :/. X-Git-Tag: v0.9.3401~1 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/b02fe60b005a3e9c719f23d4aee7c41833bdba8f I had expected a compile error at some point :/. --- diff --git a/Tweak.mm b/Tweak.mm index 1b99b5b..04f9b01 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -52,6 +52,10 @@ extern "C" { #include "SpringBoardAccess.h" } +typedef CFTypeRef IOHIDEventRef; +typedef CFTypeRef IOHIDEventSystemClientRef; +typedef CFTypeRef IOHIDEventSystemConnectionRef; + MSClassHook(BKAccessibility) MSClassHook(UIApplication) @@ -95,7 +99,7 @@ MSClassHook(UIApplication) @end @interface BKHIDClientConnectionManager : NSObject -- () clientForTaskPort:(mach_port_t)port; +- (IOHIDEventSystemConnectionRef) clientForTaskPort:(mach_port_t)port; @end @interface BKAccessibility : NSObject @@ -138,10 +142,6 @@ extern "C" kern_return_t IOMobileFramebufferSwapSetLayer( extern "C" void IOMobileFramebufferGetDisplaySize(IOMobileFramebufferRef connect, CGSize *size); extern "C" void IOMobileFramebufferIsMainDisplay(IOMobileFramebufferRef connect, int *main); -typedef CFTypeRef IOHIDEventRef; -typedef CFTypeRef IOHIDEventSystemClientRef; -typedef CFTypeRef IOHIDEventSystemConnectionRef; - extern "C" { IOHIDEventRef IOHIDEventCreateKeyboardEvent(CFAllocatorRef allocator, uint64_t time, uint16_t page, uint16_t usage, Boolean down, IOHIDEventOptionBits flags);