From 6b006c021bfc000d770721881029ae742b072d75 Mon Sep 17 00:00:00 2001 From: Thomas A Date: Mon, 19 Jun 2023 11:30:55 -0700 Subject: [PATCH] Fix implicit-function-declaration --- CoreGraphics/include/CoreGraphics/CGPDFDictionary.h | 10 ++++++++++ CoreGraphics/include/CoreGraphics/CGRemoteOperation.h | 7 +++++++ CoreGraphics/include/CoreGraphics/CoreGraphics.h | 1 + CoreText/CTFontDescriptor.m | 2 ++ CoreText/CTParagraphStyle.m | 2 ++ 5 files changed, 22 insertions(+) diff --git a/CoreGraphics/include/CoreGraphics/CGPDFDictionary.h b/CoreGraphics/include/CoreGraphics/CGPDFDictionary.h index 54d269a5..3332ab53 100644 --- a/CoreGraphics/include/CoreGraphics/CGPDFDictionary.h +++ b/CoreGraphics/include/CoreGraphics/CGPDFDictionary.h @@ -1 +1,11 @@ +#ifndef COREGRAPHICS_CGPDFDICTIONARY_H +#define COREGRAPHICS_CGPDFDICTIONARY_H + +#include + typedef struct CGPDFDictionary *CGPDFDictionaryRef; +typedef void (*CGPDFDictionaryApplierFunction)(const char *key, CGPDFObjectRef value, void *info); + +void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CGPDFDictionaryApplierFunction function, void *info); + +#endif // COREGRAPHICS_CGPDFDICTIONARY_H \ No newline at end of file diff --git a/CoreGraphics/include/CoreGraphics/CGRemoteOperation.h b/CoreGraphics/include/CoreGraphics/CGRemoteOperation.h index 76764989..116c9b2b 100644 --- a/CoreGraphics/include/CoreGraphics/CGRemoteOperation.h +++ b/CoreGraphics/include/CoreGraphics/CGRemoteOperation.h @@ -55,6 +55,7 @@ typedef struct CGScreenUpdateMoveDelta { } CGScreenUpdateMoveDelta; typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t count, const CGRect *rects, void *userInfo); +typedef void (*CGScreenRefreshCallback)(uint32_t count, const CGRect *rects, void *userInfo); #define kCGEventFilterMaskPermitAllEvents (kCGEventFilterMaskPermitLocalMouseEvents | kCGEventFilterMaskPermitLocalKeyboardEvents | kCGEventFilterMaskPermitSystemDefinedEvents) @@ -62,4 +63,10 @@ typedef void (*CGScreenUpdateMoveCallback)(CGScreenUpdateMoveDelta delta, size_t extern CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo); extern void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo); +CGError CGRegisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo); +void CGUnregisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userInfo); +CGError CGWaitForScreenRefreshRects(CGRect * _Nullable *rects, uint32_t *count); +void CGReleaseScreenRefreshRects(CGRect *rects); +CGError CGWaitForScreenUpdateRects(CGScreenUpdateOperation requestedOperations, CGScreenUpdateOperation *currentOperation, CGRect * _Nullable *rects, size_t *rectCount, CGScreenUpdateMoveDelta *delta); + #endif diff --git a/CoreGraphics/include/CoreGraphics/CoreGraphics.h b/CoreGraphics/include/CoreGraphics/CoreGraphics.h index 96d26ecb..e25e6cb0 100644 --- a/CoreGraphics/include/CoreGraphics/CoreGraphics.h +++ b/CoreGraphics/include/CoreGraphics/CoreGraphics.h @@ -32,6 +32,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI #import #import #import +#import #include #include diff --git a/CoreText/CTFontDescriptor.m b/CoreText/CTFontDescriptor.m index cf68d33b..d5611dae 100644 --- a/CoreText/CTFontDescriptor.m +++ b/CoreText/CTFontDescriptor.m @@ -1,5 +1,7 @@ #import +#include + CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute) { printf("STUB %s\n", __PRETTY_FUNCTION__); diff --git a/CoreText/CTParagraphStyle.m b/CoreText/CTParagraphStyle.m index 8e98dceb..08419e1c 100644 --- a/CoreText/CTParagraphStyle.m +++ b/CoreText/CTParagraphStyle.m @@ -1,5 +1,7 @@ #import +#include + CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) { printf("STUB %s\n", __PRETTY_FUNCTION__); return nil;