1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
extern crate libc;

mod hbs_common_sys;
mod hbs_sys;
mod hbs_acc_sys;
mod hbs_pow_sys;
mod hbs_acc_pow_sys;

pub use hbs_common_sys::*;
pub use hbs_sys::*;
pub use hbs_acc_sys::*;
pub use hbs_pow_sys::*;
pub use hbs_acc_pow_sys::*;

#[cfg(test)]
mod test {
    use super::*;

    #[test]
    fn test() {
        // just tests that library is linked properly
        unsafe {
            hb_log_header(0);
            hb_acc_log_header(0);
            hb_pow_log_header(0);
            hb_acc_pow_log_header(0);
        }
        return;
    }
}