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

2
src/services/apt.rs

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

2
src/services/hid.rs

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

2
src/srv.rs

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

Loading…
Cancel
Save