use vala_sys as ffi;
use crate::object::RawWrapper;
use crate::Report;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ReportLevel {
Note,
Deprecated,
Experimental,
Warning,
Error,
}
impl Report {
pub fn errors(&self) -> i32 {
unsafe { ffi::vala_report_get_errors(self.as_raw()) }
}
pub fn warnings(&self) -> i32 {
unsafe { ffi::vala_report_get_warnings(self.as_raw()) }
}
pub fn has_errors(&self) -> bool {
self.errors() > 0
}
}