2022-04-27 19:30:37 +03:00
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../desktop.h"
|
2022-09-14 19:11:38 +03:00
|
|
|
#include <desktop/desktop_settings.h>
|
2022-04-27 19:30:37 +03:00
|
|
|
|
|
|
|
void desktop_pin_lock_error_notify();
|
|
|
|
|
|
|
|
uint32_t desktop_pin_lock_get_fail_timeout();
|
|
|
|
|
2022-04-29 15:02:17 +03:00
|
|
|
void desktop_pin_lock(DesktopSettings* settings);
|
2022-04-27 19:30:37 +03:00
|
|
|
|
2022-04-29 15:02:17 +03:00
|
|
|
void desktop_pin_unlock(DesktopSettings* settings);
|
2022-04-27 19:30:37 +03: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);
|