#[repr(C)]
#[derive(Debug, Copy)]
pub struct fi_ops
{
pub size: usize,
pub close: Option<unsafe extern "C" fn(fid: *mut fid) -> c_int>,
pub bind: Option<unsafe extern "C" fn(fid: *mut fid, bfid: *mut fid, flags: u64) -> c_int>,
pub control: Option<unsafe extern "C" fn(fid: *mut fid, command: c_int, arg: *mut c_void) -> c_int>,
pub ops_open: Option<unsafe extern "C" fn(fid: *mut fid, name: *const c_char, flags: u64, ops: *mut *mut c_void, context: *mut c_void) -> c_int>,
}
impl Clone for fi_ops
{
#[inline(always)]
fn clone(&self) -> Self
{
*self
}
}
impl Default for fi_ops
{
#[inline(always)]
fn default() -> Self
{
unsafe { zeroed() }
}
}