commit 4d5a8e4212aa2b6929fc6021fc17ac560a8cfab3
parent c773abec96849618212100e79c82eb3485a77c8a
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Sun, 12 Dec 2021 22:16:56 +0100
Adjusted iterate function for group contacts
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
@@ -166,7 +166,7 @@ typedef int
*/
typedef int
(*GNUNET_CHAT_GroupContactCallback) (void *cls,
- struct GNUNET_CHAT_Group *group,
+ const struct GNUNET_CHAT_Group *group,
struct GNUNET_CHAT_Contact *contact);
/**
@@ -514,7 +514,7 @@ GNUNET_CHAT_group_invite_contact (struct GNUNET_CHAT_Group *group,
* @return Amount of contacts iterated or #GNUNET_SYSERR on failure
*/
int
-GNUNET_CHAT_group_iterate_contacts (struct GNUNET_CHAT_Group *group,
+GNUNET_CHAT_group_iterate_contacts (const struct GNUNET_CHAT_Group *group,
GNUNET_CHAT_GroupContactCallback callback,
void *cls);
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
@@ -429,7 +429,7 @@ GNUNET_CHAT_group_invite_contact (struct GNUNET_CHAT_Group *group,
int
-GNUNET_CHAT_group_iterate_contacts (struct GNUNET_CHAT_Group *group,
+GNUNET_CHAT_group_iterate_contacts (const struct GNUNET_CHAT_Group *group,
GNUNET_CHAT_GroupContactCallback callback,
void *cls)
{
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
@@ -122,7 +122,7 @@ it_room_find_contact (void *cls,
struct GNUNET_CHAT_GroupIterateContacts
{
- struct GNUNET_CHAT_Group *group;
+ const struct GNUNET_CHAT_Group *group;
GNUNET_CHAT_GroupContactCallback cb;
void *cls;
};