aboutsummaryrefslogtreecommitdiff
path: root/src/ui/contact_entry.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-04-23 19:13:29 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-04-23 19:13:29 +0200
commit8f53a6e879f360e80941cb6e9d502d7522bbeeba (patch)
tree272195e4de223342ed88a69cc20137f9b0440da2 /src/ui/contact_entry.h
parentfc56c6148f22d363a27c7a39d8d97a2d4d908a92 (diff)
downloadmessenger-gtk-8f53a6e879f360e80941cb6e9d502d7522bbeeba.tar.gz
messenger-gtk-8f53a6e879f360e80941cb6e9d502d7522bbeeba.zip
Added doxygen comments to all functions in the headers
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/contact_entry.h')
-rw-r--r--src/ui/contact_entry.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/ui/contact_entry.h b/src/ui/contact_entry.h
index a9ff9dd..dc692de 100644
--- a/src/ui/contact_entry.h
+++ b/src/ui/contact_entry.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 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 6 under the terms of the GNU Affero General Public License as published
@@ -39,13 +39,35 @@ typedef struct UI_CONTACT_ENTRY_Handle
39 GtkLabel *subtitle_label; 39 GtkLabel *subtitle_label;
40} UI_CONTACT_ENTRY_Handle; 40} UI_CONTACT_ENTRY_Handle;
41 41
42/**
43 * Allocates and creates a new contact entry
44 * handle to manage a contact in a list for
45 * a given messenger application.
46 *
47 * @param app Messenger application
48 * @return New contact entry handle
49 */
42UI_CONTACT_ENTRY_Handle* 50UI_CONTACT_ENTRY_Handle*
43ui_contact_entry_new(MESSENGER_Application *app); 51ui_contact_entry_new(MESSENGER_Application *app);
44 52
53/**
54 * Sets the content of the given contact entry
55 * handle respectively to visually represent a
56 * selected chat contact.
57 *
58 * @param handle Contact entry handle
59 * @param contact Chat contact
60 */
45void 61void
46ui_contact_entry_set_contact(UI_CONTACT_ENTRY_Handle* handle, 62ui_contact_entry_set_contact(UI_CONTACT_ENTRY_Handle* handle,
47 const struct GNUNET_CHAT_Contact *contact); 63 const struct GNUNET_CHAT_Contact *contact);
48 64
65/**
66 * Frees its resources and destroys a given
67 * contact entry handle.
68 *
69 * @param handle Contact entry handle
70 */
49void 71void
50ui_contact_entry_delete(UI_CONTACT_ENTRY_Handle *handle); 72ui_contact_entry_delete(UI_CONTACT_ENTRY_Handle *handle);
51 73