Skip to content

CoreFoundation watchOS xcode14.0 beta4

Chris Hamons edited this page Aug 29, 2022 · 3 revisions

#CoreFoundation.framework https://github.com/xamarin/xamarin-macios/pull/15799

diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2022-06-30 21:54:06.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2022-07-22 09:59:22.000000000 -0400
@@ -312,6 +312,12 @@
 # define CF_SWIFT_NAME(_name)
 #endif
 
+#if __has_attribute(__swift_attr__)
+#  define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg) __attribute__((__swift_attr__("@_unavailableFromAsync(message: \"" msg "\")")))
+#else
+#  define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)
+#endif
+
 #if __has_attribute(noescape)
 #define CF_NOESCAPE __attribute__((noescape))
 #else
@@ -726,6 +732,5 @@
 
 CF_EXTERN_C_END
 
-#include <CoreFoundation/CFCGTypes.h>
 #endif /* ! __COREFOUNDATION_CFBASE__ */
 
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	2022-06-30 00:37:54.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	2022-07-21 01:44:49.000000000 -0400
@@ -92,4 +92,33 @@
     CGFloat tx, ty;
 };
 
+#define CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS
+
+/*                      |------------------ CGAffineTransformComponents ----------------|
+ *
+ *      | a  b  0 |     | sx  0  0 |   |  1  0  0 |   | cos(t)  sin(t)  0 |   | 1  0  0 |
+ *      | c  d  0 |  =  |  0 sy  0 | * | sh  1  0 | * |-sin(t)  cos(t)  0 | * | 0  1  0 |
+ *      | tx ty 1 |     |  0  0  1 |   |  0  0  1 |   |   0       0     1 |   | tx ty 1 |
+ *  CGAffineTransform      scale           shear            rotation          translation
+ */
+typedef struct CGAffineTransformComponents CGAffineTransformComponents
+    CF_SWIFT_NAME(CGAffineTransform.Components);
+
+struct CGAffineTransformComponents {
+
+    /* initial scaling in X and Y dimensions. {sx,sy} */
+    /* Negative values indicate the image has been flipped in this dimension. */
+    CGSize      scale;
+
+    /* shear distortion (sh). Turns rectangles to parallelograms. 0 for no shear. Typically 0. */
+    CGFloat     horizontalShear;
+
+    /* Rotation angle in radians about the origin. (t) Sign convention for clockwise rotation */
+    /* may differ between various Apple frameworks based on origin placement. Please see discussion. */
+    CGFloat     rotation;
+
+    /* Displacement from the origin (ty, ty) */
+    CGVector    translation;
+};
+
 #endif /* ! __COREFOUNDATION_CFCGTYPES__ */
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h	2022-06-30 22:07:51.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h	2022-07-22 10:05:15.000000000 -0400
@@ -35,7 +35,6 @@
 #define __COREFOUNDATION_CFERROR__ 1
 
 #include <CoreFoundation/CFBase.h>
-#include <CoreFoundation/CFString.h>
 #include <CoreFoundation/CFDictionary.h>
 
 CF_IMPLICIT_BRIDGING_ENABLED
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h	2022-06-30 22:07:51.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h	2022-07-22 09:59:22.000000000 -0400
@@ -55,6 +55,7 @@
 
 CF_EXPORT CFTypeID CFRunLoopGetTypeID(void);
 
+CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopGetCurrent cannot be used from async contexts.")
 CF_EXPORT CFRunLoopRef CFRunLoopGetCurrent(void);
 CF_EXPORT CFRunLoopRef CFRunLoopGetMain(void);
 
@@ -66,8 +67,12 @@
 
 CF_EXPORT CFAbsoluteTime CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFRunLoopMode mode);
 
+CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopRun cannot be used from async contexts.")
 CF_EXPORT void CFRunLoopRun(void);
+
+CF_SWIFT_UNAVAILABLE_FROM_ASYNC("CFRunLoopRunInMode cannot be used from async contexts.")
 CF_EXPORT CFRunLoopRunResult CFRunLoopRunInMode(CFRunLoopMode mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
+
 CF_EXPORT Boolean CFRunLoopIsWaiting(CFRunLoopRef rl);
 CF_EXPORT void CFRunLoopWakeUp(CFRunLoopRef rl);
 CF_EXPORT void CFRunLoopStop(CFRunLoopRef rl);
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h	2022-06-30 09:28:58.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h	2022-07-22 09:59:22.000000000 -0400
@@ -16,6 +16,7 @@
 #include <CoreFoundation/CFDictionary.h>
 #include <CoreFoundation/CFCharacterSet.h>
 #include <CoreFoundation/CFLocale.h>
+#include <CoreFoundation/CFError.h>
 #include <stdarg.h>
 
 CF_IMPLICIT_BRIDGING_ENABLED
@@ -276,6 +277,12 @@
 CF_EXPORT
 CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) CF_FORMAT_FUNCTION(3,0);
 
+CF_EXPORT
+CFStringRef CFStringCreateStringWithValidatedFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef validFormatSpecifiers, CFStringRef format, CFErrorRef *errorPtr, ...) API_AVAILABLE(macos(13.0), ios(16.0), watchos(8.0), tvos(8.0)) CF_FORMAT_FUNCTION(3, 6) CF_SWIFT_UNAVAILABLE("Use string interpolations instead");
+
+CF_EXPORT
+CFStringRef CFStringCreateStringWithValidatedFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef validFormatSpecifiers, CFStringRef format, va_list arguments, CFErrorRef *errorPtr) API_AVAILABLE(macos(13.0), ios(16.0), watchos(8.0), tvos(8.0)) CF_FORMAT_FUNCTION(3, 0) CF_SWIFT_UNAVAILABLE("Use string interpolations instead");
+
 /* Functions to create mutable strings. "maxLength", if not 0, is a hard bound on the length of the string. If 0, there is no limit on the length.
 */
 CF_EXPORT
Clone this wiki locally