aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys/src/lib.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/lib.rs
parentMerge pull request #32 from FenrirWolf/libc-update (diff)
downloadctru-rs-cf1f07558a28aa00bc67b515863807a7639bc5b0.tar.xz
ctru-rs-cf1f07558a28aa00bc67b515863807a7639bc5b0.zip
Use bindgen for ctru_sys bindings
Diffstat (limited to 'ctru-sys/src/lib.rs')
-rw-r--r--ctru-sys/src/lib.rs34
1 files changed, 7 insertions, 27 deletions
diff --git a/ctru-sys/src/lib.rs b/ctru-sys/src/lib.rs
index d2b54aa..814afac 100644
--- a/ctru-sys/src/lib.rs
+++ b/ctru-sys/src/lib.rs
@@ -1,32 +1,12 @@
-/*
- * C bindings generation:
- * bindgen --match=file.h --use-core --ctypes-prefix=libc -- --sysroot=$DEVKITARM/arm-none-eabi -I$CTRULIB/include $CTRULIB/include/3ds.h
- *
- */
+#![allow(non_upper_case_globals)]
+#![allow(non_camel_case_types)]
+#![allow(non_snake_case)]
-#![no_std]
-#![allow(non_camel_case_types, non_snake_case, overflowing_literals)]
+#![feature(const_fn)]
#![feature(untagged_unions)]
-extern crate libc;
+#![no_std]
-pub mod applets;
-pub mod console;
-pub mod env;
-pub mod gfx;
-pub mod gpu;
-pub mod ipc;
-pub mod ndsp;
-pub mod os;
-pub mod romfs;
-pub mod sdmc;
-pub mod services;
-pub mod svc;
-pub mod srv;
-pub mod sys;
-pub mod synchronization;
-pub mod thread;
-pub mod types;
+extern crate libc;
-pub use self::sys::*;
-pub use self::types::*;
+include!(concat!(env!("OUT_DIR"), "/bindings.rs"));