Browse Source

Rename ::new() to ::init()

pull/10/head
Fenrir 9 years ago
parent
commit
62e5cccff3
  1. 2
      src/sdmc.rs
  2. 2
      src/services/apt.rs
  3. 2
      src/services/hid.rs
  4. 2
      src/srv.rs

2
src/sdmc.rs

@ -7,7 +7,7 @@ pub struct Sdmc {
} }
impl Sdmc { impl Sdmc {
pub fn new() -> Result<Sdmc, i32> { pub fn init() -> Result<Sdmc, i32> {
unsafe { unsafe {
let r = sdmcInit(); let r = sdmcInit();
if r < 0 { if r < 0 {

2
src/services/apt.rs

@ -55,7 +55,7 @@ pub struct Apt {
} }
impl Apt { impl Apt {
pub fn new() -> Result<Apt, i32> { pub fn init() -> Result<Apt, i32> {
unsafe { unsafe {
let r = apt::aptInit(); let r = apt::aptInit();
if r < 0 { if r < 0 {

2
src/services/hid.rs

@ -78,7 +78,7 @@ pub struct Hid {
} }
impl Hid { impl Hid {
pub fn new() -> Result<Hid, i32> { pub fn init() -> Result<Hid, i32> {
unsafe { unsafe {
let r = hid::hidInit(); let r = hid::hidInit();
if r < 0 { if r < 0 {

2
src/srv.rs

@ -7,7 +7,7 @@ pub struct Srv {
} }
impl Srv { impl Srv {
pub fn new() -> Result<Srv, i32> { pub fn init() -> Result<Srv, i32> {
unsafe { unsafe {
let r = srvInit(); let r = srvInit();
if r < 0 { if r < 0 {

Loading…
Cancel
Save