heartbeats_simple_sys/
hbs_common_sys.rs1#![allow(non_camel_case_types)]
2
3use libc::{uint64_t, c_double, c_int};
4
5#[repr(C)]
7pub struct heartbeat_udata {
8 pub global: uint64_t,
9 pub window: uint64_t,
10}
11
12#[repr(C)]
14pub struct heartbeat_rates {
15 pub global: c_double,
16 pub window: c_double,
17 pub instant: c_double,
18}
19
20#[repr(C)]
22pub struct heartbeat_window_state {
23 pub buffer_index: uint64_t,
24 pub read_index: uint64_t,
25 pub window_size: uint64_t,
26 pub log_fd: c_int,
27}