aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys/src/sdmc.rs
blob: 9cf12091a77d407bd18d7d3023240af6e37027f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* automatically generated by rust-bindgen */

#![allow(dead_code,
         non_camel_case_types,
         non_upper_case_globals,
         non_snake_case)]

use ::types::*;
use services::fs::FS_DirectoryEntry;

#[repr(C)]
#[derive(Copy, Clone)]
pub struct sdmc_dir_t {
    pub magic: u32_,
    pub fd: Handle,
    pub index: ::libc::ssize_t,
    pub size: ::libc::size_t,
    pub entry_data: [FS_DirectoryEntry; 32usize],
}
impl ::core::default::Default for sdmc_dir_t {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
extern "C" {
    pub fn sdmcInit() -> Result;
    pub fn sdmcWriteSafe(enable: u8);
    pub fn sdmcExit() -> Result;
    pub fn sdmc_getmtime(name: *const ::libc::c_char, mtime: *mut u64_)
     -> Result;
}