#![forbid(unsafe_code)]
use std::{env, path::PathBuf};
pub use wire::PendingRequestResult; pub mod ei;
mod eiproto_ei;
mod eiproto_eis;
mod eiproto_enum;
pub mod eis;
pub mod event; pub mod handshake; mod object;
#[doc(hidden)] pub mod request;
pub use object::Object;
mod util;
mod wire;
#[doc(hidden)]
pub use wire::Interface;
pub use wire::ParseError;
#[cfg(feature = "calloop")]
#[doc(hidden)] pub mod calloop;
#[cfg(feature = "tokio")]
pub mod tokio;
mod private {
pub trait Sealed {}
}
pub fn default_socket_path() -> Option<PathBuf> {
let mut path = PathBuf::from(env::var_os("XDG_RUNTIME_DIR")?);
path.push("eis-0");
Some(path)
}