baryl 0.0.2

Public SDK for Baryl, a full-system emulation and introspection engine
/* automatically generated by rust-bindgen 0.72.1 */

pub const BARYL_BREAKPOINTS_ABI_VERSION: u32 = 5;
pub const BARYL_BREAKPOINTS_MIN_ABI_VERSION: u32 = 5;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct BreakpointsRef {
    pub ctx: *mut ::core::ffi::c_void,
    pub vtable: *const BreakpointsVtable,
}
impl Default for BreakpointsRef {
    fn default() -> Self {
        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct BreakpointsECB {
    pub active_count: u64,
}
pub type BpHandler = ::core::option::Option<
    unsafe extern "C" fn(obj: *mut ::core::ffi::c_void, ctl: *mut ::core::ffi::c_void, pa: u64),
>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct BreakpointsVtable {
    pub insert: ::core::option::Option<
        unsafe extern "C" fn(
            bp: BreakpointsRef,
            pa: u64,
            obj: *mut ::core::ffi::c_void,
            handler: BpHandler,
        ) -> i32,
    >,
    pub remove: ::core::option::Option<
        unsafe extern "C" fn(bp: BreakpointsRef, pa: u64, obj: *mut ::core::ffi::c_void),
    >,
    pub query: ::core::option::Option<unsafe extern "C" fn(bp: BreakpointsRef, pa: u64) -> i32>,
}