#[repr(C)]
#[derive(Debug, Copy)]
pub struct fi_ops_cntr
{
pub size: usize,
pub read: Option<unsafe extern "C" fn(cntr: *mut fid_cntr) -> u64>,
pub readerr: Option<unsafe extern "C" fn(cntr: *mut fid_cntr) -> u64>,
pub add: Option<unsafe extern "C" fn(cntr: *mut fid_cntr, value: u64) -> c_int>,
pub set: Option<unsafe extern "C" fn(cntr: *mut fid_cntr, value: u64) -> c_int>,
pub wait: Option<unsafe extern "C" fn(cntr: *mut fid_cntr, threshold: u64, timeout: c_int) -> c_int>,
pub adderr: Option<unsafe extern "C" fn(cntr: *mut fid_cntr, value: u64) -> c_int>,
pub seterr: Option<unsafe extern "C" fn(cntr: *mut fid_cntr, value: u64) -> c_int>,
}
impl Clone for fi_ops_cntr
{
#[inline(always)]
fn clone(&self) -> Self
{
*self
}
}
impl Default for fi_ops_cntr
{
#[inline(always)]
fn default() -> Self
{
unsafe { zeroed() }
}
}