/// Stops receiving events on the specified stream. The stream can be restarted and not miss any events.
/// </summary>
/// <param name="streamRef">The stream to stop receiving events on.</param>
- [DllImport(Interop.Libraries.CoreServicesLibrary)]
- internal static extern void FSEventStreamStop(IntPtr streamRef);
+ [GeneratedDllImport(Interop.Libraries.CoreServicesLibrary)]
+ internal static partial void FSEventStreamStop(IntPtr streamRef);
/// <summary>
/// Invalidates an EventStream and removes it from any RunLoops.
/// </summary>
/// <param name="streamRef">The FSEventStream to invalidate</param>
/// <remarks>This can only be called after FSEventStreamScheduleWithRunLoop has be called</remarks>
- [DllImport(Interop.Libraries.CoreServicesLibrary)]
- internal static extern void FSEventStreamInvalidate(IntPtr streamRef);
+ [GeneratedDllImport(Interop.Libraries.CoreServicesLibrary)]
+ internal static partial void FSEventStreamInvalidate(IntPtr streamRef);
/// <summary>
/// Removes the event stream from the RunLoop.
/// Releases a reference count on the specified EventStream and, if necessary, cleans the stream up.
/// </summary>
/// <param name="streamRef">The stream on which to decrement the reference count.</param>
- [DllImport(Interop.Libraries.CoreServicesLibrary)]
- internal static extern void FSEventStreamRelease(IntPtr streamRef);
+ [GeneratedDllImport(Interop.Libraries.CoreServicesLibrary)]
+ internal static partial void FSEventStreamRelease(IntPtr streamRef);
}
}
byte[] utf8Passphrase,
out SafeKeychainHandle keychain);
- [DllImport(Libraries.AppleCryptoNative)]
- private static extern int AppleCryptoNative_SecKeychainDelete(IntPtr keychain);
+ [GeneratedDllImport(Libraries.AppleCryptoNative)]
+ private static partial int AppleCryptoNative_SecKeychainDelete(IntPtr keychain);
[GeneratedDllImport(Libraries.AppleCryptoNative)]
private static partial int AppleCryptoNative_SecKeychainCopyDefault(out SafeKeychainHandle keychain);
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_FcntlSetPipeSz", SetLastError=true)]
internal static partial int SetPipeSz(SafePipeHandle fd, int size);
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_FcntlCanGetSetPipeSz")]
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_FcntlCanGetSetPipeSz")]
[SuppressGCTransition]
- private static extern int FcntlCanGetSetPipeSz();
+ private static partial int FcntlCanGetSetPipeSz();
}
}
}
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_ReadStdin", SetLastError = true)]
internal static unsafe partial int ReadStdin(byte* buffer, int bufferSize);
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_InitializeConsoleBeforeRead")]
- internal static extern void InitializeConsoleBeforeRead(byte minChars = 1, byte decisecondsTimeout = 0);
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_InitializeConsoleBeforeRead")]
+ internal static partial void InitializeConsoleBeforeRead(byte minChars = 1, byte decisecondsTimeout = 0);
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_UninitializeConsoleAfterRead")]
- internal static extern void UninitializeConsoleAfterRead();
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_UninitializeConsoleAfterRead")]
+ internal static partial void UninitializeConsoleAfterRead();
}
}
{
internal static partial class Sys
{
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetEUid")]
- internal static extern int SetEUid(uint euid);
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetEUid")]
+ internal static partial int SetEUid(uint euid);
}
}
{
internal static partial class Sys
{
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetSignalForBreak")]
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetSignalForBreak")]
[SuppressGCTransition]
- internal static extern int GetSignalForBreak();
+ internal static partial int GetSignalForBreak();
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetSignalForBreak")]
- internal static extern int SetSignalForBreak(int signalForBreak);
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetSignalForBreak")]
+ internal static partial int SetSignalForBreak(int signalForBreak);
}
}
{
internal static partial class Sys
{
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetTerminalInvalidationHandler")]
- internal static extern unsafe void SetTerminalInvalidationHandler(delegate* unmanaged<void> handler);
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_SetTerminalInvalidationHandler")]
+ internal static unsafe partial void SetTerminalInvalidationHandler(delegate* unmanaged<void> handler);
}
}
/// <summary>
/// Forces a write of all modified I/O buffers to their storage mediums.
/// </summary>
- [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Sync")]
- internal static extern void Sync();
+ [GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_Sync")]
+ internal static partial void Sync();
}
}
{
internal static partial class Crypto
{
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_OcspRequestDestroy")]
- internal static extern void OcspRequestDestroy(IntPtr ocspReq);
+ [GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_OcspRequestDestroy")]
+ internal static partial void OcspRequestDestroy(IntPtr ocspReq);
[GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_GetOcspRequestDerSize")]
internal static partial int GetOcspRequestDerSize(SafeOcspRequestHandle req);
buf.Length);
}
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_OcspResponseDestroy")]
- internal static extern void OcspResponseDestroy(IntPtr ocspReq);
+ [GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_OcspResponseDestroy")]
+ internal static partial void OcspResponseDestroy(IntPtr ocspReq);
[GeneratedDllImport(Libraries.CryptoNative, CharSet = CharSet.Ansi)]
private static partial int CryptoNative_X509ChainGetCachedOcspStatus(
[GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_Pkcs7CreateCertificateCollection")]
internal static partial SafePkcs7Handle Pkcs7CreateCertificateCollection(SafeX509StackHandle certs);
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_Pkcs7Destroy")]
- internal static extern void Pkcs7Destroy(IntPtr p7);
+ [GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_Pkcs7Destroy")]
+ internal static partial void Pkcs7Destroy(IntPtr p7);
[GeneratedDllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_GetPkcs7Certificates")]
private static partial int GetPkcs7Certificates(SafePkcs7Handle p7, out SafeSharedX509StackHandle certs);