Skip to content

Commit

Permalink
server: Display:c_ptr()
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Apr 17, 2018
1 parent d264ad0 commit df1b632
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wayland-server/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ impl Display {
}
}

#[cfg(feature = "native_lib")]
impl Display {
/// Retrieve a pointer from the C lib to this `wl_display`
pub fn c_ptr(&self) -> *mut wl_display {
self.inner.ptr
}
}

fn get_runtime_dir() -> IoResult<PathBuf> {
match env::var_os("XDG_RUNTIME_DIR") {
Some(s) => Ok(s.into()),
Expand Down

0 comments on commit df1b632

Please sign in to comment.