localauthentication/ffi/
la_error.rs1use core::ffi::c_char;
2
3pub const AUTHENTICATION_FAILED: i32 = -1;
4pub const USER_CANCEL: i32 = -2;
5pub const USER_FALLBACK: i32 = -3;
6pub const SYSTEM_CANCEL: i32 = -4;
7pub const PASSCODE_NOT_SET: i32 = -5;
8pub const BIOMETRY_NOT_AVAILABLE: i32 = -6;
9pub const BIOMETRY_NOT_ENROLLED: i32 = -7;
10pub const BIOMETRY_LOCKOUT: i32 = -8;
11pub const APP_CANCEL: i32 = -9;
12pub const INVALID_CONTEXT: i32 = -10;
13pub const WATCH_NOT_AVAILABLE: i32 = -11;
14pub const COMPANION_NOT_AVAILABLE: i32 = -11;
15pub const BIOMETRY_NOT_PAIRED: i32 = -12;
16pub const BIOMETRY_DISCONNECTED: i32 = -13;
17pub const INVALID_DIMENSIONS: i32 = -14;
18pub const NOT_INTERACTIVE: i32 = -1004;
19
20extern "C" {
21 pub fn la_error_copy_domain(out_domain: *mut *mut c_char, error_out: *mut *mut c_char) -> i32;
22}