From 22504147521a36c513c200f9ed3f413b679d3f75 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Wed, 15 Dec 2021 01:11:43 +0100 Subject: Implemented updating of labels regarding contact names in chats Signed-off-by: TheJackiMonster --- src/contact.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/contact.h (limited to 'src/contact.h') diff --git a/src/contact.h b/src/contact.h new file mode 100644 index 0000000..1672c65 --- /dev/null +++ b/src/contact.h @@ -0,0 +1,48 @@ +/* + This file is part of GNUnet. + Copyright (C) 2021 GNUnet e.V. + + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + GNUnet is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + SPDX-License-Identifier: AGPL3.0-or-later + */ +/* + * @author Tobias Frisch + * @file contact.h + */ + +#ifndef CONTACT_H_ +#define CONTACT_H_ + +#include "application.h" + +typedef struct MESSENGER_ContactInfo +{ + GList *name_labels; +} MESSENGER_ContactInfo; + +void +contact_create_info(struct GNUNET_CHAT_Contact *contact); + +void +contact_destroy_info(struct GNUNET_CHAT_Contact *contact); + +void +contact_add_name_label_to_info(const struct GNUNET_CHAT_Contact *contact, + GtkLabel *label); + +void +contact_update_info(const struct GNUNET_CHAT_Contact *contact); + +#endif /* CONTACT_H_ */ -- cgit v1.2.3