From d819be1c8161741e1e736521d12c06749af87527 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 18 Aug 2025 23:27:21 +0200 Subject: src: minor rearrangement: * Move ui -> tui * Add intermediate ui.h file for future implementation of different ui engines. * Add include guards * tui: use object oriented approach --- src/ui.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/ui.h') diff --git a/src/ui.h b/src/ui.h index 3e2bd00..191cc8f 100644 --- a/src/ui.h +++ b/src/ui.h @@ -14,7 +14,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -void ui_cursor_move (int x, int y); -void ui_alternate_buffer_enable (void); -void ui_alternate_buffer_disable (void); +#ifndef UI_H +#define UI_H + +/* TODO: Select this with IFDEFS */ +#include "tui.h" +#define ui tui +#define ui_create tui_create +#define ui_destroy tui_destroy +#define ui_loop tui_loop + +#endif /* UI_H */ -- cgit v1.2.3