#[repr(C)]
pub struct Position {
pub line: usize,
pub column: usize,
pub index: usize,
}
#[repr(C)]
pub struct Diagnostic {
pub position: Position,
pub error: *const std::os::raw::c_char,
pub is_text_source: bool,
}
#[derive(Copy, Clone, PartialEq, Debug)]
#[repr(C)]
pub enum MessageLevel {
Fatal,
InternalError,
Error,
Warning,
Info,
Debug,
}
pub type MessageCallback = extern "C" fn(
MessageLevel, *const std::os::raw::c_char, *const Position, *const std::os::raw::c_char, *mut std::ffi::c_void, );
unsafe extern "C" {
#[link_name = "spvDiagnosticDestroy"]
pub fn diagnostic_destroy(diag: *mut Diagnostic);
}