aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys/src/synchronization.rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-06-06 15:05:51 -0600
committerFenrir <[email protected]>2017-07-10 11:30:57 -0600
commitcf1f07558a28aa00bc67b515863807a7639bc5b0 (patch)
treeb12018e5ec772499911b965af5ff191dee71c2a2 /ctru-sys/src/synchronization.rs
parentMerge pull request #32 from FenrirWolf/libc-update (diff)
downloadarchived-ctru-rs-cf1f07558a28aa00bc67b515863807a7639bc5b0.tar.xz
archived-ctru-rs-cf1f07558a28aa00bc67b515863807a7639bc5b0.zip
Use bindgen for ctru_sys bindings
Diffstat (limited to 'ctru-sys/src/synchronization.rs')
-rw-r--r--ctru-sys/src/synchronization.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/ctru-sys/src/synchronization.rs b/ctru-sys/src/synchronization.rs
deleted file mode 100644
index 0626394..0000000
--- a/ctru-sys/src/synchronization.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-/* automatically generated by rust-bindgen */
-
-#![allow(dead_code,
- non_camel_case_types,
- non_upper_case_globals,
- non_snake_case)]
-
-use Handle;
-use svc::ResetType;
-use super::lock::*;
-
-pub type LightLock = _LOCK_T;
-pub type RecursiveLock = _LOCK_RECURSIVE_T;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct LightEvent {
- pub state: i32,
- pub lock: LightLock,
-}
-impl ::core::default::Default for LightEvent {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-extern "C" {
- pub fn __sync_get_arbiter() -> Handle;
- pub fn LightLock_Init(lock: *mut LightLock);
- pub fn LightLock_Lock(lock: *const LightLock);
- pub fn LightLock_TryLock(lock: *const LightLock) -> ::libc::c_int;
- pub fn LightLock_Unlock(lock: *const LightLock);
- pub fn RecursiveLock_Init(lock: *mut RecursiveLock);
- pub fn RecursiveLock_Lock(lock: *const RecursiveLock);
- pub fn RecursiveLock_TryLock(lock: *const RecursiveLock) -> ::libc::c_int;
- pub fn RecursiveLock_Unlock(lock: *const RecursiveLock);
- pub fn LightEvent_Init(event: *mut LightEvent, reset_type: ResetType);
- pub fn LightEvent_Clear(event: *mut LightEvent);
- pub fn LightEvent_Pulse(event: *mut LightEvent);
- pub fn LightEvent_Signal(event: *mut LightEvent);
- pub fn LightEvent_TryWait(event: *mut LightEvent) -> ::libc::c_int;
- pub fn LightEvent_Wait(event: *mut LightEvent);
-}