summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-17 11:39:16 +0200
committerxengineering <me@xengineering.eu>2022-08-17 11:39:16 +0200
commitd82f48718bc6c69d734d0306867b866efc2f9719 (patch)
tree6f0d3798018af0c41729810c55546b89450e16f3 /gtk.c
parent94cca91f9c0036a5ceb95ff4099d2cdc3d9265af (diff)
downloadlimox-d82f48718bc6c69d734d0306867b866efc2f9719.tar
limox-d82f48718bc6c69d734d0306867b866efc2f9719.tar.zst
limox-d82f48718bc6c69d734d0306867b866efc2f9719.zip
Implement datastructure for roster
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk.c b/gtk.c
index 47caac0..19af543 100644
--- a/gtk.c
+++ b/gtk.c
@@ -269,11 +269,13 @@ void gui_add_message(const char* sender_jid, const char* content) {
printf("Received from %s:\n%s\n", sender_jid, content);
}
-void gui_add_roster_item(const char* jid, const char* sub, const char* name) {
+void* gui_add_roster_item(const char* jid, const char* sub, const char* name) {
if (name) {
printf("roster item: %s, %s, sub:%s\n", name, jid, sub);
} else {
printf("roster item: (no name), %s, sub:%s\n", jid, sub);
}
+
+ return NULL; // TODO return pointer to GTK widget
}