diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-04-06 02:30:45 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-04-06 02:30:45 +0200 |
commit | 4423dd264ef99fe9617e5d871857d15e88639f51 (patch) | |
tree | b242b1ad2fb5d433000dd6d5c1f1d6d5b9c665dd /src/gnunet_chat_handle.h | |
parent | de5dccb421f01bb09764ae1da40cb226c30b8d45 (diff) | |
download | libgnunetchat-4423dd264ef99fe9617e5d871857d15e88639f51.tar.gz libgnunetchat-4423dd264ef99fe9617e5d871857d15e88639f51.zip |
Added some safety for stopping chat handle
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_handle.h')
-rw-r--r-- | src/gnunet_chat_handle.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle.h b/src/gnunet_chat_handle.h index 3028186..37a6faf 100644 --- a/src/gnunet_chat_handle.h +++ b/src/gnunet_chat_handle.h | |||
@@ -177,6 +177,30 @@ void | |||
177 | handle_disconnect (struct GNUNET_CHAT_Handle *handle); | 177 | handle_disconnect (struct GNUNET_CHAT_Handle *handle); |
178 | 178 | ||
179 | /** | 179 | /** |
180 | * Enqueues a creation for a chat account with a specific | ||
181 | * <i>name</i> as identifier for a given chat <i>handle</i>. | ||
182 | * | ||
183 | * @param[in,out] handle Chat handle | ||
184 | * @param[in] name Chat account name | ||
185 | * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR | ||
186 | */ | ||
187 | int | ||
188 | handle_create_account (struct GNUNET_CHAT_Handle *handle, | ||
189 | const char *name); | ||
190 | |||
191 | /** | ||
192 | * Enqueues a deletion for a chat account with a specific | ||
193 | * <i>name</i> as identifier for a given chat <i>handle</i>. | ||
194 | * | ||
195 | * @param[in,out] handle Chat handle | ||
196 | * @param[in] name Chat account name | ||
197 | * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR | ||
198 | */ | ||
199 | int | ||
200 | handle_delete_account (struct GNUNET_CHAT_Handle *handle, | ||
201 | const char *name); | ||
202 | |||
203 | /** | ||
180 | * Returns the main directory path to store information | 204 | * Returns the main directory path to store information |
181 | * of a given chat <i>handle</i>. | 205 | * of a given chat <i>handle</i>. |
182 | * | 206 | * |