android_liblog_sys/
lib.rs1extern crate libc;
2
3use libc::{c_char, c_int, size_t};
4
5#[repr(C)]
6pub enum LogPriority {
7 UNKNOWN = 0,
8 DEFAULT,
9 VERBOSE,
10 DEBUG,
11 INFO,
12 WARN,
13 ERROR,
14 FATAL,
15 SILENT,
16}
17
18#[link(name = "log")]
19extern "C" {
20 pub fn __android_log_write(prio: c_int, tag: *const c_char, text: *const c_char) -> c_int;
21
22 pub fn __android_log_print(prio: c_int, tag: *const c_char, ...) -> c_int;
23
24 pub fn __android_log_assert(prio: c_int, tag: *const c_char, fmt: *const c_char, ...) -> !;
30
31 pub fn __android_log_is_loggable(prio: c_int,
32 tag: *const c_char,
33 default_prio: c_int)
34 -> c_int;
35
36 pub fn __android_log_is_loggable_len(prio: c_int,
37 tag: *const c_char,
38 len: size_t,
39 default_prio: c_int)
40 -> c_int;
41}