removed opus restructure comments

This commit is contained in:
Timo Niemann
2026-07-01 15:28:35 +02:00
parent b7d7665fde
commit f428bef893
3 changed files with 0 additions and 18 deletions
-8
View File
@@ -1,16 +1,8 @@
#pragma once #pragma once
#include <stddef.h> #include <stddef.h>
#include "lvgl.h" #include "lvgl.h"
// Builds the image-browser view (tileview with tiles, or the empty-state
// placeholder) onto the given screen. The caller must hold the LVGL lock.
void ui_image_browser_build_view(lv_obj_t *screen); void ui_image_browser_build_view(lv_obj_t *screen);
// Stops the slideshow and clears browser state; call before the active screen
// is cleared.
void ui_image_browser_reset(void); void ui_image_browser_reset(void);
// Number of images shown by the most recent build (used for logging).
size_t ui_image_browser_get_image_count(void); size_t ui_image_browser_get_image_count(void);
-7
View File
@@ -2,14 +2,7 @@
#include "lvgl.h" #include "lvgl.h"
// Appends a line to the scrollback log. Safe to call before the log view
// exists and from any task; the line is always stored in the ring buffer.
void ui_log_append(const char *text); void ui_log_append(const char *text);
void ui_log_appendf(const char *format, ...); void ui_log_appendf(const char *format, ...);
// Builds the log view (title + textarea) onto the given screen and restores
// the ring-buffer history. The caller must hold the LVGL lock.
void ui_log_build_view(lv_obj_t *screen); void ui_log_build_view(lv_obj_t *screen);
// Drops the textarea reference; call before the active screen is cleared.
void ui_log_detach(void); void ui_log_detach(void);
-3
View File
@@ -21,8 +21,6 @@ static size_t ui_log_buffer_index(size_t line_offset){
return (log_line_start + line_offset) % UI_LOG_MAX_LINES; return (log_line_start + line_offset) % UI_LOG_MAX_LINES;
} }
// Stores text in the ring buffer, sets *out_evicted when the oldest line had to
// be dropped, and returns the stored (possibly truncated) line.
static const char *ui_log_store_line(const char *text, bool *out_evicted){ static const char *ui_log_store_line(const char *text, bool *out_evicted){
size_t line_index; size_t line_index;
bool evicted = false; bool evicted = false;
@@ -65,7 +63,6 @@ void ui_log_append(const char *text){
if(log_textarea == NULL) return; if(log_textarea == NULL) return;
lvgl_port_lock(0); lvgl_port_lock(0);
// Appending a line is O(1); only a dropped oldest line forces a full rebuild.
if(evicted) ui_log_render_all_locked(); if(evicted) ui_log_render_all_locked();
else ui_log_append_line_locked(stored_line); else ui_log_append_line_locked(stored_line);
lvgl_port_unlock(); lvgl_port_unlock();