peachsim 0.1.1674 → 0.1.1684
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/control.ts +13 -1
- package/cli/commands/coverage-swift.ts +83 -27
- package/cli/commands/coverage.ts +219 -20
- package/cli/commands/detect.ts +10 -6
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/wait-ready.ts +7 -0
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/index.ts +11 -1
- package/detox/jest-environment.cjs +14 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +3274 -1663
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +6 -4
- package/dist-lib/detox/jest-environment.cjs +14 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2407 -1126
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2879 -1598
- package/dist-lib/host/fetch-proxy-handler.cjs +18 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1904 -741
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6215 -4283
- package/dist-lib/native-app-identity-project.cjs +31 -6
- package/dist-lib/native-app-identity-project.mjs +31 -6
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -23
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +134 -78
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +2 -1
- package/dist-lib/sdk.mjs +2 -1
- package/dist-lib/skills.cjs +3570 -2160
- package/dist-lib/swift-compile.cjs +473 -351
- package/dist-lib/swift-compile.mjs +471 -349
- package/dist-lib/swift-package.cjs +36 -6
- package/dist-lib/swift-package.mjs +35 -6
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2418 -1132
- package/dist-lib/vite.cjs +1907 -766
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +2 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +51 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +21 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
- package/sdk/ios/usr/include/arm/param.h +151 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +3 -0
- package/sdk/ios/usr/include/dlfcn.h +1 -2
- package/sdk/ios/usr/include/machine/param.h +42 -0
- package/sdk/ios/usr/include/net/if.h +1 -2
- package/sdk/ios/usr/include/peach/pthread.h +4 -4
- package/sdk/ios/usr/include/pthread/qos.h +304 -0
- package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
- package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -0
- package/sdk/ios/usr/include/sys/param.h +235 -0
- package/sdk/ios/usr/include/sys/proc.h +1 -0
- package/sdk/ios/usr/include/sys/qos.h +151 -12
- package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
- package/sdk/ios/wasm/include/fcntl.h +11 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/include/machine/_types.h +153 -0
- package/sdk/ios/wasm/include/machine/endian.h +2 -0
- package/sdk/ios/wasm/include/machine/limits.h +2 -0
- package/sdk/ios/wasm/include/machine/types.h +30 -0
- package/sdk/ios/wasm/include/poll.h +8 -0
- package/sdk/ios/wasm/include/pthread.h +50 -0
- package/sdk/ios/wasm/include/signal.h +72 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +10 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
- package/sdk/ios/wasm/include/sys/mman.h +122 -0
- package/sdk/ios/wasm/include/sys/select.h +37 -0
- package/sdk/ios/wasm/include/sys/signal.h +259 -0
- package/sdk/ios/wasm/include/sys/socket.h +8 -0
- package/sdk/ios/wasm/include/sys/types.h +14 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
- package/sdk/ios/wasm/include/sys/uio.h +11 -0
- package/sdk/ios/wasm/include/sys/wait.h +89 -0
- package/sdk/ios/wasm/include/time.h +8 -0
- package/sdk/ios/wasm/include/unistd.h +17 -0
- package/src/bridge-contract.ts +2 -0
- package/src/chromium-admission.ts +10 -5
- package/src/device-catalog.ts +4 -4
- package/src/host/fetch-proxy-handler.ts +20 -0
- package/src/metro-plugin.ts +5 -2
- package/src/nitro-adapter.lock.json +6 -6
- package/src/nitro-compile.ts +63 -2
- package/src/numbered-lock.ts +72 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
- package/src/react-native-coverage/capability-source-references.ts +50 -13
- package/src/react-native-coverage/native-source-credit.ts +126 -0
- package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
- package/src/react-native-coverage/native-surface.ts +49 -0
- package/src/react-native-coverage/verified-reach.ts +22 -2
- package/src/runtime-assets.ts +17 -0
- package/src/swift-compile.ts +84 -48
- package/src/swift-coverage/indexing.ts +17 -1
- package/src/swift-coverage/sdk.ts +71 -0
- package/src/swift-coverage/source.ts +74 -2
- package/src/swift-coverage/types.ts +6 -0
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-host.ts +133 -14
- package/src/swift-objc-compile.ts +6 -21
- package/src/swift-objc-metadata.ts +2 -8
- package/src/swift-objc-platform.ts +53 -0
- package/src/swift-objc-standin.ts +45 -1
- package/src/swift-package-manifest.ts +48 -3
- package/src/swift-package.ts +59 -9
- package/src/swift-packages.ts +157 -44
- package/src/swift-source-pods.ts +288 -0
- package/src/swift-toolchain.ts +32 -10
- package/src/vite-plugin-one.ts +5 -4
- package/src/worker-system-chunks.ts +7 -1
- package/src/xcode-project.ts +40 -11
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/// @header MFMessageComposeViewController
|
|
2
|
+
/// @abstract The MFMessageComposeViewController class provides an interface for editing and sending a text
|
|
3
|
+
/// message.
|
|
4
|
+
/// @discussion MFMessageComposeViewController is used for implementing a simple interface for users to enter
|
|
5
|
+
/// and send a text message including multimedia attachments.
|
|
6
|
+
/// @copyright Copyright 2009 - 2016 Apple Inc. All rights reserved.
|
|
7
|
+
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/// @enum MessageComposeResult
|
|
13
|
+
/// @abstract Composition result sent to the delegate upon user completion.
|
|
14
|
+
/// @discussion This result will inform the client of the user's message composition action. If the
|
|
15
|
+
/// user cancels the composition, <tt>MessageComposeResultCancelled</tt> will be sent to the delegate.
|
|
16
|
+
/// Typically <tt>MessageComposeResultSent</tt> will be sent, but <tt>MessageComposeResultFailed</tt> will
|
|
17
|
+
/// be sent in the case of failure. </p>Send may only be interpreted as a successful queueing of
|
|
18
|
+
/// the message for later sending. The actual send will occur when the device is able to send.
|
|
19
|
+
/// @constant MessageComposeResultCancelled User canceled the composition.
|
|
20
|
+
/// @constant MessageComposeResultSent User successfully sent/queued the message.
|
|
21
|
+
/// @constant MessageComposeResultFailed User's attempt to save or send was unsuccessful.
|
|
22
|
+
|
|
23
|
+
typedef NS_ENUM(NSInteger, MessageComposeResult) {
|
|
24
|
+
MessageComposeResultCancelled,
|
|
25
|
+
MessageComposeResultSent,
|
|
26
|
+
MessageComposeResultFailed
|
|
27
|
+
} API_AVAILABLE(ios(4.0));
|
|
28
|
+
|
|
29
|
+
/// @constant MFMessageComposeViewControllerAttachmentURL The url for the given attachment.
|
|
30
|
+
extern NSString *const MFMessageComposeViewControllerAttachmentURL;
|
|
31
|
+
|
|
32
|
+
/// @constant MFMessageComposeViewControllerAttachmentAlternateFilename The alternate filename for the given attachment.
|
|
33
|
+
extern NSString *const MFMessageComposeViewControllerAttachmentAlternateFilename;
|
|
34
|
+
|
|
35
|
+
/// @const MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification
|
|
36
|
+
/// @abstract Notification posted when the value of <tt>+[MFMessageComposeViewController canSendText]</tt> has changed.
|
|
37
|
+
/// @discussion This notification is posted when the value of <tt>+[MFMessageComposeViewController canSendText]</tt>
|
|
38
|
+
/// has changed. Clients should invalidate any caches and update UI as appropriate.
|
|
39
|
+
extern NSString *const MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification API_AVAILABLE(ios(5.0));
|
|
40
|
+
|
|
41
|
+
/// @const MFMessageComposeViewControllerTextMessageAvailabilityKey
|
|
42
|
+
/// @abstract UserInfo key for MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification
|
|
43
|
+
/// containing the value of <tt>+[MFMessageComposeViewController canSendText]</tt>
|
|
44
|
+
/// @discussion The value of this key is an NSNumber containing a BOOL value. This value matches
|
|
45
|
+
/// the result of <tt>+[MFMessageComposeViewController canSendText]</tt>.
|
|
46
|
+
extern NSString *const MFMessageComposeViewControllerTextMessageAvailabilityKey API_AVAILABLE(ios(5.0));
|
|
47
|
+
|
|
48
|
+
@class MSMessage;
|
|
49
|
+
@protocol MFMessageComposeViewControllerDelegate;
|
|
50
|
+
|
|
51
|
+
/// @class MFMessageComposeViewController
|
|
52
|
+
/// @abstract The MFMessageComposeViewController class provides an interface for editing and sending a message.
|
|
53
|
+
/// @discussion The MFMessageComposeViewController class manages all user interaction. The client needs to set
|
|
54
|
+
/// the recipient or recipients. The client may also set the body of the message. After setup, the
|
|
55
|
+
/// client needs to only display the view.
|
|
56
|
+
/// <p>The provided delegate will be informed of the user's composition completion and how they chose
|
|
57
|
+
/// to complete the operation.</p>
|
|
58
|
+
/// <p>Prior to use, clients should verify the user has set up the device for sending messages via
|
|
59
|
+
/// <tt>+[MFMessageComposeViewController canSendText]</tt>.</p>
|
|
60
|
+
API_AVAILABLE(ios(4.0))
|
|
61
|
+
@interface MFMessageComposeViewController : UINavigationController {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/// @method canSendText
|
|
65
|
+
/// @abstract Returns <tt>YES</tt> if the user has set up the device for sending text only messages.
|
|
66
|
+
/// @discussion If the return value is YES, the client can set the recipients and body of the message.
|
|
67
|
+
/// If the return value is NO, the client may notify the user of the failure, or the
|
|
68
|
+
/// client may open an SMS URL via <tt>-[UIApplication openURL:]</tt>.
|
|
69
|
+
+ (BOOL)canSendText;
|
|
70
|
+
|
|
71
|
+
/// @method canSendSubject
|
|
72
|
+
/// @abstract Returns <tt>YES</tt><tt>if the user has set up the device for including subjects in messages.</tt>.
|
|
73
|
+
+ (BOOL)canSendSubject API_AVAILABLE(ios(7.0));
|
|
74
|
+
|
|
75
|
+
/// @method canSendAttachments
|
|
76
|
+
/// @abstract Returns <tt>YES</tt><tt>if the user has set up the device for including attachments in messages.</tt>.
|
|
77
|
+
+ (BOOL)canSendAttachments API_AVAILABLE(ios(7.0));
|
|
78
|
+
|
|
79
|
+
/// @method isSupportedAttachmentUTI:
|
|
80
|
+
/// @abstract Returns <tt>YES</tt>if the attachment at the specified URL could be accepted by the current composition.
|
|
81
|
+
/// @discussion If the return value is YES, the UTI is acceptable for attachment to a message, a return value of NO
|
|
82
|
+
/// indicates that the given UTI is unsupported.
|
|
83
|
+
+ (BOOL)isSupportedAttachmentUTI:(NSString *)uti API_AVAILABLE(ios(7.0));
|
|
84
|
+
|
|
85
|
+
/// @property messageComposeDelegate
|
|
86
|
+
/// @abstract This property is the delegate for the MFMessageComposeViewController method callbacks.
|
|
87
|
+
@property (nonatomic, nullable, weak) id<MFMessageComposeViewControllerDelegate> messageComposeDelegate;
|
|
88
|
+
|
|
89
|
+
/// @method disableUserAttachments;
|
|
90
|
+
/// @abstract Calling this method will disable the camera/attachment button in the view controller. After the controller has been presented,
|
|
91
|
+
/// this call will have no effect. The camera / attachment button is visible by default.
|
|
92
|
+
- (void)disableUserAttachments API_AVAILABLE(ios(7.0));
|
|
93
|
+
|
|
94
|
+
/// @property recipients
|
|
95
|
+
/// @abstract This property sets the initial value of the To field for the message to the specified addresses.
|
|
96
|
+
/// @discussion This property will set the initial value of the To field for the message from an NSArray of
|
|
97
|
+
/// NSString instances specifying the message addresses of recipients. This should be called prior
|
|
98
|
+
/// to display.
|
|
99
|
+
/// <p>After the view has been presented to the user, this property will no longer change the value.</p>
|
|
100
|
+
@property (nonatomic, nullable, copy) NSArray<NSString *> *recipients;
|
|
101
|
+
|
|
102
|
+
/// @property body
|
|
103
|
+
/// @abstract This property sets the initial value of the body of the message to the specified content.
|
|
104
|
+
/// @discussion This property will set the initial value of the body of the message. This should be called prior
|
|
105
|
+
/// to display.
|
|
106
|
+
/// <p>After the view has been presented to the user, this property will no longer change the value.</p>
|
|
107
|
+
@property (nonatomic, nullable, copy) NSString *body;
|
|
108
|
+
|
|
109
|
+
/// @property subject
|
|
110
|
+
/// @abstract This property sets the initial value of the subject of the message to the specified content.
|
|
111
|
+
/// @discussion This property will set the initial value of the subject of the message. This should be called prior
|
|
112
|
+
/// to display.
|
|
113
|
+
/// <p>After the view has been presented to the user, this property will no longer change the value.</p>
|
|
114
|
+
@property (nonatomic, nullable, copy) NSString *subject API_AVAILABLE(ios(7.0));
|
|
115
|
+
|
|
116
|
+
/// @property attachments
|
|
117
|
+
/// @abstract This property returns an NSArray of NSDictionaries describing the properties of the current attachments.
|
|
118
|
+
/// @discussion This property returns an NSArray of NSDictionaries describing the properties of the current attachments.
|
|
119
|
+
/// See MFMessageComposeViewControllerAttachmentURL, MFMessageComposeViewControllerAttachmentAlternateFilename.
|
|
120
|
+
@property (nonatomic, nullable, readonly, copy) NSArray<NSDictionary *> *attachments API_AVAILABLE(ios(7.0));
|
|
121
|
+
|
|
122
|
+
/// @property message
|
|
123
|
+
/// @abstract This property sets the initial interactive message.
|
|
124
|
+
@property (nonatomic, nullable, copy) MSMessage *message API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos);
|
|
125
|
+
|
|
126
|
+
/// @method addAttachmentURL:withAlternateFilename:
|
|
127
|
+
/// @abstract Returns <tt>YES</tt>if the attachment at the specified URL was added to the composition successfully.
|
|
128
|
+
/// @discussion If the return value is YES, the attachment was added to the composition. If the return value is NO,
|
|
129
|
+
/// the attachment was not added to the composition. All attachment URLs must be file urls. The file
|
|
130
|
+
/// URL must not be NIL. The alternate filename will be display to the user in leiu of the attachments URL.
|
|
131
|
+
/// The alternate filename may be NIL.
|
|
132
|
+
- (BOOL)addAttachmentURL:(NSURL *)attachmentURL withAlternateFilename:(nullable NSString *)alternateFilename API_AVAILABLE(ios(7.0));
|
|
133
|
+
|
|
134
|
+
/// @method addAttachmentData:typeIdentifier:filename:
|
|
135
|
+
/// @abstract Returns <tt>YES</tt>if the attachment was added to the composition successfully.
|
|
136
|
+
/// @discussion If the return value is YES, the attachment was added to the composition. If the return value is NO,
|
|
137
|
+
/// the attachment was not added to the composition. The data and typeIdentifer must be non-nil. typeIdentifier should be a valid Uniform Type Identifier.
|
|
138
|
+
- (BOOL)addAttachmentData:(NSData *)attachmentData typeIdentifier:(NSString *)uti filename:(NSString *)filename API_AVAILABLE(ios(7.0));
|
|
139
|
+
|
|
140
|
+
/// @method insertCollaborationItemProvider:
|
|
141
|
+
/// @param itemProvider created from ShareSheet
|
|
142
|
+
/// @abstract Returns <tt>YES</tt> if the item provider was added to the composition successfully.
|
|
143
|
+
/// @discussion If the return value is YES, the itemProvider was added to the composition. If the return value is NO,
|
|
144
|
+
/// the itemProvider was not added to the composition. The itemProvider must be non-nil.
|
|
145
|
+
- (BOOL)insertCollaborationItemProvider:(NSItemProvider *)itemProvider API_AVAILABLE(macos(13.0), ios(16.0));
|
|
146
|
+
|
|
147
|
+
@end
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/// @protocol MFMessageComposeViewControllerDelegate
|
|
151
|
+
/// @abstract Protocol for delegate callbacks to MFMessageComposeViewControllerDelegate instances.
|
|
152
|
+
/// @discussion This protocol will be implemented by delegates of MFMessageComposeViewController instances.
|
|
153
|
+
/// It will be called at various times while the user is composing, sending, or canceling
|
|
154
|
+
/// message composition.
|
|
155
|
+
@protocol MFMessageComposeViewControllerDelegate <NSObject>
|
|
156
|
+
@required
|
|
157
|
+
/// @method messageComposeViewController:didFinishWithResult:
|
|
158
|
+
/// @abstract Delegate callback which is called upon user's completion of message composition.
|
|
159
|
+
/// @discussion This delegate callback will be called when the user completes the message composition.
|
|
160
|
+
/// How the user chose to complete this task will be given as one of the parameters to the
|
|
161
|
+
/// callback. Upon this call, the client should remove the view associated with the controller,
|
|
162
|
+
/// typically by dismissing modally.
|
|
163
|
+
/// @param controller The MFMessageComposeViewController instance which is returning the result.
|
|
164
|
+
/// @param result MessageComposeResult indicating how the user chose to complete the composition process.
|
|
165
|
+
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result;
|
|
166
|
+
|
|
167
|
+
@end
|
|
168
|
+
|
|
169
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MessageUI.h
|
|
3
|
+
* MessageUI
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2009, 2010 Apple Inc. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#import <MessageUI/MFComposeAssistantViewController.h>
|
|
10
|
+
#import <MessageUI/MFMailComposeControllerDeferredAction.h>
|
|
11
|
+
#import <MessageUI/MFMailComposeViewController.h>
|
|
12
|
+
#import <MessageUI/MFMailDraft.h>
|
|
13
|
+
#import <MessageUI/MFMessageComposeViewController.h>
|
|
@@ -20,6 +20,7 @@ UIKIT_EXTERN NSNotificationName const UIApplicationWillEnterForegroundNotificati
|
|
|
20
20
|
UIKIT_EXTERN NSNotificationName const UIApplicationDidEnterBackgroundNotification __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,unavailable))) NS_SWIFT_NONISOLATED;
|
|
21
21
|
UIKIT_EXTERN NSNotificationName const UIApplicationDidFinishLaunchingNotification;
|
|
22
22
|
UIKIT_EXTERN NSNotificationName const UIApplicationDidBecomeActiveNotification;
|
|
23
|
+
UIKIT_EXTERN NSNotificationName const UIApplicationWillResignActiveNotification __attribute__((availability(watchos,unavailable))) NS_SWIFT_NONISOLATED;
|
|
23
24
|
typedef NS_OPTIONS(NSUInteger, UIRectCorner) {
|
|
24
25
|
UIRectCornerTopLeft = 1 << 0,
|
|
25
26
|
UIRectCornerTopRight = 1 << 1,
|
|
@@ -253,6 +254,8 @@ NS_SWIFT_UI_ACTOR @interface UIViewController : UIResponder <NSCoding, UITraitEn
|
|
|
253
254
|
@property (null_resettable, nonatomic, strong) UIView *view;
|
|
254
255
|
- (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^ _Nullable)(void))completion;
|
|
255
256
|
- (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^ _Nullable)(void))completion;
|
|
257
|
+
- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
|
|
258
|
+
- (void)dismissModalViewControllerAnimated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
|
|
256
259
|
- (void)viewDidLoad;
|
|
257
260
|
- (void)viewWillAppear:(BOOL)animated;
|
|
258
261
|
- (void)viewDidAppear:(BOOL)animated;
|
|
@@ -301,6 +304,7 @@ NS_SWIFT_UI_ACTOR @interface UIScene : UIResponder
|
|
|
301
304
|
@end
|
|
302
305
|
NS_SWIFT_UI_ACTOR @interface UIWindowScene : UIScene
|
|
303
306
|
@property (nonatomic, readonly) NSArray<UIWindow *> *windows;
|
|
307
|
+
@property (nonatomic, readonly, strong, nullable) UIWindow *keyWindow __attribute__((availability(ios,introduced=15.0))) __attribute__((availability(watchos,unavailable)));
|
|
304
308
|
@end
|
|
305
309
|
@interface UIWindowScene (StatusBarManager)
|
|
306
310
|
@property (nonatomic, readonly, nullable) UIStatusBarManager *statusBarManager __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable)));
|
|
@@ -308,10 +312,13 @@ NS_SWIFT_UI_ACTOR @interface UIWindowScene : UIScene
|
|
|
308
312
|
@interface UIStatusBarManager : NSObject
|
|
309
313
|
@property (nonatomic, readonly) CGRect statusBarFrame;
|
|
310
314
|
@end
|
|
315
|
+
@protocol UIApplicationDelegate;
|
|
311
316
|
NS_SWIFT_UI_ACTOR @interface UIApplication : UIResponder
|
|
312
317
|
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^ __nullable NS_SWIFT_UI_ACTOR)(void))handler __attribute__((availability(ios,introduced=4.0))) NS_REQUIRES_SUPER NS_SWIFT_NONISOLATED;
|
|
313
318
|
@property (class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("");
|
|
319
|
+
@property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate;
|
|
314
320
|
@property(nonatomic, readonly) NSSet<UIScene *> *connectedScenes __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable)));
|
|
321
|
+
@property(nonatomic,readonly) NSArray<__kindof UIWindow *> *windows __attribute__((availability(ios,introduced=2.0,deprecated=15.0,message="Use UIWindowScene.windows on a relevant window scene instead"), availability(visionos,introduced=1.0,deprecated=1.0,message="Use UIWindowScene.windows on a relevant window scene instead"))) __attribute__((availability(watchos,unavailable)));
|
|
315
322
|
@property(nullable, nonatomic,readonly) UIWindow *keyWindow __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes"))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
|
|
316
323
|
@property(nonatomic,readonly) CGRect statusBarFrame __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the statusBarManager property of the window scene instead."))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(visionos,unavailable), availability(watchos,unavailable)));
|
|
317
324
|
@property(nonatomic,readonly) UIApplicationState applicationState __attribute__((availability(ios,introduced=4.0)));
|
|
@@ -319,6 +326,8 @@ NS_SWIFT_UI_ACTOR @interface UIApplication : UIResponder
|
|
|
319
326
|
- (void)endBackgroundTask:(UIBackgroundTaskIdentifier)identifier __attribute__((availability(ios,introduced=4.0))) NS_REQUIRES_SUPER NS_SWIFT_NONISOLATED;
|
|
320
327
|
@end
|
|
321
328
|
@protocol UIApplicationDelegate <NSObject>
|
|
329
|
+
@optional
|
|
330
|
+
@property (nullable, nonatomic, strong) UIWindow *window __attribute__((availability(ios,introduced=5.0)));
|
|
322
331
|
@end
|
|
323
332
|
NS_SWIFT_UI_ACTOR @interface UIControl : UIView
|
|
324
333
|
@property(nonatomic,readonly) UIControlState state;
|
|
@@ -743,6 +752,7 @@ __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(wa
|
|
|
743
752
|
@end
|
|
744
753
|
__attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR @interface UIDevice : NSObject
|
|
745
754
|
@property(class, nonatomic, readonly) UIDevice *currentDevice;
|
|
755
|
+
@property(nonatomic,readonly,strong) NSString *systemName;
|
|
746
756
|
@property(nonatomic,readonly,strong) NSString *systemVersion;
|
|
747
757
|
@property(nonatomic,readonly,strong) NSString *model;
|
|
748
758
|
@property(nullable, nonatomic,readonly,strong) NSUUID *identifierForVendor __attribute__((availability(ios,introduced=6.0)));
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000-2010 Apple Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/*-
|
|
5
|
+
* Copyright (c) 1990, 1993
|
|
6
|
+
* The Regents of the University of California. All rights reserved.
|
|
7
|
+
* (c) UNIX System Laboratories, Inc.
|
|
8
|
+
* All or some portions of this file are derived from material licensed
|
|
9
|
+
* to the University of California by American Telephone and Telegraph
|
|
10
|
+
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
|
11
|
+
* the permission of UNIX System Laboratories, Inc.
|
|
12
|
+
*
|
|
13
|
+
* Redistribution and use in source and binary forms, with or without
|
|
14
|
+
* modification, are permitted provided that the following conditions
|
|
15
|
+
* are met:
|
|
16
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
17
|
+
* notice, this list of conditions and the following disclaimer.
|
|
18
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
19
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
20
|
+
* documentation and/or other materials provided with the distribution.
|
|
21
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
22
|
+
* must display the following acknowledgement:
|
|
23
|
+
* This product includes software developed by the University of
|
|
24
|
+
* California, Berkeley and its contributors.
|
|
25
|
+
* 4. Neither the name of the University nor the names of its contributors
|
|
26
|
+
* may be used to endorse or promote products derived from this software
|
|
27
|
+
* without specific prior written permission.
|
|
28
|
+
*
|
|
29
|
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
30
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
31
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
32
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
33
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
34
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
35
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
36
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
37
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
38
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
39
|
+
* SUCH DAMAGE.
|
|
40
|
+
*
|
|
41
|
+
* @(#)param.h 8.1 (Berkeley) 4/4/95
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* Machine dependent constants for ARM
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
#ifndef _ARM_PARAM_H_
|
|
49
|
+
#define _ARM_PARAM_H_
|
|
50
|
+
|
|
51
|
+
#if defined (__arm__) || defined (__arm64__)
|
|
52
|
+
|
|
53
|
+
#include <arm/_param.h>
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Round p (pointer or byte index) up to a correctly-aligned value for all
|
|
57
|
+
* data types (int, long, ...). The result is unsigned int and must be
|
|
58
|
+
* cast to any desired pointer type.
|
|
59
|
+
*/
|
|
60
|
+
#define ALIGNBYTES __DARWIN_ALIGNBYTES
|
|
61
|
+
#define ALIGN(p) __DARWIN_ALIGN(p)
|
|
62
|
+
|
|
63
|
+
#define NBPG 4096 /* bytes/page */
|
|
64
|
+
#define PGOFSET (NBPG-1) /* byte offset into page */
|
|
65
|
+
#define PGSHIFT 12 /* LOG2(NBPG) */
|
|
66
|
+
|
|
67
|
+
#define DEV_BSIZE 512
|
|
68
|
+
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
|
|
69
|
+
#define BLKDEV_IOSIZE 2048
|
|
70
|
+
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
|
|
71
|
+
|
|
72
|
+
#define CLSIZE 1
|
|
73
|
+
#define CLSIZELOG2 0
|
|
74
|
+
|
|
75
|
+
/*
|
|
76
|
+
* Constants related to network buffer management.
|
|
77
|
+
* MCLBYTES must be no larger than CLBYTES (the software page size), and,
|
|
78
|
+
* on machines that exchange pages of input or output buffers with mbuf
|
|
79
|
+
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
|
|
80
|
+
* of the hardware page size.
|
|
81
|
+
*/
|
|
82
|
+
#define MSIZESHIFT 8 /* 256 */
|
|
83
|
+
#define MSIZE (1 << MSIZESHIFT) /* size of an mbuf */
|
|
84
|
+
#define MCLSHIFT 11 /* 2048 */
|
|
85
|
+
#define MCLBYTES (1 << MCLSHIFT) /* size of an mbuf cluster */
|
|
86
|
+
#define MBIGCLSHIFT 12 /* 4096 */
|
|
87
|
+
#define MBIGCLBYTES (1 << MBIGCLSHIFT) /* size of a big cluster */
|
|
88
|
+
#define M16KCLSHIFT 14 /* 16384 */
|
|
89
|
+
#define M16KCLBYTES (1 << M16KCLSHIFT) /* size of a jumbo cluster */
|
|
90
|
+
|
|
91
|
+
#define MCLOFSET (MCLBYTES - 1)
|
|
92
|
+
#ifndef NMBCLUSTERS
|
|
93
|
+
#define NMBCLUSTERS CONFIG_NMBCLUSTERS /* cl map size */
|
|
94
|
+
#endif
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
* Some macros for units conversion
|
|
98
|
+
*/
|
|
99
|
+
/* Core clicks (NeXT_page_size bytes) to segments and vice versa */
|
|
100
|
+
#define ctos(x) (x)
|
|
101
|
+
#define stoc(x) (x)
|
|
102
|
+
|
|
103
|
+
/* Core clicks (4096 bytes) to disk blocks */
|
|
104
|
+
#define ctod(x) ((x)<<(PGSHIFT-DEV_BSHIFT))
|
|
105
|
+
#define dtoc(x) ((x)>>(PGSHIFT-DEV_BSHIFT))
|
|
106
|
+
#define dtob(x) ((x)<<DEV_BSHIFT)
|
|
107
|
+
|
|
108
|
+
/* clicks to bytes */
|
|
109
|
+
#define ctob(x) ((x)<<PGSHIFT)
|
|
110
|
+
|
|
111
|
+
/* bytes to clicks */
|
|
112
|
+
#define btoc(x) (((unsigned)(x)+(NBPG-1))>>PGSHIFT)
|
|
113
|
+
|
|
114
|
+
#ifdef __APPLE__
|
|
115
|
+
#define btodb(bytes, devBlockSize) \
|
|
116
|
+
((unsigned)(bytes) / devBlockSize)
|
|
117
|
+
#define dbtob(db, devBlockSize) \
|
|
118
|
+
((unsigned)(db) * devBlockSize)
|
|
119
|
+
#else
|
|
120
|
+
#define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
|
|
121
|
+
((unsigned)(bytes) >> DEV_BSHIFT)
|
|
122
|
+
#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
|
|
123
|
+
((unsigned)(db) << DEV_BSHIFT)
|
|
124
|
+
#endif
|
|
125
|
+
|
|
126
|
+
/*
|
|
127
|
+
* Map a ``block device block'' to a file system block.
|
|
128
|
+
* This should be device dependent, and will be if we
|
|
129
|
+
* add an entry to cdevsw/bdevsw for that purpose.
|
|
130
|
+
* For now though just use DEV_BSIZE.
|
|
131
|
+
*/
|
|
132
|
+
#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))
|
|
133
|
+
|
|
134
|
+
/*
|
|
135
|
+
* Macros to decode (and encode) processor status word.
|
|
136
|
+
*/
|
|
137
|
+
#define STATUS_WORD(rpl, ipl) (((ipl) << 8) | (rpl))
|
|
138
|
+
#define USERMODE(x) (((x) & 3) == 3)
|
|
139
|
+
#define BASEPRI(x) (((x) & (255 << 8)) == 0)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
#if defined(KERNEL) || defined(STANDALONE)
|
|
143
|
+
#define DELAY(n) delay(n)
|
|
144
|
+
|
|
145
|
+
#else /* defined(KERNEL) || defined(STANDALONE) */
|
|
146
|
+
#define DELAY(n) { int N = (n); while (--N > 0); }
|
|
147
|
+
#endif /* defined(KERNEL) || defined(STANDALONE) */
|
|
148
|
+
|
|
149
|
+
#endif /* defined (__arm__) || defined (__arm64__) */
|
|
150
|
+
|
|
151
|
+
#endif /* _ARM_PARAM_H_ */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#pragma once
|
|
2
|
-
#include <peach/darwin.h>
|
|
3
2
|
typedef struct dl_info {
|
|
4
3
|
const char *dli_fname;
|
|
5
4
|
void *dli_fbase;
|
|
@@ -10,7 +9,7 @@ typedef struct dl_info Dl_info_t;
|
|
|
10
9
|
#ifdef __cplusplus
|
|
11
10
|
extern "C" {
|
|
12
11
|
#endif
|
|
13
|
-
int dladdr(const void *, Dl_info *)
|
|
12
|
+
int dladdr(const void *, Dl_info *);
|
|
14
13
|
#ifdef __cplusplus
|
|
15
14
|
}
|
|
16
15
|
#endif
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2000-2007 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
/*
|
|
29
|
+
* Copyright 1995 NeXT Computer, Inc. All rights reserved.
|
|
30
|
+
*/
|
|
31
|
+
#ifndef _BSD_MACHINE_PARAM_H_
|
|
32
|
+
#define _BSD_MACHINE_PARAM_H_
|
|
33
|
+
|
|
34
|
+
#if defined (__i386__) || defined(__x86_64__)
|
|
35
|
+
#include <i386/param.h>
|
|
36
|
+
#elif defined (__arm__) || defined (__arm64__)
|
|
37
|
+
#include <arm/param.h>
|
|
38
|
+
#else
|
|
39
|
+
#error architecture not supported
|
|
40
|
+
#endif
|
|
41
|
+
|
|
42
|
+
#endif /* _BSD_MACHINE_PARAM_H_ */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#include <net/if_var.h>
|
|
3
3
|
#include <sys/socket.h>
|
|
4
|
-
#include <peach/darwin.h>
|
|
5
4
|
#define IF_NAMESIZE 16
|
|
6
5
|
#define IFNAMSIZ IF_NAMESIZE
|
|
7
6
|
struct if_msghdr {
|
|
@@ -14,7 +13,7 @@ struct if_msghdr {
|
|
|
14
13
|
#ifdef __cplusplus
|
|
15
14
|
extern "C" {
|
|
16
15
|
#endif
|
|
17
|
-
unsigned int if_nametoindex(const char *)
|
|
16
|
+
unsigned int if_nametoindex(const char *);
|
|
18
17
|
#ifdef __cplusplus
|
|
19
18
|
}
|
|
20
19
|
#endif
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
#include <stddef.h>
|
|
3
3
|
#include <mach/mach_types.h>
|
|
4
|
-
#include <peach/darwin.h>
|
|
5
4
|
#if defined(__wasm__) && defined(__cplusplus)
|
|
6
5
|
#define __PEACH_PTHREAD_NULLABLE
|
|
7
6
|
#else
|
|
@@ -10,9 +9,10 @@
|
|
|
10
9
|
#ifdef __cplusplus
|
|
11
10
|
extern "C" {
|
|
12
11
|
#endif
|
|
13
|
-
mach_port_t pthread_mach_thread_np(pthread_t) __attribute__((availability(ios,introduced=2.0)))
|
|
14
|
-
pthread_t __PEACH_PTHREAD_NULLABLE pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)))
|
|
15
|
-
int pthread_getname_np(pthread_t, char *, size_t) __attribute__((availability(ios,introduced=3.2)))
|
|
12
|
+
mach_port_t pthread_mach_thread_np(pthread_t) __attribute__((availability(ios,introduced=2.0)));
|
|
13
|
+
pthread_t __PEACH_PTHREAD_NULLABLE pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)));
|
|
14
|
+
int pthread_getname_np(pthread_t, char *, size_t) __attribute__((availability(ios,introduced=3.2)));
|
|
15
|
+
int pthread_setname_np(const char *) __attribute__((availability(ios,introduced=3.2)));
|
|
16
16
|
#ifdef __cplusplus
|
|
17
17
|
}
|
|
18
18
|
#endif
|