Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/fskit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,10 @@ interface FSVolumeOperations : FSVolumePathConfOperations {
[Abstract]
[Export ("deactivateWithOptions:replyHandler:")]
void Deactivate (FSDeactivateOptions options, FSVolumeOperationsDeactivateHandler reply);

[Mac (26, 0)]
[Export ("enableOpenUnlinkEmulation")]
bool EnableOpenUnlinkEmulation { get; set; }
}

#if !STABLE_FSKIT
Expand Down Expand Up @@ -1374,8 +1378,18 @@ interface FSTask {

[Export ("didCompleteWithError:")]
void DidComplete ([NullAllowed] NSError error);

[Mac (26, 0)]
[NullAllowed, Export ("cancellationHandler", ArgumentSemantic.Copy)]
FSTaskCancellationCallback CancellationHandler { get; set; }
}

#if !STABLE_FSKIT
[Experimental ("APL0002")]
#endif
[return: NullAllowed]
delegate NSError FSTaskCancellationCallback ();

#if !STABLE_FSKIT
[Experimental ("APL0002")]
#endif
Expand All @@ -1390,4 +1404,35 @@ interface FSTaskOptions {
[return: NullAllowed]
NSUrl GetUrl (string option);
}

#if !STABLE_FSKIT
[Experimental ("APL0002")]
#endif
[Mac (26, 0)]
[BaseType (typeof (FSResource), Name = "FSGenericURLResource")]
[DisableDefaultCtor]
interface FSGenericUrlResource {
[Export ("url", ArgumentSemantic.Copy)]
NSUrl Url { get; }

[Export ("initWithURL:")]
NativeHandle Constructor (NSUrl url);
}

#if !STABLE_FSKIT
[Experimental ("APL0002")]
#endif
[Mac (26, 0)]
[BaseType (typeof (FSResource), Name = "FSPathURLResource")]
[DisableDefaultCtor]
interface FSPathUrlResource {
[Export ("url", ArgumentSemantic.Copy)]
NSUrl Url { get; }

[Export ("initWithURL:writable:")]
NativeHandle Constructor (NSUrl url, bool writable);

[Export ("writable")]
bool Writable { [Bind ("isWritable")] get; }
}
}
11 changes: 0 additions & 11 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-FSKit.todo

This file was deleted.

Loading