this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply suggestions from code review

Co-authored-by: CuriousTommy <curioustommy@protonmail.com>

authored by

Lazerbeak12345
CuriousTommy
and committed by
Nathan Fritzer
ecfe4bb6 87c46883

+15 -16
+8 -8
src/frameworks/Carbon/HIToolbox/include/HIToolbox/CarbonEventsCore.h
··· 40 40 41 41 42 42 OSStatus CallNextEventHandler(EventHandlerCallRef a, EventRef b); 43 - OSStatus CreateEvent(CFAllocatorRef a, UInt32 b, UInt32 c, EventTime d, EventAttributes e, EventRef * f); 44 - UInt32 GetEventClass(EventRef a); 43 + OSStatus CreateEvent(CFAllocatorRef a, OSType b, UInt32 c, EventTime d, EventAttributes e, EventRef* f); 44 + OSType GetEventClass(EventRef a); 45 45 UInt32 GetEventKind(EventRef a); 46 - OSStatus GetEventParameter(EventRef a, EventParamName b, EventParamType c, EventParamType * d, UInt32 e, UInt32 * f, void * g); 46 + OSStatus GetEventParameter(EventRef a, EventParamName b, EventParamType c, EventParamType* d, ByteCount e, ByteCount* f, void* g); 47 47 48 - OSStatus GetMainEventQueue(); 49 - OSStatus InstallEventHandler(EventTargetRef a, EventHandlerUPP b, UInt32 c, const EventTypeSpec * d, void * e, EventHandlerRef * f); 48 + EventQueueRef GetMainEventQueue(); 49 + OSStatus InstallEventHandler(EventTargetRef a, EventHandlerUPP b, ItemCount c, const EventTypeSpec* d, void* e, EventHandlerRef* f); 50 50 51 51 52 - EventHandlerUPP NewEventHandlerUPP(EventHandlerProcPtr a); 52 + EventHandlerUPP NewEventHandlerUPP(EventHandlerProcPtr a); 53 53 OSStatus PostEventToQueue(EventQueueRef a, EventRef b, EventPriority c); 54 54 55 - OSStatus ReceiveNextEvent(UInt32 a, const EventTypeSpec * b, EventTimeout c, Boolean d, EventRef * e); 55 + OSStatus ReceiveNextEvent(ItemCount a, const EventTypeSpec* b, EventTimeout c, Boolean d, EventRef* e); 56 56 57 - OSStatus ReleaseEvent(EventRef a); 57 + void ReleaseEvent(EventRef a); 58 58 OSStatus RemoveEventHandler(EventHandlerRef a); 59 59 60 60 OSStatus SendEventToEventTarget(EventRef a, EventTargetRef b);
+7 -8
src/frameworks/Carbon/HIToolbox/src/CarbonEventsCore.c
··· 35 35 return 0; 36 36 } 37 37 38 - OSStatus CreateEvent(CFAllocatorRef a, UInt32 b, UInt32 c, EventTime d, EventAttributes e, EventRef * f) 38 + OSStatus CreateEvent(CFAllocatorRef a, OSType b, UInt32 c, EventTime d, EventAttributes e, EventRef* f) 39 39 { 40 40 if (verbose) puts("STUB: CreateEvent called"); 41 41 return 0; 42 42 } 43 43 44 - UInt32 GetEventClass(EventRef a) 44 + OSType GetEventClass(EventRef a) 45 45 { 46 46 if (verbose) puts("STUB: GetEventClass called"); 47 47 return 0; ··· 53 53 return 0; 54 54 } 55 55 56 - OSStatus GetEventParameter(EventRef a, EventParamName b, EventParamType c, EventParamType * d, UInt32 e, UInt32 * f, void * g) 56 + OSStatus GetEventParameter(EventRef a, EventParamName b, EventParamType c, EventParamType* d, ByteCount e, ByteCount* f, void* g) 57 57 { 58 58 if (verbose) puts("STUB: GetEventParameter called"); 59 59 return 0; 60 60 } 61 61 62 - OSStatus GetMainEventQueue() 62 + EventQueueRef GetMainEventQueue() 63 63 { 64 64 if (verbose) puts("STUB: GetMainEventQueue called"); 65 65 return 0; 66 66 } 67 67 68 - OSStatus InstallEventHandler(EventTargetRef a, EventHandlerUPP b, UInt32 c, const EventTypeSpec * d, void * e, EventHandlerRef * f) 68 + OSStatus InstallEventHandler(EventTargetRef a, EventHandlerUPP b, ItemCount c, const EventTypeSpec* d, void* e, EventHandlerRef* f) 69 69 { 70 70 if (verbose) puts("STUB: InstallEventHandler called"); 71 71 return 0; ··· 83 83 return 0; 84 84 } 85 85 86 - OSStatus ReceiveNextEvent(UInt32 a, const EventTypeSpec * b, EventTimeout c, Boolean d, EventRef * e) 86 + OSStatus ReceiveNextEvent(ItemCount a, const EventTypeSpec* b, EventTimeout c, Boolean d, EventRef* e) 87 87 { 88 88 if (verbose) puts("STUB: ReceiveNextEvent called"); 89 89 return 0; 90 90 } 91 91 92 - OSStatus ReleaseEvent(EventRef a) 92 + void ReleaseEvent(EventRef a) 93 93 { 94 94 if (verbose) puts("STUB: ReleaseEvent called"); 95 - return 0; 96 95 } 97 96 98 97 OSStatus RemoveEventHandler(EventHandlerRef a)