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
#![allow(non_camel_case_types)]
extern crate libc;
use libc::{uint64_t, c_double, c_int};
#[repr(C)]
pub struct heartbeat_udata {
pub global: uint64_t,
pub window: uint64_t,
}
#[repr(C)]
pub struct heartbeat_rates {
pub global: c_double,
pub window: c_double,
pub instant: c_double,
}
#[repr(C)]
pub struct heartbeat_window_state {
pub buffer_index: uint64_t,
pub read_index: uint64_t,
pub window_size: uint64_t,
pub log_fd: c_int,
}