diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2024-01-19 19:36:58 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2024-01-19 19:36:58 +0100 |
commit | f239edd23faf14a23ad36e9770b364eed544a463 (patch) | |
tree | f9dbc254bfe3e4239cf7ab2f63233eee40892892 | |
parent | c24030b2d9b47c7c3d9076d46e1a5efa71d2270e (diff) | |
download | gnunet-f239edd23faf14a23ad36e9770b364eed544a463.tar.gz gnunet-f239edd23faf14a23ad36e9770b364eed544a463.zip |
MESSENGER: Cleanup includes in code
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
39 files changed, 82 insertions, 110 deletions
diff --git a/src/service/messenger/gnunet-service-messenger.c b/src/service/messenger/gnunet-service-messenger.c index f613b8b14..2cbc8933d 100644 --- a/src/service/messenger/gnunet-service-messenger.c +++ b/src/service/messenger/gnunet-service-messenger.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,9 +26,9 @@ | |||
26 | #include "gnunet-service-messenger.h" | 26 | #include "gnunet-service-messenger.h" |
27 | 27 | ||
28 | #include "gnunet-service-messenger_handle.h" | 28 | #include "gnunet-service-messenger_handle.h" |
29 | #include "gnunet-service-messenger_room.h" | ||
29 | #include "gnunet-service-messenger_service.h" | 30 | #include "gnunet-service-messenger_service.h" |
30 | #include "messenger_api_message.h" | 31 | #include "messenger_api_message.h" |
31 | #include "messenger_api_message_kind.h" | ||
32 | 32 | ||
33 | struct GNUNET_MESSENGER_Client | 33 | struct GNUNET_MESSENGER_Client |
34 | { | 34 | { |
diff --git a/src/service/messenger/gnunet-service-messenger.h b/src/service/messenger/gnunet-service-messenger.h index 821836fdf..c3e762734 100644 --- a/src/service/messenger/gnunet-service-messenger.h +++ b/src/service/messenger/gnunet-service-messenger.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,9 +26,6 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_H |
27 | #define GNUNET_SERVICE_MESSENGER_H | 27 | #define GNUNET_SERVICE_MESSENGER_H |
28 | 28 | ||
29 | #include "gnunet_cadet_service.h" | ||
30 | #include "gnunet_identity_service.h" | ||
31 | #include "gnunet_protocols.h" | ||
32 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
33 | 30 | ||
34 | /** | 31 | /** |
diff --git a/src/service/messenger/gnunet-service-messenger_handle.c b/src/service/messenger/gnunet-service-messenger_handle.c index 9cd460fd3..55548c0fb 100644 --- a/src/service/messenger/gnunet-service-messenger_handle.c +++ b/src/service/messenger/gnunet-service-messenger_handle.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,7 +27,8 @@ | |||
27 | #include "gnunet-service-messenger_handle.h" | 27 | #include "gnunet-service-messenger_handle.h" |
28 | 28 | ||
29 | #include "gnunet-service-messenger.h" | 29 | #include "gnunet-service-messenger.h" |
30 | #include "messenger_api_message_kind.h" | 30 | #include "gnunet-service-messenger_room.h" |
31 | |||
31 | #include "messenger_api_util.h" | 32 | #include "messenger_api_util.h" |
32 | 33 | ||
33 | struct GNUNET_MESSENGER_NextMemberId | 34 | struct GNUNET_MESSENGER_NextMemberId |
diff --git a/src/service/messenger/gnunet-service-messenger_handle.h b/src/service/messenger/gnunet-service-messenger_handle.h index ce9244771..46e9c4b63 100644 --- a/src/service/messenger/gnunet-service-messenger_handle.h +++ b/src/service/messenger/gnunet-service-messenger_handle.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,15 +26,11 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_HANDLE_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_HANDLE_H |
27 | #define GNUNET_SERVICE_MESSENGER_HANDLE_H | 27 | #define GNUNET_SERVICE_MESSENGER_HANDLE_H |
28 | 28 | ||
29 | #include "gnunet_cadet_service.h" | ||
30 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_identity_service.h" | ||
32 | 30 | ||
33 | #include "gnunet-service-messenger_service.h" | 31 | #include "gnunet-service-messenger_service.h" |
34 | #include "gnunet-service-messenger_sender_session.h" | 32 | #include "gnunet-service-messenger_sender_session.h" |
35 | 33 | ||
36 | #include "messenger_api_message.h" | ||
37 | |||
38 | struct GNUNET_MESSENGER_SrvHandle | 34 | struct GNUNET_MESSENGER_SrvHandle |
39 | { | 35 | { |
40 | struct GNUNET_MESSENGER_Service *service; | 36 | struct GNUNET_MESSENGER_Service *service; |
diff --git a/src/service/messenger/gnunet-service-messenger_list_handles.h b/src/service/messenger/gnunet-service-messenger_list_handles.h index 43c754d6c..64dee6544 100644 --- a/src/service/messenger/gnunet-service-messenger_list_handles.h +++ b/src/service/messenger/gnunet-service-messenger_list_handles.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,7 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_LIST_HANDLES_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_LIST_HANDLES_H |
27 | #define GNUNET_SERVICE_MESSENGER_LIST_HANDLES_H | 27 | #define GNUNET_SERVICE_MESSENGER_LIST_HANDLES_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_common.h" |
30 | 30 | ||
31 | struct GNUNET_MESSENGER_SrvHandle; | 31 | struct GNUNET_MESSENGER_SrvHandle; |
32 | 32 | ||
diff --git a/src/service/messenger/gnunet-service-messenger_list_messages.c b/src/service/messenger/gnunet-service-messenger_list_messages.c index c140b8480..0cb4e5787 100644 --- a/src/service/messenger/gnunet-service-messenger_list_messages.c +++ b/src/service/messenger/gnunet-service-messenger_list_messages.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,6 +25,8 @@ | |||
25 | 25 | ||
26 | #include "gnunet-service-messenger_list_messages.h" | 26 | #include "gnunet-service-messenger_list_messages.h" |
27 | 27 | ||
28 | #include "gnunet_util_lib.h" | ||
29 | |||
28 | void | 30 | void |
29 | init_list_messages (struct GNUNET_MESSENGER_ListMessages *messages) | 31 | init_list_messages (struct GNUNET_MESSENGER_ListMessages *messages) |
30 | { | 32 | { |
diff --git a/src/service/messenger/gnunet-service-messenger_list_messages.h b/src/service/messenger/gnunet-service-messenger_list_messages.h index ccdfa1c99..133091506 100644 --- a/src/service/messenger/gnunet-service-messenger_list_messages.h +++ b/src/service/messenger/gnunet-service-messenger_list_messages.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2021 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,7 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_LIST_MESSAGES_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_LIST_MESSAGES_H |
27 | #define GNUNET_SERVICE_MESSENGER_LIST_MESSAGES_H | 27 | #define GNUNET_SERVICE_MESSENGER_LIST_MESSAGES_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_common.h" |
30 | 30 | ||
31 | struct GNUNET_MESSENGER_ListMessage | 31 | struct GNUNET_MESSENGER_ListMessage |
32 | { | 32 | { |
diff --git a/src/service/messenger/gnunet-service-messenger_member.c b/src/service/messenger/gnunet-service-messenger_member.c index 19cc9559d..0940c42ce 100644 --- a/src/service/messenger/gnunet-service-messenger_member.c +++ b/src/service/messenger/gnunet-service-messenger_member.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -28,6 +28,8 @@ | |||
28 | 28 | ||
29 | #include "gnunet-service-messenger_member_session.h" | 29 | #include "gnunet-service-messenger_member_session.h" |
30 | 30 | ||
31 | #include "messenger_api_util.h" | ||
32 | |||
31 | struct GNUNET_MESSENGER_Member* | 33 | struct GNUNET_MESSENGER_Member* |
32 | create_member (struct GNUNET_MESSENGER_MemberStore *store, | 34 | create_member (struct GNUNET_MESSENGER_MemberStore *store, |
33 | const struct GNUNET_ShortHashCode *id) | 35 | const struct GNUNET_ShortHashCode *id) |
diff --git a/src/service/messenger/gnunet-service-messenger_member.h b/src/service/messenger/gnunet-service-messenger_member.h index 1f239aa21..0e5afaa6a 100644 --- a/src/service/messenger/gnunet-service-messenger_member.h +++ b/src/service/messenger/gnunet-service-messenger_member.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,12 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MEMBER_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_MEMBER_H |
27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_H | 27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_H |
28 | 28 | ||
29 | #include "messenger_api_contact.h" | ||
30 | |||
31 | #include "gnunet-service-messenger_list_messages.h" | ||
32 | #include "gnunet-service-messenger_member_store.h" | 29 | #include "gnunet-service-messenger_member_store.h" |
33 | #include "messenger_api_message.h" | ||
34 | #include "messenger_api_util.h" | ||
35 | 30 | ||
36 | struct GNUNET_MESSENGER_Member | 31 | struct GNUNET_MESSENGER_Member |
37 | { | 32 | { |
diff --git a/src/service/messenger/gnunet-service-messenger_member_session.h b/src/service/messenger/gnunet-service-messenger_member_session.h index 85ce44e28..8cd944afa 100644 --- a/src/service/messenger/gnunet-service-messenger_member_session.h +++ b/src/service/messenger/gnunet-service-messenger_member_session.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021, 2023 GNUnet e.V. | 3 | Copyright (C) 2021--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,9 +27,9 @@ | |||
27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_SESSION_H | 27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_SESSION_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
31 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
32 | 31 | ||
32 | #include "gnunet-service-messenger_list_messages.h" | ||
33 | #include "gnunet-service-messenger_member.h" | 33 | #include "gnunet-service-messenger_member.h" |
34 | 34 | ||
35 | #include "messenger_api_contact.h" | 35 | #include "messenger_api_contact.h" |
diff --git a/src/service/messenger/gnunet-service-messenger_member_store.c b/src/service/messenger/gnunet-service-messenger_member_store.c index 732e3f9a3..fb45147f4 100644 --- a/src/service/messenger/gnunet-service-messenger_member_store.c +++ b/src/service/messenger/gnunet-service-messenger_member_store.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -30,6 +30,8 @@ | |||
30 | #include "gnunet-service-messenger_service.h" | 30 | #include "gnunet-service-messenger_service.h" |
31 | #include "gnunet-service-messenger_room.h" | 31 | #include "gnunet-service-messenger_room.h" |
32 | 32 | ||
33 | #include "messenger_api_message.h" | ||
34 | |||
33 | void | 35 | void |
34 | init_member_store (struct GNUNET_MESSENGER_MemberStore *store, | 36 | init_member_store (struct GNUNET_MESSENGER_MemberStore *store, |
35 | struct GNUNET_MESSENGER_SrvRoom *room) | 37 | struct GNUNET_MESSENGER_SrvRoom *room) |
diff --git a/src/service/messenger/gnunet-service-messenger_member_store.h b/src/service/messenger/gnunet-service-messenger_member_store.h index 161c93818..181593e6b 100644 --- a/src/service/messenger/gnunet-service-messenger_member_store.h +++ b/src/service/messenger/gnunet-service-messenger_member_store.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,8 +27,8 @@ | |||
27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_STORE_H | 27 | #define GNUNET_SERVICE_MESSENGER_MEMBER_STORE_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | 30 | |
31 | #include "messenger_api_message.h" | 31 | #include "gnunet_messenger_service.h" |
32 | 32 | ||
33 | struct GNUNET_MESSENGER_SrvRoom; | 33 | struct GNUNET_MESSENGER_SrvRoom; |
34 | 34 | ||
diff --git a/src/service/messenger/gnunet-service-messenger_message_handle.c b/src/service/messenger/gnunet-service-messenger_message_handle.c index e730e12fe..d9ee1ef13 100644 --- a/src/service/messenger/gnunet-service-messenger_message_handle.c +++ b/src/service/messenger/gnunet-service-messenger_message_handle.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,6 +25,8 @@ | |||
25 | 25 | ||
26 | #include "gnunet-service-messenger_message_handle.h" | 26 | #include "gnunet-service-messenger_message_handle.h" |
27 | 27 | ||
28 | #include "gnunet-service-messenger_room.h" | ||
29 | |||
28 | static void | 30 | static void |
29 | handle_member_session_switch (struct GNUNET_MESSENGER_MemberSession *session, | 31 | handle_member_session_switch (struct GNUNET_MESSENGER_MemberSession *session, |
30 | const struct GNUNET_MESSENGER_Message *message, | 32 | const struct GNUNET_MESSENGER_Message *message, |
diff --git a/src/service/messenger/gnunet-service-messenger_message_handle.h b/src/service/messenger/gnunet-service-messenger_message_handle.h index f76ae356a..a66c45192 100644 --- a/src/service/messenger/gnunet-service-messenger_message_handle.h +++ b/src/service/messenger/gnunet-service-messenger_message_handle.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,12 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H |
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H | 27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_HANDLE_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | ||
30 | |||
31 | #include "gnunet-service-messenger_sender_session.h" | 29 | #include "gnunet-service-messenger_sender_session.h" |
32 | #include "gnunet-service-messenger_tunnel.h" | ||
33 | #include "messenger_api_message.h" | ||
34 | #include "messenger_api_message_kind.h" | ||
35 | 30 | ||
36 | /** | 31 | /** |
37 | * Handles a received or sent join message to make changes of current member information. | 32 | * Handles a received or sent join message to make changes of current member information. |
diff --git a/src/service/messenger/gnunet-service-messenger_message_kind.c b/src/service/messenger/gnunet-service-messenger_message_kind.c index a7932a068..f1a79b321 100644 --- a/src/service/messenger/gnunet-service-messenger_message_kind.c +++ b/src/service/messenger/gnunet-service-messenger_message_kind.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,7 +25,9 @@ | |||
25 | 25 | ||
26 | #include "gnunet-service-messenger_message_kind.h" | 26 | #include "gnunet-service-messenger_message_kind.h" |
27 | 27 | ||
28 | #include "messenger_api_util.h" | 28 | #include "gnunet-service-messenger_room.h" |
29 | |||
30 | #include "messenger_api_message.h" | ||
29 | 31 | ||
30 | struct GNUNET_MESSENGER_Message* | 32 | struct GNUNET_MESSENGER_Message* |
31 | create_message_info (struct GNUNET_MESSENGER_Service *service) | 33 | create_message_info (struct GNUNET_MESSENGER_Service *service) |
diff --git a/src/service/messenger/gnunet-service-messenger_message_kind.h b/src/service/messenger/gnunet-service-messenger_message_kind.h index 972149288..7fc7a7cc0 100644 --- a/src/service/messenger/gnunet-service-messenger_message_kind.h +++ b/src/service/messenger/gnunet-service-messenger_message_kind.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,10 +27,7 @@ | |||
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_KIND_H | 27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_KIND_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
31 | #include "gnunet_time_lib.h" | ||
32 | 30 | ||
33 | #include "messenger_api_message.h" | ||
34 | #include "gnunet-service-messenger_service.h" | 31 | #include "gnunet-service-messenger_service.h" |
35 | 32 | ||
36 | /** | 33 | /** |
diff --git a/src/service/messenger/gnunet-service-messenger_message_recv.c b/src/service/messenger/gnunet-service-messenger_message_recv.c index b51b91d55..53e96b524 100644 --- a/src/service/messenger/gnunet-service-messenger_message_recv.c +++ b/src/service/messenger/gnunet-service-messenger_message_recv.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | #include "gnunet-service-messenger_message_recv.h" | 26 | #include "gnunet-service-messenger_message_recv.h" |
27 | 27 | ||
28 | #include "gnunet-service-messenger_basement.h" | ||
28 | #include "gnunet-service-messenger_message_kind.h" | 29 | #include "gnunet-service-messenger_message_kind.h" |
29 | #include "gnunet-service-messenger_operation.h" | 30 | #include "gnunet-service-messenger_operation.h" |
30 | 31 | ||
diff --git a/src/service/messenger/gnunet-service-messenger_message_recv.h b/src/service/messenger/gnunet-service-messenger_message_recv.h index 2c6cda4ad..58eb1d5cc 100644 --- a/src/service/messenger/gnunet-service-messenger_message_recv.h +++ b/src/service/messenger/gnunet-service-messenger_message_recv.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,11 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_RECV_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_RECV_H |
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_RECV_H | 27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_RECV_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | ||
30 | |||
31 | #include "gnunet-service-messenger_member_session.h" | ||
32 | #include "gnunet-service-messenger_tunnel.h" | 29 | #include "gnunet-service-messenger_tunnel.h" |
33 | #include "messenger_api_message.h" | ||
34 | 30 | ||
35 | /** | 31 | /** |
36 | * Handles a received info message to change the current member id to the one generated by | 32 | * Handles a received info message to change the current member id to the one generated by |
diff --git a/src/service/messenger/gnunet-service-messenger_message_send.h b/src/service/messenger/gnunet-service-messenger_message_send.h index 0118dac99..ee4d8b0a4 100644 --- a/src/service/messenger/gnunet-service-messenger_message_send.h +++ b/src/service/messenger/gnunet-service-messenger_message_send.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,10 +26,7 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_SEND_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_SEND_H |
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_SEND_H | 27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_SEND_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet-service-messenger_room.h" |
30 | |||
31 | #include "gnunet-service-messenger_tunnel.h" | ||
32 | #include "messenger_api_message.h" | ||
33 | 30 | ||
34 | /** | 31 | /** |
35 | * Handles a sent join message to ensure growth of the decentralized room structure. | 32 | * Handles a sent join message to ensure growth of the decentralized room structure. |
diff --git a/src/service/messenger/gnunet-service-messenger_message_state.h b/src/service/messenger/gnunet-service-messenger_message_state.h index fc1ccfac8..9723c7654 100644 --- a/src/service/messenger/gnunet-service-messenger_message_state.h +++ b/src/service/messenger/gnunet-service-messenger_message_state.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,9 +26,8 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_STATE_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_MESSAGE_STATE_H |
27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_STATE_H | 27 | #define GNUNET_SERVICE_MESSENGER_MESSAGE_STATE_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_messenger_service.h" |
30 | 30 | ||
31 | #include "messenger_api_message.h" | ||
32 | #include "gnunet-service-messenger_list_messages.h" | 31 | #include "gnunet-service-messenger_list_messages.h" |
33 | 32 | ||
34 | struct GNUNET_MESSENGER_MessageState | 33 | struct GNUNET_MESSENGER_MessageState |
diff --git a/src/service/messenger/gnunet-service-messenger_operation.h b/src/service/messenger/gnunet-service-messenger_operation.h index 0e02cdf6a..26282bea8 100644 --- a/src/service/messenger/gnunet-service-messenger_operation.h +++ b/src/service/messenger/gnunet-service-messenger_operation.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021, 2023 GNUnet e.V. | 3 | Copyright (C) 2021--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,7 +26,6 @@ | |||
26 | #ifndef GNUNET_SERVICE_MESSENGER_OPERATION_H | 26 | #ifndef GNUNET_SERVICE_MESSENGER_OPERATION_H |
27 | #define GNUNET_SERVICE_MESSENGER_OPERATION_H | 27 | #define GNUNET_SERVICE_MESSENGER_OPERATION_H |
28 | 28 | ||
29 | #include "gnunet_configuration_lib.h" | ||
30 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_scheduler_lib.h" | 30 | #include "gnunet_scheduler_lib.h" |
32 | #include "gnunet_time_lib.h" | 31 | #include "gnunet_time_lib.h" |
diff --git a/src/service/messenger/gnunet-service-messenger_room.c b/src/service/messenger/gnunet-service-messenger_room.c index 8ff8b1af7..1b8ce37ce 100644 --- a/src/service/messenger/gnunet-service-messenger_room.c +++ b/src/service/messenger/gnunet-service-messenger_room.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,20 +26,16 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet-service-messenger_room.h" | 27 | #include "gnunet-service-messenger_room.h" |
28 | 28 | ||
29 | #include "gnunet-service-messenger_basement.h" | ||
29 | #include "gnunet-service-messenger_member.h" | 30 | #include "gnunet-service-messenger_member.h" |
30 | #include "gnunet-service-messenger_sender_session.h" | 31 | #include "gnunet-service-messenger_sender_session.h" |
31 | |||
32 | #include "gnunet-service-messenger_message_kind.h" | 32 | #include "gnunet-service-messenger_message_kind.h" |
33 | #include "gnunet-service-messenger_message_handle.h" | 33 | #include "gnunet-service-messenger_message_handle.h" |
34 | #include "gnunet-service-messenger_message_send.h" | 34 | #include "gnunet-service-messenger_message_send.h" |
35 | |||
36 | #include "gnunet-service-messenger_operation.h" | 35 | #include "gnunet-service-messenger_operation.h" |
37 | |||
38 | #include "gnunet-service-messenger.h" | ||
39 | #include "gnunet-service-messenger_service.h" | 36 | #include "gnunet-service-messenger_service.h" |
40 | #include "gnunet-service-messenger_tunnel.h" | 37 | #include "gnunet-service-messenger_tunnel.h" |
41 | 38 | ||
42 | #include "messenger_api_message.h" | ||
43 | #include "messenger_api_util.h" | 39 | #include "messenger_api_util.h" |
44 | 40 | ||
45 | static void | 41 | static void |
diff --git a/src/service/messenger/gnunet-service-messenger_room.h b/src/service/messenger/gnunet-service-messenger_room.h index c3063748d..8b20051be 100644 --- a/src/service/messenger/gnunet-service-messenger_room.h +++ b/src/service/messenger/gnunet-service-messenger_room.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -28,21 +28,19 @@ | |||
28 | 28 | ||
29 | #include "gnunet_cadet_service.h" | 29 | #include "gnunet_cadet_service.h" |
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_identity_service.h" | ||
32 | 31 | ||
33 | #include "gnunet_messenger_service.h" | 32 | #include "gnunet_messenger_service.h" |
34 | #include "gnunet-service-messenger_basement.h" | ||
35 | #include "gnunet-service-messenger_handle.h" | 33 | #include "gnunet-service-messenger_handle.h" |
36 | #include "gnunet-service-messenger_message_state.h" | 34 | #include "gnunet-service-messenger_message_state.h" |
37 | #include "gnunet-service-messenger_list_messages.h" | 35 | #include "gnunet-service-messenger_list_messages.h" |
38 | |||
39 | #include "messenger_api_list_tunnels.h" | ||
40 | #include "messenger_api_peer_store.h" | ||
41 | |||
42 | #include "gnunet-service-messenger_member_store.h" | 36 | #include "gnunet-service-messenger_member_store.h" |
43 | #include "gnunet-service-messenger_message_store.h" | 37 | #include "gnunet-service-messenger_message_store.h" |
44 | #include "gnunet-service-messenger_operation_store.h" | 38 | #include "gnunet-service-messenger_operation_store.h" |
45 | 39 | ||
40 | #include "messenger_api_list_tunnels.h" | ||
41 | #include "messenger_api_message.h" | ||
42 | #include "messenger_api_peer_store.h" | ||
43 | |||
46 | #define GNUNET_MESSENGER_IDLE_DELAY GNUNET_TIME_relative_multiply \ | 44 | #define GNUNET_MESSENGER_IDLE_DELAY GNUNET_TIME_relative_multiply \ |
47 | (GNUNET_TIME_relative_get_second_ (), 5) | 45 | (GNUNET_TIME_relative_get_second_ (), 5) |
48 | 46 | ||
diff --git a/src/service/messenger/gnunet-service-messenger_service.c b/src/service/messenger/gnunet-service-messenger_service.c index e6c9866df..c10d2c5c6 100644 --- a/src/service/messenger/gnunet-service-messenger_service.c +++ b/src/service/messenger/gnunet-service-messenger_service.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -24,8 +24,11 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "gnunet-service-messenger_service.h" | 26 | #include "gnunet-service-messenger_service.h" |
27 | #include "gnunet-service-messenger.h" | 27 | |
28 | #include "gnunet-service-messenger_message_kind.h" | 28 | #include "gnunet-service-messenger_message_kind.h" |
29 | #include "gnunet-service-messenger_room.h" | ||
30 | |||
31 | #include "messenger_api_util.h" | ||
29 | 32 | ||
30 | static void | 33 | static void |
31 | callback_shutdown_service (void *cls) | 34 | callback_shutdown_service (void *cls) |
diff --git a/src/service/messenger/gnunet-service-messenger_service.h b/src/service/messenger/gnunet-service-messenger_service.h index 82a72ea9e..403dfcc23 100644 --- a/src/service/messenger/gnunet-service-messenger_service.h +++ b/src/service/messenger/gnunet-service-messenger_service.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -28,14 +28,13 @@ | |||
28 | 28 | ||
29 | #include "gnunet_configuration_lib.h" | 29 | #include "gnunet_configuration_lib.h" |
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_identity_service.h" | ||
32 | 31 | ||
33 | #include "gnunet-service-messenger_list_handles.h" | 32 | #include "gnunet-service-messenger_list_handles.h" |
33 | #include "gnunet-service-messenger_sender_session.h" | ||
34 | 34 | ||
35 | #include "messenger_api_contact_store.h" | 35 | #include "messenger_api_contact_store.h" |
36 | 36 | ||
37 | #include "gnunet-service-messenger_room.h" | 37 | struct GNUNET_MESSENGER_SrvRoom; |
38 | #include "gnunet-service-messenger_sender_session.h" | ||
39 | 38 | ||
40 | struct GNUNET_MESSENGER_Service | 39 | struct GNUNET_MESSENGER_Service |
41 | { | 40 | { |
diff --git a/src/service/messenger/gnunet-service-messenger_tunnel.c b/src/service/messenger/gnunet-service-messenger_tunnel.c index 87395797d..4080cfa46 100644 --- a/src/service/messenger/gnunet-service-messenger_tunnel.c +++ b/src/service/messenger/gnunet-service-messenger_tunnel.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -30,6 +30,7 @@ | |||
30 | #include "gnunet-service-messenger_message_store.h" | 30 | #include "gnunet-service-messenger_message_store.h" |
31 | #include "gnunet-service-messenger_operation_store.h" | 31 | #include "gnunet-service-messenger_operation_store.h" |
32 | #include "gnunet-service-messenger_operation.h" | 32 | #include "gnunet-service-messenger_operation.h" |
33 | |||
33 | #include "messenger_api_util.h" | 34 | #include "messenger_api_util.h" |
34 | 35 | ||
35 | struct GNUNET_MESSENGER_SrvTunnel* | 36 | struct GNUNET_MESSENGER_SrvTunnel* |
diff --git a/src/service/messenger/messenger_api_contact.h b/src/service/messenger/messenger_api_contact.h index 2ef049200..d3bb38e96 100644 --- a/src/service/messenger/messenger_api_contact.h +++ b/src/service/messenger/messenger_api_contact.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,7 +27,6 @@ | |||
27 | #define GNUNET_MESSENGER_API_CONTACT_H | 27 | #define GNUNET_MESSENGER_API_CONTACT_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
31 | 30 | ||
32 | struct GNUNET_MESSENGER_Contact | 31 | struct GNUNET_MESSENGER_Contact |
33 | { | 32 | { |
diff --git a/src/service/messenger/messenger_api_contact_store.h b/src/service/messenger/messenger_api_contact_store.h index f9982f3f3..6b61f3e4f 100644 --- a/src/service/messenger/messenger_api_contact_store.h +++ b/src/service/messenger/messenger_api_contact_store.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,7 +27,6 @@ | |||
27 | #define GNUNET_MESSENGER_API_CONTACT_STORE_H | 27 | #define GNUNET_MESSENGER_API_CONTACT_STORE_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
31 | 30 | ||
32 | struct GNUNET_MESSENGER_Contact; | 31 | struct GNUNET_MESSENGER_Contact; |
33 | 32 | ||
diff --git a/src/service/messenger/messenger_api_handle.h b/src/service/messenger/messenger_api_handle.h index 0d4c945c0..1a2763020 100644 --- a/src/service/messenger/messenger_api_handle.h +++ b/src/service/messenger/messenger_api_handle.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,9 +26,7 @@ | |||
26 | #ifndef GNUNET_MESSENGER_API_HANDLE_H | 26 | #ifndef GNUNET_MESSENGER_API_HANDLE_H |
27 | #define GNUNET_MESSENGER_API_HANDLE_H | 27 | #define GNUNET_MESSENGER_API_HANDLE_H |
28 | 28 | ||
29 | #include "gnunet_cadet_service.h" | ||
30 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_identity_service.h" | ||
32 | 30 | ||
33 | #include "gnunet_messenger_service.h" | 31 | #include "gnunet_messenger_service.h" |
34 | 32 | ||
diff --git a/src/service/messenger/messenger_api_message.c b/src/service/messenger/messenger_api_message.c index 486a0e081..bfab00c02 100644 --- a/src/service/messenger/messenger_api_message.c +++ b/src/service/messenger/messenger_api_message.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -24,7 +24,9 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "messenger_api_message.h" | 26 | #include "messenger_api_message.h" |
27 | |||
27 | #include "gnunet_messenger_service.h" | 28 | #include "gnunet_messenger_service.h" |
29 | #include "gnunet_signatures.h" | ||
28 | 30 | ||
29 | struct GNUNET_MESSENGER_MessageSignature | 31 | struct GNUNET_MESSENGER_MessageSignature |
30 | { | 32 | { |
diff --git a/src/service/messenger/messenger_api_message.h b/src/service/messenger/messenger_api_message.h index 41684c6b6..a9e33ddc2 100644 --- a/src/service/messenger/messenger_api_message.h +++ b/src/service/messenger/messenger_api_message.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -27,8 +27,6 @@ | |||
27 | #define GNUNET_MESSENGER_API_MESSAGE_H | 27 | #define GNUNET_MESSENGER_API_MESSAGE_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
31 | #include "gnunet_signatures.h" | ||
32 | 30 | ||
33 | #include "gnunet_messenger_service.h" | 31 | #include "gnunet_messenger_service.h" |
34 | 32 | ||
diff --git a/src/service/messenger/messenger_api_message_kind.c b/src/service/messenger/messenger_api_message_kind.c index c9cf227a2..43baefe66 100644 --- a/src/service/messenger/messenger_api_message_kind.c +++ b/src/service/messenger/messenger_api_message_kind.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include "messenger_api_message_kind.h" | 26 | #include "messenger_api_message_kind.h" |
27 | 27 | ||
28 | #include "messenger_api_util.h" | 28 | #include "messenger_api_message.h" |
29 | 29 | ||
30 | struct GNUNET_MESSENGER_Message* | 30 | struct GNUNET_MESSENGER_Message* |
31 | create_message_join (const struct GNUNET_CRYPTO_PrivateKey *key) | 31 | create_message_join (const struct GNUNET_CRYPTO_PrivateKey *key) |
diff --git a/src/service/messenger/messenger_api_message_kind.h b/src/service/messenger/messenger_api_message_kind.h index 20e3cba83..5edb1c06e 100644 --- a/src/service/messenger/messenger_api_message_kind.h +++ b/src/service/messenger/messenger_api_message_kind.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -29,12 +29,8 @@ | |||
29 | #include "gnunet_messenger_service.h" | 29 | #include "gnunet_messenger_service.h" |
30 | #include "gnunet_reclaim_lib.h" | 30 | #include "gnunet_reclaim_lib.h" |
31 | #include "gnunet_util_lib.h" | 31 | #include "gnunet_util_lib.h" |
32 | #include "gnunet_identity_service.h" | ||
33 | #include "gnunet_time_lib.h" | 32 | #include "gnunet_time_lib.h" |
34 | 33 | ||
35 | #include "messenger_api_message.h" | ||
36 | #include "gnunet-service-messenger_service.h" | ||
37 | |||
38 | /** | 34 | /** |
39 | * Creates and allocates a new join message containing the clients public <i>key</i>. | 35 | * Creates and allocates a new join message containing the clients public <i>key</i>. |
40 | * (all values are stored as copy) | 36 | * (all values are stored as copy) |
diff --git a/src/service/messenger/messenger_api_queue_messages.c b/src/service/messenger/messenger_api_queue_messages.c index cda5e5629..4b153a524 100644 --- a/src/service/messenger/messenger_api_queue_messages.c +++ b/src/service/messenger/messenger_api_queue_messages.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2023 GNUnet e.V. | 3 | Copyright (C) 2023--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,6 +25,8 @@ | |||
25 | 25 | ||
26 | #include "messenger_api_queue_messages.h" | 26 | #include "messenger_api_queue_messages.h" |
27 | 27 | ||
28 | #include "messenger_api_message.h" | ||
29 | |||
28 | void | 30 | void |
29 | init_queue_messages (struct GNUNET_MESSENGER_QueueMessages *messages) | 31 | init_queue_messages (struct GNUNET_MESSENGER_QueueMessages *messages) |
30 | { | 32 | { |
diff --git a/src/service/messenger/messenger_api_queue_messages.h b/src/service/messenger/messenger_api_queue_messages.h index 64ded85ce..416c91a7a 100644 --- a/src/service/messenger/messenger_api_queue_messages.h +++ b/src/service/messenger/messenger_api_queue_messages.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2023 GNUnet e.V. | 3 | Copyright (C) 2023--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,11 +26,8 @@ | |||
26 | #ifndef GNUNET_MESSENGER_API_QUEUE_MESSAGES_H | 26 | #ifndef GNUNET_MESSENGER_API_QUEUE_MESSAGES_H |
27 | #define GNUNET_MESSENGER_API_QUEUE_MESSAGES_H | 27 | #define GNUNET_MESSENGER_API_QUEUE_MESSAGES_H |
28 | 28 | ||
29 | #include "gnunet_identity_service.h" | ||
30 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
31 | 30 | ||
32 | #include "messenger_api_message.h" | ||
33 | |||
34 | struct GNUNET_MESSENGER_QueueMessage | 31 | struct GNUNET_MESSENGER_QueueMessage |
35 | { | 32 | { |
36 | struct GNUNET_MESSENGER_QueueMessage *prev; | 33 | struct GNUNET_MESSENGER_QueueMessage *prev; |
diff --git a/src/service/messenger/messenger_api_room.c b/src/service/messenger/messenger_api_room.c index ea19879ec..a3b8ae520 100644 --- a/src/service/messenger/messenger_api_room.c +++ b/src/service/messenger/messenger_api_room.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -26,6 +26,7 @@ | |||
26 | #include "messenger_api_room.h" | 26 | #include "messenger_api_room.h" |
27 | 27 | ||
28 | #include "messenger_api_handle.h" | 28 | #include "messenger_api_handle.h" |
29 | #include "messenger_api_message.h" | ||
29 | 30 | ||
30 | struct GNUNET_MESSENGER_Room* | 31 | struct GNUNET_MESSENGER_Room* |
31 | create_room (struct GNUNET_MESSENGER_Handle *handle, | 32 | create_room (struct GNUNET_MESSENGER_Handle *handle, |
diff --git a/src/service/messenger/messenger_api_room.h b/src/service/messenger/messenger_api_room.h index 19cef2131..56bfbbf5a 100644 --- a/src/service/messenger/messenger_api_room.h +++ b/src/service/messenger/messenger_api_room.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -32,7 +32,6 @@ | |||
32 | 32 | ||
33 | #include "messenger_api_list_tunnels.h" | 33 | #include "messenger_api_list_tunnels.h" |
34 | #include "messenger_api_contact.h" | 34 | #include "messenger_api_contact.h" |
35 | #include "messenger_api_message.h" | ||
36 | #include "messenger_api_queue_messages.h" | 35 | #include "messenger_api_queue_messages.h" |
37 | 36 | ||
38 | struct GNUNET_MESSENGER_RoomMessageEntry | 37 | struct GNUNET_MESSENGER_RoomMessageEntry |
diff --git a/src/service/messenger/messenger_api_util.c b/src/service/messenger/messenger_api_util.c index 6cdeb647b..1d38f87a1 100644 --- a/src/service/messenger/messenger_api_util.c +++ b/src/service/messenger/messenger_api_util.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,6 +25,9 @@ | |||
25 | 25 | ||
26 | #include "messenger_api_util.h" | 26 | #include "messenger_api_util.h" |
27 | 27 | ||
28 | #include "gnunet_identity_service.h" | ||
29 | #include "gnunet_messenger_service.h" | ||
30 | |||
28 | static void | 31 | static void |
29 | callback_close_channel (void *cls) | 32 | callback_close_channel (void *cls) |
30 | { | 33 | { |
diff --git a/src/service/messenger/messenger_api_util.h b/src/service/messenger/messenger_api_util.h index a8b4e9150..877491c93 100644 --- a/src/service/messenger/messenger_api_util.h +++ b/src/service/messenger/messenger_api_util.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2020--2023 GNUnet e.V. | 3 | Copyright (C) 2020--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 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 | 6 | under the terms of the GNU Affero General Public License as published |
@@ -28,8 +28,6 @@ | |||
28 | 28 | ||
29 | #include "gnunet_cadet_service.h" | 29 | #include "gnunet_cadet_service.h" |
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_identity_service.h" | ||
32 | #include "gnunet_messenger_service.h" | ||
33 | 31 | ||
34 | /** | 32 | /** |
35 | * Starts an urgent task to close a CADET channel asynchronously. | 33 | * Starts an urgent task to close a CADET channel asynchronously. |