aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_contact_intern.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-12-03 22:40:43 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-12-03 22:40:43 +0100
commit5f187deccd1685385b03e20d7f3b55f600adf6ac (patch)
tree20fff12d3aa02d98a6a9a7ab4aca326aae79c50c /src/gnunet_chat_contact_intern.c
parent1edfdc77b42d647384c7ef09e2a2b0a59e69633a (diff)
downloadlibgnunetchat-5f187deccd1685385b03e20d7f3b55f600adf6ac.tar.gz
libgnunetchat-5f187deccd1685385b03e20d7f3b55f600adf6ac.zip
Adjusted invitations to groups to check for common contexts
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_contact_intern.c')
-rw-r--r--src/gnunet_chat_contact_intern.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gnunet_chat_contact_intern.c b/src/gnunet_chat_contact_intern.c
new file mode 100644
index 0000000..3e89663
--- /dev/null
+++ b/src/gnunet_chat_contact_intern.c
@@ -0,0 +1,42 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20/*
21 * @author Tobias Frisch
22 * @file gnunet_chat_contact_intern.c
23 */
24
25#define GNUNET_UNUSED __attribute__ ((unused))
26
27struct GNUNET_CHAT_ContactFindRoom
28{
29 struct GNUNET_MESSENGER_Room *room;
30};
31
32int
33it_contact_find_room (void *cls,
34 struct GNUNET_MESSENGER_Room *room,
35 GNUNET_UNUSED const struct GNUNET_MESSENGER_Contact *member)
36{
37 GNUNET_assert((cls) && (room));
38
39 struct GNUNET_CHAT_ContactFindRoom *find = cls;
40 find->room = room;
41 return GNUNET_NO;
42}