1 /* automatically generated by rust-bindgen 0.69.5 */
2 
3 pub const log_id_LOG_ID_MIN: log_id = 0;
4 #[doc = " The main log buffer. This is the only log buffer available to apps."]
5 pub const log_id_LOG_ID_MAIN: log_id = 0;
6 #[doc = " The radio log buffer."]
7 pub const log_id_LOG_ID_RADIO: log_id = 1;
8 #[doc = " The event log buffer."]
9 pub const log_id_LOG_ID_EVENTS: log_id = 2;
10 #[doc = " The system log buffer."]
11 pub const log_id_LOG_ID_SYSTEM: log_id = 3;
12 #[doc = " The crash log buffer."]
13 pub const log_id_LOG_ID_CRASH: log_id = 4;
14 #[doc = " The statistics log buffer."]
15 pub const log_id_LOG_ID_STATS: log_id = 5;
16 #[doc = " The security log buffer."]
17 pub const log_id_LOG_ID_SECURITY: log_id = 6;
18 #[doc = " The kernel log buffer."]
19 pub const log_id_LOG_ID_KERNEL: log_id = 7;
20 #[doc = " The kernel log buffer."]
21 pub const log_id_LOG_ID_MAX: log_id = 8;
22 #[doc = " Let the logging function choose the best log target."]
23 pub const log_id_LOG_ID_DEFAULT: log_id = 2147483647;
24 #[doc = " Identifies a specific log buffer for __android_log_buf_write()\n and __android_log_buf_print()."]
25 pub type log_id = ::std::os::raw::c_uint;
26 #[doc = " Identifies a specific log buffer for __android_log_buf_write()\n and __android_log_buf_print()."]
27 pub use self::log_id as log_id_t;
28 #[repr(C)]
29 #[derive(Debug, Copy, Clone)]
30 pub struct android_log_context_internal {
31     _unused: [u8; 0],
32 }
33 pub type android_log_context = *mut android_log_context_internal;
34 extern "C" {
create_android_logger(tag: u32) -> android_log_context35     pub fn create_android_logger(tag: u32) -> android_log_context;
36 }
37 extern "C" {
android_log_write_list_begin(ctx: android_log_context) -> ::std::os::raw::c_int38     pub fn android_log_write_list_begin(ctx: android_log_context) -> ::std::os::raw::c_int;
39 }
40 extern "C" {
android_log_write_list_end(ctx: android_log_context) -> ::std::os::raw::c_int41     pub fn android_log_write_list_end(ctx: android_log_context) -> ::std::os::raw::c_int;
42 }
43 extern "C" {
android_log_write_int32(ctx: android_log_context, value: i32) -> ::std::os::raw::c_int44     pub fn android_log_write_int32(ctx: android_log_context, value: i32) -> ::std::os::raw::c_int;
45 }
46 extern "C" {
android_log_write_int64(ctx: android_log_context, value: i64) -> ::std::os::raw::c_int47     pub fn android_log_write_int64(ctx: android_log_context, value: i64) -> ::std::os::raw::c_int;
48 }
49 extern "C" {
android_log_write_string8_len( ctx: android_log_context, value: *const ::std::os::raw::c_char, maxlen: usize, ) -> ::std::os::raw::c_int50     pub fn android_log_write_string8_len(
51         ctx: android_log_context,
52         value: *const ::std::os::raw::c_char,
53         maxlen: usize,
54     ) -> ::std::os::raw::c_int;
55 }
56 extern "C" {
android_log_write_float32(ctx: android_log_context, value: f32) -> ::std::os::raw::c_int57     pub fn android_log_write_float32(ctx: android_log_context, value: f32)
58         -> ::std::os::raw::c_int;
59 }
60 extern "C" {
android_log_write_list(ctx: android_log_context, id: log_id_t) -> ::std::os::raw::c_int61     pub fn android_log_write_list(ctx: android_log_context, id: log_id_t) -> ::std::os::raw::c_int;
62 }
63 extern "C" {
android_log_destroy(ctx: *mut android_log_context) -> ::std::os::raw::c_int64     pub fn android_log_destroy(ctx: *mut android_log_context) -> ::std::os::raw::c_int;
65 }
66 extern "C" {
__android_log_security() -> ::std::os::raw::c_int67     pub fn __android_log_security() -> ::std::os::raw::c_int;
68 }
69