Browse Source

Remove SRV module

pull/71/head
Andrea Ciliberti 2 years ago
parent
commit
777baef561
  1. 1
      ctru-rs/src/lib.rs
  2. 20
      ctru-rs/src/srv.rs

1
ctru-rs/src/lib.rs

@ -77,7 +77,6 @@ pub mod error;
pub mod gfx; pub mod gfx;
pub mod prelude; pub mod prelude;
pub mod services; pub mod services;
pub mod srv;
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(all(feature = "romfs", romfs_exists))] { if #[cfg(all(feature = "romfs", romfs_exists))] {

20
ctru-rs/src/srv.rs

@ -1,20 +0,0 @@
pub struct Srv(());
impl Srv {
pub fn init() -> crate::Result<Srv> {
unsafe {
let r = ctru_sys::srvInit();
if r < 0 {
Err(r.into())
} else {
Ok(Srv(()))
}
}
}
}
impl Drop for Srv {
fn drop(&mut self) {
unsafe { ctru_sys::srvExit() };
}
}
Loading…
Cancel
Save