heartbeats_simple_sys/lib.rs
1extern crate libc;
2
3mod hbs_common_sys;
4mod hbs_sys;
5mod hbs_acc_sys;
6mod hbs_pow_sys;
7mod hbs_acc_pow_sys;
8
9pub use hbs_common_sys::*;
10pub use hbs_sys::*;
11pub use hbs_acc_sys::*;
12pub use hbs_pow_sys::*;
13pub use hbs_acc_pow_sys::*;
14
15#[cfg(test)]
16mod test {
17 use super::*;
18
19 #[test]
20 fn test() {
21 // just tests that library is linked properly
22 unsafe {
23 hb_log_header(0);
24 hb_acc_log_header(0);
25 hb_pow_log_header(0);
26 hb_acc_pow_log_header(0);
27 }
28 return;
29 }
30}