use std::path::Path;

use crate::inspect::smp::bundle::SmpInspectionReport;
use crate::inspect::smp::world::SmpSaveCompanyChairmanAnalysisReport;

use super::analysis;

pub fn inspect_save_company_and_chairman_analysis_file(
    path: &Path,
) -> Result<SmpSaveCompanyChairmanAnalysisReport, Box<dyn std::error::Error>> {
    analysis::inspect_save_company_and_chairman_analysis_file(path)
}

pub fn inspect_save_company_and_chairman_analysis_bytes(
    bytes: &[u8],
    report: &SmpInspectionReport,
) -> Option<SmpSaveCompanyChairmanAnalysisReport> {
    analysis::inspect_save_company_and_chairman_analysis_bytes(bytes, report)
}
