Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move most of CoreLib interop under Common #1247

Merged
merged 2 commits into from
Jan 3, 2020
Merged

Move most of CoreLib interop under Common #1247

merged 2 commits into from
Jan 3, 2020

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jan 2, 2020

Contributes to #1232

@jkotas jkotas requested a review from danmoseley January 2, 2020 17:08
Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense for 100% of our interop files to be in this one location even if they are not shared?

Hmm, the extern declarations that aren't already in common, corelib, or tests are below. Mostly these are either not of general interest, or in legacy libraries we don't want to disturb. So not worth modifying them.

System.Data.OleDb\src\NativeMethods.cs
System.Data.OleDb\src\SafeNativeMethods.cs
System.Data.OleDb\src\UnsafeNativeMethods.cs
System.Data.SqlClient\src\Interop\SNINativeMethodWrapper.Windows.cs
System.Diagnostics.EventLog\src\System\Diagnostics\Reader\UnsafeNativeMethods.cs
System.DirectoryServices\src\Interop\SafeNativeMethods.cs
System.DirectoryServices\src\Interop\UnsafeNativeMethods.cs
System.DirectoryServices\src\System\DirectoryServices\ActiveDirectory\NativeMethods.cs
System.DirectoryServices\src\System\DirectoryServices\ActiveDirectory\UnsafeNativeMethods.cs
System.DirectoryServices.AccountManagement\src\System\DirectoryServices\AccountManagement\interopt.cs
System.DirectoryServices.Protocols\src\System\DirectoryServices\Protocols\ldap\Wldap32UnsafeMethods.cs
System.Drawing.Common\src\System\Drawing\Gdiplus.cs
System.Drawing.Common\src\System\Drawing\GdiplusNative.cs
System.Drawing.Common\src\System\Drawing\GdiplusNative.Unix.cs
System.Drawing.Common\src\System\Drawing\GdiplusNative.Windows.cs
System.Drawing.Common\src\System\Drawing\Icon.Windows.cs
System.Drawing.Common\src\System\Drawing\Image.cs
System.Drawing.Common\src\System\Drawing\LibX11Functions.cs
System.Drawing.Common\src\System\Drawing\macFunctions.cs
System.Drawing.Common\src\System\Drawing\Printing\LibcupsNative.cs
System.Drawing.Common\src\System\Drawing\UnsafeNativeMethods.cs
System.IO.Ports\src\Interop\Unix\Interop.Serial.cs
System.IO.Ports\src\Interop\Unix\Interop.Termios.cs
System.Security.Cryptography.Pkcs\src\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContext.cs
System.Security.Cryptography.X509Certificates\src\Internal\Cryptography\Pal.Windows\Native\Interop.crypt32.cs
System.Security.Cryptography.X509Certificates\src\Internal\Cryptography\Pal.Windows\Native\Interop.cryptoapi.cs

[edited to make sense]

@jkotas
Copy link
Member Author

jkotas commented Jan 3, 2020

Would it make sense for 100% of our interop files to be in this one location even if they are not shared?

We have several issues tracking the reformatting these (e.g. https://github.com/dotnet/corefx/issues/1739). As you have pointed out, it is not clear whether it is an improvement to have the definitions of domain specific APIs that are used just once under Common and split them into many little files.

@jkotas jkotas merged commit f1c7ed8 into dotnet:master Jan 3, 2020
@jkotas jkotas deleted the corelib-interop branch January 14, 2020 07:36
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants