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