aboutsummaryrefslogtreecommitdiffstats
path: root/src/android/ffi.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-10 17:58:31 +0200
committertomaka <pierre.krieger1708@gmail.com>2014-10-10 17:58:31 +0200
commit28ecf3bc5b463e7e1b1859746f178c2990dfb263 (patch)
tree10840e82b6bfd4ea7da3eb8b93dfd367930f996f /src/android/ffi.rs
parentb66abed7aeb3685552a2cb6caa34e8c4eb6dbb12 (diff)
parentc316c86e7c5996e0b0965682f4260d20191e5b6d (diff)
downloadglutin-28ecf3bc5b463e7e1b1859746f178c2990dfb263.tar.gz
glutin-28ecf3bc5b463e7e1b1859746f178c2990dfb263.zip
Merge pull request #49 from tomaka/update-rustc
Update for rustc f9fc49c06 2014-10-10 00:07:08 +0000
Diffstat (limited to 'src/android/ffi.rs')
-rw-r--r--src/android/ffi.rs21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/android/ffi.rs b/src/android/ffi.rs
index 583109f..a7482e3 100644
--- a/src/android/ffi.rs
+++ b/src/android/ffi.rs
@@ -1,6 +1,7 @@
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
+#![allow(non_uppercase_statics)]
use libc;
@@ -113,17 +114,17 @@ extern {
pub fn ALooper_removeFd(looper: *const ALooper, fd: libc::c_int) -> libc::c_int;
}
-pub static ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: libc::c_int = 1 << 0;
+pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: libc::c_int = 1 << 0;
-pub static ALOOPER_POLL_WAKE: libc::c_int = -1;
-pub static ALOOPER_POLL_CALLBACK: libc::c_int = -2;
-pub static ALOOPER_POLL_TIMEOUT: libc::c_int = -3;
-pub static ALOOPER_POLL_ERROR: libc::c_int = -4;
+pub const ALOOPER_POLL_WAKE: libc::c_int = -1;
+pub const ALOOPER_POLL_CALLBACK: libc::c_int = -2;
+pub const ALOOPER_POLL_TIMEOUT: libc::c_int = -3;
+pub const ALOOPER_POLL_ERROR: libc::c_int = -4;
-pub static ALOOPER_EVENT_INPUT: libc::c_int = 1 << 0;
-pub static ALOOPER_EVENT_OUTPUT: libc::c_int = 1 << 1;
-pub static ALOOPER_EVENT_ERROR: libc::c_int = 1 << 2;
-pub static ALOOPER_EVENT_HANGUP: libc::c_int = 1 << 3;
-pub static ALOOPER_EVENT_INVALID: libc::c_int = 1 << 4;
+pub const ALOOPER_EVENT_INPUT: libc::c_int = 1 << 0;
+pub const ALOOPER_EVENT_OUTPUT: libc::c_int = 1 << 1;
+pub const ALOOPER_EVENT_ERROR: libc::c_int = 1 << 2;
+pub const ALOOPER_EVENT_HANGUP: libc::c_int = 1 << 3;
+pub const ALOOPER_EVENT_INVALID: libc::c_int = 1 << 4;
pub type ALooper_callbackFunc = extern fn(libc::c_int, libc::c_int, *mut libc::c_void) -> libc::c_int;