summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-08-18 23:27:21 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-08-19 21:43:07 +0200
commitd819be1c8161741e1e736521d12c06749af87527 (patch)
treed9d39e3469896b21be9ffe4b20a9d4c3d2eed553 /src/main.c
parentc24320b65ab02061223a7460a01360bd997f9e18 (diff)
src: minor rearrangement:HEADmaster
* Move ui -> tui * Add intermediate ui.h file for future implementation of different ui engines. * Add include guards * tui: use object oriented approach
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index cae9393..045ebdc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -15,8 +15,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdio.h>
+#include "ui.h"
+
int
-main(int argc, char *argv[])
+main (int argc, char* argv[])
{
- return 0;
+ ui *ui = ui_create ();
+ ui_loop (ui);
+ ui_destroy (ui);
+ return 0;
}