/* SPDX-License-Identifier: MIT */ /* Copyright (c) 2026 Oleksandr Zhylin */ #ifndef W_LFL_H /* LOCAL FILE LIST */ #define W_LFL_H #include "app.h" #include #include #include #include typedef struct fs_fl_item { char *name; char *path; struct fs_fl_item *next; struct fs_fl_item *prev; u_char d_type; } w_lfl_item_t; typedef struct { w_t w; w_lfl_item_t *current; w_lfl_item_t *start; w_lfl_item_t *page_start; int32_t current_idx; int32_t rows_num; int32_t cur_page; int32_t pages_num; size_t files_num; WINDOW *win_info; WINDOW *win_list; char *d_path; } w_lfl_ui_t; void w_lfl_draw(w_lfl_ui_t *fl_ui); void w_lfl_destroy(w_lfl_ui_t *fl_ui); void w_lfl_cb(w_cb_args_t *args); void w_lfl_reset(w_lfl_ui_t *fl_ui); w_lfl_ui_t *w_lfl_init(WINDOW **win, w_t *w_parent); w_lfl_ui_t *w_lfl_init_win(w_app_t *app); #endif