From d1d3dcdf68928303f8a00719a26dc1844b8567d9 Mon Sep 17 00:00:00 2001 From: JonnHard <130712334+JonnHard@users.noreply.github.com> Date: Thu, 20 Jul 2023 10:39:08 -0400 Subject: [PATCH] =?UTF-8?q?Add=20getFileProviderConnectionWithCompletionHa?= =?UTF-8?q?ndler=20signature=20to=20start=E2=80=A6=20(#18533)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … supporting XPC on File Provider instance File Provider Service can act as an standalone XPC that you can establish the connection with. To open up the capability this new signature has to be exposed --------- Co-authored-by: GitHub Actions Autoformatter Co-authored-by: Alex Soto --- src/foundation.cs | 4 ++++ .../api-annotations-dotnet/MacCatalyst-Foundation.ignore | 1 - .../xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore | 1 - .../api-annotations-dotnet/macOS-Foundation.ignore | 1 - tests/xtro-sharpie/iOS-Foundation.ignore | 1 - tests/xtro-sharpie/macOS-Foundation.ignore | 1 - 6 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/foundation.cs b/src/foundation.cs index 10d72dbf33..fd6e7a5213 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -15446,6 +15446,10 @@ namespace Foundation { interface NSFileProviderService { [Export ("name")] string Name { get; } + + [Async] + [Export ("getFileProviderConnectionWithCompletionHandler:")] + void GetFileProviderConnection (Action completionHandler); } #if MONOMAC diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore index c954e60d17..38c2a729bc 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore @@ -115,7 +115,6 @@ !missing-selector! NSCreateCommand::resolvedKeyDictionary not bound !missing-selector! NSDeleteCommand::keySpecifier not bound !missing-selector! NSDeleteCommand::setReceiversSpecifier: not bound -!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound !missing-selector! NSIndexSpecifier::index not bound !missing-selector! NSIndexSpecifier::initWithContainerClassDescription:containerSpecifier:key:index: not bound !missing-selector! NSIndexSpecifier::setIndex: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore index dbc3e5102c..0249fb71fd 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore @@ -1,4 +1,3 @@ -!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound !missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore index fb12ee62be..a78f1ca09f 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore @@ -153,7 +153,6 @@ !missing-selector! NSDeleteCommand::keySpecifier not bound !missing-selector! NSDeleteCommand::setReceiversSpecifier: not bound !missing-selector! NSDirectoryEnumerator::level not bound -!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound !missing-selector! NSIndexSpecifier::index not bound !missing-selector! NSIndexSpecifier::initWithContainerClassDescription:containerSpecifier:key:index: not bound !missing-selector! NSIndexSpecifier::setIndex: not bound diff --git a/tests/xtro-sharpie/iOS-Foundation.ignore b/tests/xtro-sharpie/iOS-Foundation.ignore index 72b9e00e4f..b2fa4e0f3f 100644 --- a/tests/xtro-sharpie/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/iOS-Foundation.ignore @@ -1,4 +1,3 @@ -!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound !missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.ignore b/tests/xtro-sharpie/macOS-Foundation.ignore index 8c83983c68..e1934bd555 100644 --- a/tests/xtro-sharpie/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/macOS-Foundation.ignore @@ -160,7 +160,6 @@ !missing-selector! NSDeleteCommand::keySpecifier not bound !missing-selector! NSDeleteCommand::setReceiversSpecifier: not bound !missing-selector! NSDirectoryEnumerator::level not bound -!missing-selector! NSFileProviderService::getFileProviderConnectionWithCompletionHandler: not bound !missing-selector! NSIndexSpecifier::index not bound !missing-selector! NSIndexSpecifier::initWithContainerClassDescription:containerSpecifier:key:index: not bound !missing-selector! NSIndexSpecifier::setIndex: not bound