diff options
Diffstat (limited to 'src/gnunet_chat_lib_intern.c')
-rw-r--r-- | src/gnunet_chat_lib_intern.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c index 6d72cbf..e87176d 100644 --- a/src/gnunet_chat_lib_intern.c +++ b/src/gnunet_chat_lib_intern.c | |||
@@ -89,6 +89,23 @@ it_contact_find_room (void *cls, | |||
89 | return GNUNET_NO; | 89 | return GNUNET_NO; |
90 | } | 90 | } |
91 | 91 | ||
92 | struct GNUNET_CHAT_RoomFindContact | ||
93 | { | ||
94 | const struct GNUNET_MESSENGER_Contact *contact; | ||
95 | }; | ||
96 | |||
97 | int | ||
98 | it_room_find_contact (void *cls, | ||
99 | GNUNET_UNUSED struct GNUNET_MESSENGER_Room *room, | ||
100 | const struct GNUNET_MESSENGER_Contact *member) | ||
101 | { | ||
102 | GNUNET_assert((cls) && (member)); | ||
103 | |||
104 | struct GNUNET_CHAT_RoomFindContact *find = cls; | ||
105 | find->contact = member; | ||
106 | return GNUNET_NO; | ||
107 | } | ||
108 | |||
92 | struct GNUNET_CHAT_GroupIterateContacts | 109 | struct GNUNET_CHAT_GroupIterateContacts |
93 | { | 110 | { |
94 | struct GNUNET_CHAT_Group *group; | 111 | struct GNUNET_CHAT_Group *group; |