diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-04-23 19:13:29 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-04-23 19:13:29 +0200 |
commit | 8f53a6e879f360e80941cb6e9d502d7522bbeeba (patch) | |
tree | 272195e4de223342ed88a69cc20137f9b0440da2 /src/ui/message.h | |
parent | fc56c6148f22d363a27c7a39d8d97a2d4d908a92 (diff) | |
download | messenger-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/message.h')
-rw-r--r-- | src/ui/message.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ui/message.h b/src/ui/message.h index f86ac3b..84ec7e8 100644 --- a/src/ui/message.h +++ b/src/ui/message.h | |||
@@ -84,18 +84,48 @@ typedef struct UI_MESSAGE_Handle | |||
84 | guint redraw_animation; | 84 | guint redraw_animation; |
85 | } UI_MESSAGE_Handle; | 85 | } UI_MESSAGE_Handle; |
86 | 86 | ||
87 | /** | ||
88 | * Allocates and creates a new message handle | ||
89 | * to represent a message for a given messenger | ||
90 | * application by selected message type. | ||
91 | * | ||
92 | * @param app Messenger application | ||
93 | * @param type Message type | ||
94 | * @return New message handle | ||
95 | */ | ||
87 | UI_MESSAGE_Handle* | 96 | UI_MESSAGE_Handle* |
88 | ui_message_new(MESSENGER_Application *app, | 97 | ui_message_new(MESSENGER_Application *app, |
89 | UI_MESSAGE_Type type); | 98 | UI_MESSAGE_Type type); |
90 | 99 | ||
100 | /** | ||
101 | * Refreshes the visual state of the read receipt | ||
102 | * from a given message handle. | ||
103 | * | ||
104 | * @param handle Message handle | ||
105 | */ | ||
91 | void | 106 | void |
92 | ui_message_refresh(UI_MESSAGE_Handle *handle); | 107 | ui_message_refresh(UI_MESSAGE_Handle *handle); |
93 | 108 | ||
109 | /** | ||
110 | * Updates a given message handle with the | ||
111 | * current data from a messenger application | ||
112 | * and a selected chat message. | ||
113 | * | ||
114 | * @param handle Message handle | ||
115 | * @param app Messenger application | ||
116 | * @param message Chat message | ||
117 | */ | ||
94 | void | 118 | void |
95 | ui_message_update(UI_MESSAGE_Handle *handle, | 119 | ui_message_update(UI_MESSAGE_Handle *handle, |
96 | MESSENGER_Application *app, | 120 | MESSENGER_Application *app, |
97 | const struct GNUNET_CHAT_Message *message); | 121 | const struct GNUNET_CHAT_Message *message); |
98 | 122 | ||
123 | /** | ||
124 | * Frees its resources and destroys a given | ||
125 | * message handle. | ||
126 | * | ||
127 | * @param handle Message handle | ||
128 | */ | ||
99 | void | 129 | void |
100 | ui_message_delete(UI_MESSAGE_Handle *handle); | 130 | ui_message_delete(UI_MESSAGE_Handle *handle); |
101 | 131 | ||