Skip to content

Commit

Permalink
Add connector_id to DrmDisplayHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Jul 4, 2024
1 parent 5fda8e8 commit b598cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ pub struct DrmDisplayHandle {
/// The drm file descriptor.
// TODO: Use `std::os::fd::RawFd`?
pub fd: i32,
pub connector_id: u32,
}

impl DrmDisplayHandle {
Expand All @@ -228,8 +229,8 @@ impl DrmDisplayHandle {
/// # fd = 0;
/// let handle = DrmDisplayHandle::new(fd);
/// ```

Check failure on line 231 in src/unix.rs

View workflow job for this annotation

GitHub Actions / Tests (stable)

this function takes 2 arguments but 1 argument was supplied

Check failure on line 231 in src/unix.rs

View workflow job for this annotation

GitHub Actions / Tests (nightly)

this function takes 2 arguments but 1 argument was supplied
pub fn new(fd: i32) -> Self {
Self { fd }
pub fn new(fd: i32, connector_id: u32) -> Self {
Self { fd, connector_id }
}
}

Expand Down

0 comments on commit b598cf5

Please sign in to comment.