diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-31 15:40:23 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-31 15:40:23 +0200 |
commit | 5b266a4c6e22ba210086b6d9759fd8aae01abaaf (patch) | |
tree | 272f926ef806aee3404b7d23b9945f32904b6b4d /include | |
parent | 2134dfccf8be89fa5e1e595d6ec65a56ac357d78 (diff) | |
download | libgnunetchat-5b266a4c6e22ba210086b6d9759fd8aae01abaaf.tar.gz libgnunetchat-5b266a4c6e22ba210086b6d9759fd8aae01abaaf.zip |
Added account deletion and adjusted automated tests
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gnunet_chat_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index 9e3fd04..135e82e 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h | |||
@@ -362,6 +362,21 @@ GNUNET_CHAT_account_create (struct GNUNET_CHAT_Handle *handle, | |||
362 | const char* name); | 362 | const char* name); |
363 | 363 | ||
364 | /** | 364 | /** |
365 | * Deletes an existing chat account of a given chat <i>handle</i> under a | ||
366 | * unique <i>name</i>. | ||
367 | * | ||
368 | * If there is no account known to this chat handle under the provided name, the | ||
369 | * function will fail and return #GNUNET_NO. | ||
370 | * | ||
371 | * @param[in,out] handle Chat handle | ||
372 | * @param[in] name Account name | ||
373 | * @return #GNUNET_OK on success, #GNUNET_NO on failure and otherwise #GNUNET_SYSERR | ||
374 | */ | ||
375 | int | ||
376 | GNUNET_CHAT_account_delete(struct GNUNET_CHAT_Handle *handle, | ||
377 | const char* name); | ||
378 | |||
379 | /** | ||
365 | * Iterates through the accounts of a given chat <i>handle</i> with a selected | 380 | * Iterates through the accounts of a given chat <i>handle</i> with a selected |
366 | * callback and custom closure. | 381 | * callback and custom closure. |
367 | * | 382 | * |