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 /src/gnunet_chat_lib.c | |
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 'src/gnunet_chat_lib.c')
-rw-r--r-- | src/gnunet_chat_lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index fae83d2..f1421af 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -332,6 +332,16 @@ GNUNET_CHAT_contact_get_user_pointer (const struct GNUNET_CHAT_Contact *contact) | |||
332 | 332 | ||
333 | 333 | ||
334 | int | 334 | int |
335 | GNUNET_CHAT_contact_is_owned (const struct GNUNET_CHAT_Contact *contact) | ||
336 | { | ||
337 | if (!contact) | ||
338 | return GNUNET_SYSERR; | ||
339 | |||
340 | return contact->is_owned; | ||
341 | } | ||
342 | |||
343 | |||
344 | int | ||
335 | GNUNET_CHAT_group_leave (struct GNUNET_CHAT_Group *group) | 345 | GNUNET_CHAT_group_leave (struct GNUNET_CHAT_Group *group) |
336 | { | 346 | { |
337 | if (!group) | 347 | if (!group) |