OreBolt-OS/modules/orebolt-pwdb/pwdb.c

37 lines
843 B
C
Executable File

/*
* pwdb.c -- Password database (stub)
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Password database + bcrypt/argon2 verify.
*
* Stub: full module surface (init/deinit) so the build links cleanly.
* against liblvgl.so. Design-phase implementation pending.
*/
#include "h2_ui.h"
#include "log_manager.h"
static lv_obj_t *pwdb_screen = NULL;
void pwdb_init(lv_obj_t *parent)
{
pwdb_screen = lv_obj_create(parent);
lv_obj_set_size(pwdb_screen, H2_LCD_WIDTH - 4, H2_LCD_HEIGHT - 4);
lv_obj_center(pwdb_screen);
lv_obj_t *lbl = lv_label_create(pwdb_screen);
lv_label_set_text(lbl, "pwdb\n(stub)");
lv_obj_center(lbl);
LOG_INF("pwdb init");
}
void pwdb_deinit(void)
{
if (pwdb_screen) {
lv_obj_del(pwdb_screen);
pwdb_screen = NULL;
}
LOG_INF("pwdb deinit");
}