Skip to content

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Oct 4, 2023

This is a breaking API change.

Copy link
Contributor

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

Together with this, does it makes sense to remove the SyncFile type and replace it with a simple OwnedFd instead of owning an fs::File inside and implementing the same common traits? That is closer to prime/buffers not having a PrimeFile type owning an fd either.

@ids1024
Copy link
Member Author

ids1024 commented Oct 5, 2023

Yeah, if SyncFile does nothing other than wrap a File and implement FromRawFd/AsFd/AsRawFd, just using an OwnedFd probably makes more sense.

Also replaces `SyncFile` struct with `OwnedFd`.

This is a breaking API change.
@Drakulix Drakulix merged commit 250fa4a into Smithay:develop Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants