Fenrir
8 years ago
11 changed files with 87 additions and 48 deletions
@ -1,2 +1,2 @@ |
|||||||
pub mod lock; |
|
||||||
pub mod libc; |
pub mod libc; |
||||||
|
pub mod lock; |
||||||
|
@ -1,35 +1,27 @@ |
|||||||
#[repr(C)] |
/* automatically generated by rust-bindgen */ |
||||||
pub enum mediatypes_enum { |
|
||||||
mediatype_NAND = 0, |
|
||||||
mediatype_SDMC = 1, |
|
||||||
mediatype_GAMECARD = 2, |
|
||||||
} |
|
||||||
|
|
||||||
|
#![allow(dead_code,
|
||||||
|
non_camel_case_types, |
||||||
|
non_upper_case_globals, |
||||||
|
non_snake_case)] |
||||||
|
pub type u8_ = u8; |
||||||
|
pub type u16_ = u16; |
||||||
|
pub type u32_ = u32; |
||||||
|
pub type u64_ = u64; |
||||||
pub type s8 = i8; |
pub type s8 = i8; |
||||||
pub type s16 = i16; |
pub type s16 = i16; |
||||||
pub type s32 = i32; |
pub type s32 = i32; |
||||||
pub type s64 = i64; |
pub type s64 = i64; |
||||||
|
pub type vu8 = u8_; |
||||||
// UHH, DUNNO HOW TO USE VOLATILES ????
|
pub type vu16 = u16_; |
||||||
pub type vu8 = u8; |
pub type vu32 = u32_; |
||||||
pub type vu32 = u32; |
pub type vu64 = u64_; |
||||||
|
pub type vs8 = s8; |
||||||
// typedef uint8_t u8;
|
pub type vs16 = s16; |
||||||
// typedef uint16_t u16;
|
pub type vs32 = s32; |
||||||
// typedef uint32_t u32;
|
pub type vs64 = s64; |
||||||
// typedef uint64_t u64;
|
pub type Handle = u32_; |
||||||
//
|
pub type Result = s32; |
||||||
// typedef int8_t s8;
|
pub type ThreadFunc = |
||||||
// typedef int16_t s16;
|
::core::option::Option<unsafe extern "C" fn(arg1: *mut ::libc::c_void)>; |
||||||
// typedef int32_t s32;
|
pub type voidfn = ::core::option::Option<extern "C" fn()>; |
||||||
// typedef int64_t s64;
|
|
||||||
//
|
|
||||||
// typedef volatile u8 vu8;
|
|
||||||
// typedef volatile u16 vu16;
|
|
||||||
// typedef volatile u32 vu32;
|
|
||||||
// typedef volatile u64 vu64;
|
|
||||||
//
|
|
||||||
// typedef volatile s8 vs8;
|
|
||||||
// typedef volatile s16 vs16;
|
|
||||||
// typedef volatile s32 vs32;
|
|
||||||
// typedef volatile s64 vs64;
|
|
||||||
|
Loading…
Reference in new issue