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_environment;
14pub mod la_error;
15pub mod la_persisted_right;
16pub mod la_policy;
17pub mod la_public_key;
18pub mod la_right;
19pub mod la_right_store;
20
21pub mod status {
22    pub const OK: i32 = 0;
23    pub const INVALID_ARGUMENT: i32 = -10_000;
24    pub const TIMED_OUT: i32 = -10_001;
25    pub const BRIDGE_FAILED: i32 = -10_002;
26    pub const UNKNOWN: i32 = -10_099;
27}
28
29pub mod biometry {
30    pub const NONE: i32 = 0;
31    pub const TOUCH_ID: i32 = 1;
32    pub const FACE_ID: i32 = 2;
33    pub const OPTIC_ID: i32 = 4;
34}
35
36pub mod companion {
37    pub const WATCH: i32 = 1;
38    pub const MAC: i32 = 2;
39    pub const VISION: i32 = 4;
40}