Skip to content

Commit

Permalink
Reverted back to DllImport to not pollute the project with unnecessar…
Browse files Browse the repository at this point in the history
…y unsafe code.
  • Loading branch information
basdp committed Apr 29, 2024
1 parent 0ecbe21 commit 9b6de2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/NPlug/build/NPlugFactoryExportMacOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ namespace NPlug.Interop;
/// </summary>
internal static partial class NPlugFactoryExport
{
static readonly List<nint> BundleRefs = [];
private static readonly List<nint> BundleRefs = [];

[LibraryImport("/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/Resources/BridgeSupport/CoreFoundation.dylib")]
private static partial nint CFRetain(nint theArrayRef);
[DllImport("/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/Resources/BridgeSupport/CoreFoundation.dylib")]
private static extern nint CFRetain(nint theArrayRef);

[LibraryImport("/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/Resources/BridgeSupport/CoreFoundation.dylib")]
private static partial void CFRelease(nint theArrayRef);
[DllImport("/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/Resources/BridgeSupport/CoreFoundation.dylib")]
private static extern void CFRelease(nint theArrayRef);

[UnmanagedCallersOnly(EntryPoint = nameof(bundleEntry))]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Exported function required by VST3 API")]
Expand Down

0 comments on commit 9b6de2f

Please sign in to comment.