1extern crate libc;
5
6use libc::{c_char, c_int, c_void, size_t};
7
8#[allow(non_camel_case_types)]
9pub type uchardet_t = *mut c_void;
10
11#[allow(non_camel_case_types)]
12pub type nsresult = c_int;
13
14extern {
15 pub fn uchardet_new() -> uchardet_t;
16 pub fn uchardet_delete(ud: uchardet_t);
17 pub fn uchardet_handle_data(ud: uchardet_t, data: *const c_char,
18 len: size_t) -> nsresult;
19 pub fn uchardet_data_end(ud: uchardet_t);
20 pub fn uchardet_reset(ud: uchardet_t);
21 pub fn uchardet_get_charset(ud: uchardet_t) -> *const c_char;
22}