aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-12-12 22:16:56 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-12-12 22:16:56 +0100
commit4d5a8e4212aa2b6929fc6021fc17ac560a8cfab3 (patch)
treea60acdc13c5e205592d3601e007d25b7aaabbc21
parentc773abec96849618212100e79c82eb3485a77c8a (diff)
downloadlibgnunetchat-4d5a8e4212aa2b6929fc6021fc17ac560a8cfab3.tar.gz
libgnunetchat-4d5a8e4212aa2b6929fc6021fc17ac560a8cfab3.zip
Adjusted iterate function for group contacts
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--include/gnunet_chat_lib.h4
-rw-r--r--src/gnunet_chat_lib.c2
-rw-r--r--src/gnunet_chat_lib_intern.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
index b0665d9..f775161 100644
--- a/include/gnunet_chat_lib.h
+++ b/include/gnunet_chat_lib.h
@@ -166,7 +166,7 @@ typedef int
166 */ 166 */
167typedef int 167typedef int
168(*GNUNET_CHAT_GroupContactCallback) (void *cls, 168(*GNUNET_CHAT_GroupContactCallback) (void *cls,
169 struct GNUNET_CHAT_Group *group, 169 const struct GNUNET_CHAT_Group *group,
170 struct GNUNET_CHAT_Contact *contact); 170 struct GNUNET_CHAT_Contact *contact);
171 171
172/** 172/**
@@ -514,7 +514,7 @@ GNUNET_CHAT_group_invite_contact (struct GNUNET_CHAT_Group *group,
514 * @return Amount of contacts iterated or #GNUNET_SYSERR on failure 514 * @return Amount of contacts iterated or #GNUNET_SYSERR on failure
515 */ 515 */
516int 516int
517GNUNET_CHAT_group_iterate_contacts (struct GNUNET_CHAT_Group *group, 517GNUNET_CHAT_group_iterate_contacts (const struct GNUNET_CHAT_Group *group,
518 GNUNET_CHAT_GroupContactCallback callback, 518 GNUNET_CHAT_GroupContactCallback callback,
519 void *cls); 519 void *cls);
520 520
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
index c355c04..4091053 100644
--- 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,
429 429
430 430
431int 431int
432GNUNET_CHAT_group_iterate_contacts (struct GNUNET_CHAT_Group *group, 432GNUNET_CHAT_group_iterate_contacts (const struct GNUNET_CHAT_Group *group,
433 GNUNET_CHAT_GroupContactCallback callback, 433 GNUNET_CHAT_GroupContactCallback callback,
434 void *cls) 434 void *cls)
435{ 435{
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
index 0ef2b72..8010401 100644
--- a/src/gnunet_chat_lib_intern.c
+++ b/src/gnunet_chat_lib_intern.c
@@ -122,7 +122,7 @@ it_room_find_contact (void *cls,
122 122
123struct GNUNET_CHAT_GroupIterateContacts 123struct GNUNET_CHAT_GroupIterateContacts
124{ 124{
125 struct GNUNET_CHAT_Group *group; 125 const struct GNUNET_CHAT_Group *group;
126 GNUNET_CHAT_GroupContactCallback cb; 126 GNUNET_CHAT_GroupContactCallback cb;
127 void *cls; 127 void *cls;
128}; 128};