2022-04-27 16:30:37 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../desktop.h"
|
2022-09-14 16:11:38 +00:00
|
|
|
#include <desktop/desktop_settings.h>
|
2022-04-27 16:30:37 +00:00
|
|
|
|
|
|
|
void desktop_pin_lock_error_notify();
|
|
|
|
|
|
|
|
uint32_t desktop_pin_lock_get_fail_timeout();
|
|
|
|
|
2022-04-29 12:02:17 +00:00
|
|
|
void desktop_pin_lock(DesktopSettings* settings);
|
2022-04-27 16:30:37 +00:00
|
|
|
|
2022-04-29 12:02:17 +00:00
|
|
|
void desktop_pin_unlock(DesktopSettings* settings);
|
2022-04-27 16:30:37 +00:00
|
|
|
|
|
|
|
bool desktop_pin_lock_is_locked();
|
|
|
|
|
|
|
|
void desktop_pin_lock_init(DesktopSettings* settings);
|
|
|
|
|
|
|
|
bool desktop_pin_lock_verify(const PinCode* pin_set, const PinCode* pin_entered);
|
|
|
|
|
|
|
|
bool desktop_pins_are_equal(const PinCode* pin_code1, const PinCode* pin_code2);
|