mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
Fix implicit-function-declaration
This commit is contained in:
parent
b30c2be791
commit
6b006c021b
@ -1 +1,11 @@
|
||||
#ifndef COREGRAPHICS_CGPDFDICTIONARY_H
|
||||
#define COREGRAPHICS_CGPDFDICTIONARY_H
|
||||
|
||||
#include <CoreGraphics/CGPDFObject.h>
|
||||
|
||||
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
|
@ -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
|
||||
|
@ -32,6 +32,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
#import <CoreGraphics/CGShading.h>
|
||||
#import <CoreGraphics/CGWindowLevel.h>
|
||||
#import <CoreGraphics/CGWindow.h>
|
||||
#import <CoreGraphics/CGRemoteOperation.h>
|
||||
|
||||
#include <CoreGraphics/CGEvent.h>
|
||||
#include <CoreGraphics/CGPDFContext.h>
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <CoreText/CTFontDescriptor.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute)
|
||||
{
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
|
@ -1,5 +1,7 @@
|
||||
#import <CoreText/CTParagraphStyle.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) {
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
return nil;
|
||||
|
Loading…
Reference in New Issue
Block a user