/* * scalpel.c -- OreBolt OS v1.4 module: nettap * * SPDX-License-Identifier: GPL-2.0-or-later * * Network traffic capture and carving. * * 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 *scalpel_screen = NULL; void scalpel_init(lv_obj_t *parent) { scalpel_screen = lv_obj_create(parent); lv_obj_set_size(scalpel_screen, H2_LCD_WIDTH - 4, H2_LCD_HEIGHT - 4); lv_obj_center(scalpel_screen); lv_obj_t *lbl = lv_label_create(scalpel_screen); lv_label_set_text(lbl, "scalpel\nv1.4 (stub)"); lv_obj_center(lbl); LOG_INF("scalpel init"); } void scalpel_deinit(void) { if (scalpel_screen) { lv_obj_del(scalpel_screen); scalpel_screen = NULL; } LOG_INF("scalpel deinit"); }