Skip to main content

visionkit/ffi/
core.rs

1#![allow(missing_docs, non_camel_case_types)]
2
3use core::ffi::c_char;
4
5extern "C" {
6    pub fn vk_string_free(s: *mut c_char);
7    pub fn vk_bytes_free(bytes: *mut u8);
8}
9
10pub mod status {
11    pub const OK: i32 = 0;
12    pub const INVALID_ARGUMENT: i32 = -1;
13    pub const UNAVAILABLE_ON_THIS_MACOS: i32 = -2;
14    pub const TIMED_OUT: i32 = -3;
15    pub const UNAVAILABLE_ON_THIS_PLATFORM: i32 = -4;
16    pub const ANALYZER_NOT_SUPPORTED: i32 = -10;
17    pub const FRAMEWORK_ERROR: i32 = -20;
18    pub const SUBJECT_UNAVAILABLE: i32 = -30;
19    pub const UNKNOWN: i32 = -99;
20}