-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add DRM node abstraction #202
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2f95360
Add DRM node abstraction
chrisduerr 0aceac7
Extend return lifetime
chrisduerr 00a6c8a
Reuse default Debug implementation
chrisduerr 1868ac1
Remove unnecessary macro usage
chrisduerr 830998d
Fix function order
chrisduerr 7524e79
Remove unnecessary function
chrisduerr eb495eb
Fix accidentally type removal
chrisduerr 40cdaf1
Fix path formatting issues
chrisduerr c2e8e3f
Fix style issues
chrisduerr dde137e
Fix path constructions
chrisduerr 7ae5509
Remove useless comment
chrisduerr f07dba4
Add comment about Linux impl
chrisduerr 44dc4bf
Fix minor style issues
chrisduerr 6e90d00
Fix inconsistent cfg attributes
chrisduerr 3bd46f7
Bump MSRV to 1.66.0
chrisduerr ff5c9da
chore: Fix new 1.66.0 clippy lints
Drakulix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ version = "0.12.0" | |
license = "MIT" | ||
authors = ["Tyler Slabinski <[email protected]>", "Victoria Brekenfeld <[email protected]>"] | ||
exclude = [".gitignore", ".github"] | ||
rust-version = "1.65" | ||
rust-version = "1.66" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ repository = "https://github.com/Smithay/drm-rs" | |
version = "0.8.0" | ||
license = "MIT" | ||
authors = ["Tyler Slabinski <[email protected]>"] | ||
rust-version = "1.65" | ||
rust-version = "1.66" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ version = "0.7.0" | |
authors = ["Tyler Slabinski <[email protected]>"] | ||
license = "MIT" | ||
build = "build.rs" | ||
rust-version = "1.65" | ||
rust-version = "1.66" | ||
edition = "2021" | ||
|
||
[features] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//! OS-Specific DRM constants. | ||
|
||
/// DRM major value. | ||
#[cfg(target_os = "dragonfly")] | ||
pub const DRM_MAJOR: u32 = 145; | ||
|
||
/// DRM major value. | ||
#[cfg(target_os = "netbsd")] | ||
pub const DRM_MAJOR: u32 = 34; | ||
|
||
/// DRM major value. | ||
#[cfg(all(target_os = "openbsd", target_arch = "x86"))] | ||
pub const DRM_MAJOR: u32 = 88; | ||
|
||
/// DRM major value. | ||
#[cfg(all(target_os = "openbsd", not(target_arch = "x86")))] | ||
pub const DRM_MAJOR: u32 = 87; | ||
|
||
/// DRM major value. | ||
#[cfg(not(any(target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd")))] | ||
pub const DRM_MAJOR: u32 = 226; | ||
|
||
/// Primary DRM node prefix. | ||
#[cfg(not(target_os = "openbsd"))] | ||
pub const PRIMARY_NAME: &str = "card"; | ||
|
||
/// Primary DRM node prefix. | ||
#[cfg(target_os = "openbsd")] | ||
pub const PRIMARY_NAME: &str = "drm"; | ||
|
||
/// Control DRM node prefix. | ||
#[cfg(not(target_os = "openbsd"))] | ||
pub const CONTROL_NAME: &str = "controlD"; | ||
|
||
/// Control DRM node prefix. | ||
#[cfg(target_os = "openbsd")] | ||
pub const CONTROL_NAME: &str = "drmC"; | ||
|
||
/// Render DRM node prefix. | ||
#[cfg(not(target_os = "openbsd"))] | ||
pub const RENDER_NAME: &str = "renderD"; | ||
|
||
/// Render DRM node prefix. | ||
#[cfg(target_os = "openbsd")] | ||
pub const RENDER_NAME: &str = "drmR"; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to bump rust-version everywhere, since CI does not distinguish between per-crate Rust versions. It shouldn't make a big difference and this way one can be certain that the MSRV is actually correct.