summaryrefslogtreecommitdiff
path: root/gui.h
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-19 10:51:24 +0200
committerxengineering <me@xengineering.eu>2022-08-19 12:13:49 +0200
commit43aa02ccbd484d8c7cecec7c38c446847b34e007 (patch)
tree5e34779ee75c8788760d74a9f73a01575c335f54 /gui.h
parent4c848f4085cd174d1ad54169632a95023774717b (diff)
downloadlimox-43aa02ccbd484d8c7cecec7c38c446847b34e007.tar
limox-43aa02ccbd484d8c7cecec7c38c446847b34e007.tar.zst
limox-43aa02ccbd484d8c7cecec7c38c446847b34e007.zip
Implement new datastructures
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gui.h b/gui.h
index db1fe31..9bcbb1d 100644
--- a/gui.h
+++ b/gui.h
@@ -1,3 +1,8 @@
+#ifndef GUI_H
+#define GUI_H
+
+#include "data.h"
+
// interface for main.c
void gui_run(void);
@@ -6,6 +11,8 @@ void gui_connected(char* jid, char* password);
void gui_disconnected(void);
void gui_suspended(void);
void gui_resumed(void);
-void* gui_add_chat(void);
-void gui_add_message(const char* sender_jid, const char* content);
-void* gui_add_roster_item(const char* jid, const char* sub, const char* name);
+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);
+
+#endif