aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat_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/chat_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/chat_entry.h')
-rw-r--r--src/ui/chat_entry.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ui/chat_entry.h b/src/ui/chat_entry.h
index 1e2896f..4eb5431 100644
--- a/src/ui/chat_entry.h
+++ b/src/ui/chat_entry.h
@@ -47,17 +47,50 @@ typedef struct UI_CHAT_ENTRY_Handle
47 GtkImage *read_receipt_image; 47 GtkImage *read_receipt_image;
48} UI_CHAT_ENTRY_Handle; 48} UI_CHAT_ENTRY_Handle;
49 49
50/**
51 * Allocates and creates a new chat entry
52 * handle to manage a chat in a list for
53 * a given messenger application.
54 *
55 * @param app Messenger application
56 * @return New chat entry handle
57 */
50UI_CHAT_ENTRY_Handle* 58UI_CHAT_ENTRY_Handle*
51ui_chat_entry_new(MESSENGER_Application *app); 59ui_chat_entry_new(MESSENGER_Application *app);
52 60
61/**
62 * Updates a given chat entry handle with the
63 * current state of a messenger application and
64 * the chat context the chat entry is
65 * representing.
66 *
67 * @param handle Chat entry handle
68 * @param app Messenger application
69 * @param context Chat context
70 */
53void 71void
54ui_chat_entry_update(UI_CHAT_ENTRY_Handle *handle, 72ui_chat_entry_update(UI_CHAT_ENTRY_Handle *handle,
55 MESSENGER_Application *app, 73 MESSENGER_Application *app,
56 struct GNUNET_CHAT_Context *context); 74 struct GNUNET_CHAT_Context *context);
57 75
76/**
77 * Frees its resources and destroys a given
78 * chat entry handle.
79 *
80 * @param handle Chat entry handle
81 */
58void 82void
59ui_chat_entry_delete(UI_CHAT_ENTRY_Handle *handle); 83ui_chat_entry_delete(UI_CHAT_ENTRY_Handle *handle);
60 84
85/**
86 * Fully disposes all resources and handles
87 * which are linked to a given chat entry
88 * handle by a messenger application. The chat
89 * entry handle will be deleted as well.
90 *
91 * @param handle Chat entry handle
92 * @param app Messenger application
93 */
61void 94void
62ui_chat_entry_dispose(UI_CHAT_ENTRY_Handle *handle, 95ui_chat_entry_dispose(UI_CHAT_ENTRY_Handle *handle,
63 MESSENGER_Application *app); 96 MESSENGER_Application *app);