pub type CradleCheckApiVerFn = extern "C" fn() -> u32;
pub type CradleCleanupFn = extern "C" fn();
#[repr(C)]
pub struct FfiEvent {
pub kind: u32,
pub pid: u32,
pub process: isize,
pub dll_name: *const std::os::raw::c_char,
pub dll_base: usize,
pub tid: u32,
pub thread_handle: isize,
pub dbg_string: *const u8,
pub target_path: *const u8,
pub target_bytes: *const u8,
pub target_bytes_len: usize,
}
pub const EVENT_PROCESS_CREATED: u32 = 1;
pub const EVENT_DLL_LOADED: u32 = 2;
pub const EVENT_INITIAL_BREAKPOINT: u32 = 3;
pub const EVENT_FINISHED: u32 = 4;
pub const EVENT_THREAD_CREATED: u32 = 5;
pub const EVENT_THREAD_FINISHED: u32 = 6;
pub const EVENT_DEBUG_STRING: u32 = 7;
pub const EVENT_AGENT_INITIALIZED: u32 = 8;
pub const EVENT_AGENT_FINISHED: u32 = 9;
#[repr(C)]
pub struct FfiResultArray {
pub ptr: *mut FfiCheckResult,
pub len: usize,
}
#[repr(C)]
pub struct FfiStringArray {
pub ptr: *mut *mut std::os::raw::c_char,
pub len: usize,
}
#[repr(C)]
pub struct FfiCheckResult {
pub plugin: *mut std::os::raw::c_char,
pub check: *mut std::os::raw::c_char,
pub severity: u32,
pub message: *mut std::os::raw::c_char,
pub details: *mut std::os::raw::c_char,
}