diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-16 00:58:44 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-16 00:58:44 +0100 |
commit | 98852b955cacf792adc9a02682e3d23b5e6ee979 (patch) | |
tree | 8b6b5f3825046a31c5d1739eae1945df37fd106e /include | |
parent | bf0bb934cc4c62c4aefedaab205ba0035747bdd4 (diff) | |
download | libgnunetchat-98852b955cacf792adc9a02682e3d23b5e6ee979.tar.gz libgnunetchat-98852b955cacf792adc9a02682e3d23b5e6ee979.zip |
Added function to check if a contact is owned by the account
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gnunet_chat_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index b4a8075..2eec1d6 100644 --- a/include/gnunet_chat_lib.h +++ b/include/gnunet_chat_lib.h | |||
@@ -443,6 +443,17 @@ void* | |||
443 | GNUNET_CHAT_contact_get_user_pointer (const struct GNUNET_CHAT_Contact *contact); | 443 | GNUNET_CHAT_contact_get_user_pointer (const struct GNUNET_CHAT_Contact *contact); |
444 | 444 | ||
445 | /** | 445 | /** |
446 | * Returns if a given <i>contact</i> is owned as account and whether it has | ||
447 | * sent messages with. | ||
448 | * | ||
449 | * @param[in] contact Contact | ||
450 | * @return GNUNET_YES if the contact is owned, otherwise GNUNET_NO | ||
451 | * and GNUNET_SYSERR on failure | ||
452 | */ | ||
453 | int | ||
454 | GNUNET_CHAT_contact_is_owned (const struct GNUNET_CHAT_Contact *contact); | ||
455 | |||
456 | /** | ||
446 | * Leaves a specific <i>group</i> chat and frees its memory if it is not shared | 457 | * Leaves a specific <i>group</i> chat and frees its memory if it is not shared |
447 | * with other groups or contacts. | 458 | * with other groups or contacts. |
448 | * | 459 | * |