aboutsummaryrefslogtreecommitdiff
path: root/src/contact.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-12-15 01:11:43 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-12-15 01:11:43 +0100
commit22504147521a36c513c200f9ed3f413b679d3f75 (patch)
tree1c6f11351f1c753c4bb92be4d9375ca9d8941ce9 /src/contact.h
parentcbefefb69b4db53fad2c01d45b66d9056bc98fdb (diff)
downloadmessenger-gtk-22504147521a36c513c200f9ed3f413b679d3f75.tar.gz
messenger-gtk-22504147521a36c513c200f9ed3f413b679d3f75.zip
Implemented updating of labels regarding contact names in chats
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/contact.h')
-rw-r--r--src/contact.h48
1 files changed, 48 insertions, 0 deletions
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 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20/*
21 * @author Tobias Frisch
22 * @file contact.h
23 */
24
25#ifndef CONTACT_H_
26#define CONTACT_H_
27
28#include "application.h"
29
30typedef struct MESSENGER_ContactInfo
31{
32 GList *name_labels;
33} MESSENGER_ContactInfo;
34
35void
36contact_create_info(struct GNUNET_CHAT_Contact *contact);
37
38void
39contact_destroy_info(struct GNUNET_CHAT_Contact *contact);
40
41void
42contact_add_name_label_to_info(const struct GNUNET_CHAT_Contact *contact,
43 GtkLabel *label);
44
45void
46contact_update_info(const struct GNUNET_CHAT_Contact *contact);
47
48#endif /* CONTACT_H_ */