Skip to main content

localauthentication/ffi/
mod.rs

1//! Raw FFI declarations matching the Swift `la_*` bridge exports.
2
3#![allow(
4    non_camel_case_types,
5    non_snake_case,
6    non_upper_case_globals,
7    missing_docs
8)]
9
10pub mod la_authentication_requirement;
11pub mod la_context;
12pub mod la_credential;
13pub mod la_error;
14pub mod la_persisted_right;
15pub mod la_policy;
16pub mod la_public_key;
17pub mod la_right;
18pub mod la_right_store;
19
20pub mod status {
21    pub const OK: i32 = 0;
22    pub const INVALID_ARGUMENT: i32 = -10_000;
23    pub const TIMED_OUT: i32 = -10_001;
24    pub const BRIDGE_FAILED: i32 = -10_002;
25    pub const UNKNOWN: i32 = -10_099;
26}
27
28pub mod biometry {
29    pub const NONE: i32 = 0;
30    pub const TOUCH_ID: i32 = 1;
31    pub const FACE_ID: i32 = 2;
32    pub const OPTIC_ID: i32 = 4;
33}
34
35pub mod companion {
36    pub const WATCH: i32 = 1;
37    pub const MAC: i32 = 2;
38    pub const VISION: i32 = 4;
39}