Skip to content

Commit 89746c4

Browse files
authored
Merge pull request #6 from dextero/is-loggable
Add __android_log_is_loggable_len
2 parents 632dc73 + 4e32c70 commit 89746c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ pub type c_va_list = raw::c_void;
1313
pub type c_int = raw::c_int;
1414
#[allow(non_camel_case_types)]
1515
pub type c_char = raw::c_char;
16+
#[allow(non_camel_case_types)]
17+
pub type c_size_t = raw::c_ulong;
1618

1719
// automatically generated by rust-bindgen
1820

@@ -89,5 +91,10 @@ extern "C" {
8991
tag: *const c_char,
9092
default_prio: c_int)
9193
-> c_int;
94+
pub fn __android_log_is_loggable_len(prio: c_int,
95+
tag: *const c_char,
96+
size: c_size_t,
97+
default_prio: c_int)
98+
-> c_int;
9299
pub fn __android_log_write_log_message(log_message: *mut __android_log_message);
93100
}

0 commit comments

Comments
 (0)