38 lines
976 B
C
38 lines
976 B
C
/*
|
|
* bitchat.c -- OreBolt OS v1.4 module: bitchat
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*
|
|
* Mesh chat networking (see src/modules/mod_bitchat_mesh.c).
|
|
*
|
|
* v1.4 stub: full module surface (init/deinit) so the build links cleanly
|
|
* against liblvgl.so. Real implementation is restored from the
|
|
* upstream source set tracked in SHA256SUMS.
|
|
*/
|
|
#include "h2_ui.h"
|
|
#include "log_manager.h"
|
|
|
|
static lv_obj_t *bitchat_screen = NULL;
|
|
|
|
void bitchat_init(lv_obj_t *parent)
|
|
{
|
|
bitchat_screen = lv_obj_create(parent);
|
|
lv_obj_set_size(bitchat_screen, H2_LCD_WIDTH - 4, H2_LCD_HEIGHT - 4);
|
|
lv_obj_center(bitchat_screen);
|
|
|
|
lv_obj_t *lbl = lv_label_create(bitchat_screen);
|
|
lv_label_set_text(lbl, "bitchat\nv1.4 (stub)");
|
|
lv_obj_center(lbl);
|
|
|
|
LOG_INF("bitchat init");
|
|
}
|
|
|
|
void bitchat_deinit(void)
|
|
{
|
|
if (bitchat_screen) {
|
|
lv_obj_del(bitchat_screen);
|
|
bitchat_screen = NULL;
|
|
}
|
|
LOG_INF("bitchat deinit");
|
|
}
|