1#![deny(non_upper_case_globals)]
2#![deny(non_camel_case_types)]
3#![deny(non_snake_case)]
4#![deny(unused_mut)]
5
6#[repr(C)]
7pub struct JsonCheckerRaw {
8 pub valid: libc::c_int,
9 pub state: libc::c_int,
10 pub depth: libc::c_int,
11 pub top: libc::c_int,
12
13 pub stack: *mut libc::c_void,
14}
15
16#[link(name = "jsonchecker")]
17extern "C" {
18 pub fn new_JSON_checker(depth: libc::c_int) -> *mut JsonCheckerRaw;
19 pub fn JSON_checker_char(checker: *mut JsonCheckerRaw, next_char: libc::c_int) -> libc::c_int;
20 pub fn JSON_checker_done(jc: *mut JsonCheckerRaw) -> libc::c_int;
21}