]> git.saurik.com Git - veency.git/commitdiff
I had expected a compile error at some point :/.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Jan 2014 17:56:39 +0000 (09:56 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Jan 2014 17:57:31 +0000 (09:57 -0800)
Tweak.mm

index 1b99b5ba467d52588cd634d3746c20bf01ecaf6c..04f9b016e384ba442815c9e56779c7a1f778c47a 100644 (file)
--- 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);