visionkit-rs 0.2.1

Safe Rust bindings for VisionKit.framework — image analysis, Live Text, and availability-aware area coverage on macOS
Documentation
#![allow(missing_docs, non_camel_case_types)]

use core::ffi::c_char;

extern "C" {
    pub fn vk_string_free(s: *mut c_char);
    pub fn vk_bytes_free(bytes: *mut u8);
}

pub mod status {
    pub const OK: i32 = 0;
    pub const INVALID_ARGUMENT: i32 = -1;
    pub const UNAVAILABLE_ON_THIS_MACOS: i32 = -2;
    pub const TIMED_OUT: i32 = -3;
    pub const UNAVAILABLE_ON_THIS_PLATFORM: i32 = -4;
    pub const ANALYZER_NOT_SUPPORTED: i32 = -10;
    pub const FRAMEWORK_ERROR: i32 = -20;
    pub const SUBJECT_UNAVAILABLE: i32 = -30;
    pub const UNKNOWN: i32 = -99;
}