diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-06-27 22:18:12 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-06-27 22:18:12 +0200 |
commit | 464a3abaef4fd7e11c5c535c2a719a33eccb5ae9 (patch) | |
tree | e29a7ab95f894e3a720454fe47e511ead8c1192f /src/messenger | |
parent | fa9e2e2b89313349d653cbf4ce1df8a49280a8c2 (diff) | |
download | gnunet-464a3abaef4fd7e11c5c535c2a719a33eccb5ae9.tar.gz gnunet-464a3abaef4fd7e11c5c535c2a719a33eccb5ae9.zip |
-added function to get the key of a room
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger')
-rw-r--r-- | src/messenger/messenger_api.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messenger/messenger_api.c b/src/messenger/messenger_api.c index 1eedbd31b..f7c73f769 100644 --- a/src/messenger/messenger_api.c +++ b/src/messenger/messenger_api.c | |||
@@ -618,6 +618,15 @@ GNUNET_MESSENGER_find_rooms (const struct GNUNET_MESSENGER_Handle *handle, const | |||
618 | return GNUNET_CONTAINER_multihashmap_iterate(handle->rooms, iterate_find_room, &find); | 618 | return GNUNET_CONTAINER_multihashmap_iterate(handle->rooms, iterate_find_room, &find); |
619 | } | 619 | } |
620 | 620 | ||
621 | const struct GNUNET_HashCode* | ||
622 | GNUNET_MESSENGER_room_get_key (const struct GNUNET_MESSENGER_Room *room) | ||
623 | { | ||
624 | if (!room) | ||
625 | return NULL; | ||
626 | |||
627 | return &(room->key); | ||
628 | } | ||
629 | |||
621 | const struct GNUNET_MESSENGER_Contact* | 630 | const struct GNUNET_MESSENGER_Contact* |
622 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) | 631 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) |
623 | { | 632 | { |