From 54732fa0ffc24c87aa9dc786a47545c675c28cec Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 7 Oct 2022 19:58:38 +0200 Subject: Add empty SDL based gui.h implementation --- meson.build | 2 ++ sdl.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 sdl.c diff --git a/meson.build b/meson.build index 9bd034a..4b57931 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,6 @@ project('LimoX', 'c') gtkdep = dependency('gtk4') strophedep = dependency('libstrophe') +sdldep = dependency('sdl2') executable('limox', ['main.c', 'gtk.c', 'net.c', 'data.c'], dependencies : [gtkdep, strophedep]) +executable('limox_sdl', ['main.c', 'sdl.c', 'net.c', 'data.c'], dependencies : [sdldep, strophedep]) diff --git a/sdl.c b/sdl.c new file mode 100644 index 0000000..c17e0f8 --- /dev/null +++ b/sdl.c @@ -0,0 +1,29 @@ + + +#include "net.h" +#include "data.h" + + +void gui_run(void) { + +} + +void gui_connected(char* jid, char* password) { + +} + +void gui_disconnected(void) { + +} + +void gui_add_roster_item_widget(roster_item_t* item) { + +} + +void gui_add_chat_widget(chat_t* chat) { + +} + +void gui_add_message_widget(message_t* message, chat_t* chat) { + +} -- cgit v1.2.3-70-g09d2