diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_cadet.h')
-rw-r--r-- | src/fs/gnunet-service-fs_cadet.h | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/fs/gnunet-service-fs_cadet.h b/src/fs/gnunet-service-fs_cadet.h index 728faaf27..61bd8b314 100644 --- a/src/fs/gnunet-service-fs_cadet.h +++ b/src/fs/gnunet-service-fs_cadet.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 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/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file fs/gnunet-service-fs_cadet.h | 22 | * @file fs/gnunet-service-fs_cadet.h |
@@ -60,11 +60,11 @@ typedef void | |||
60 | * @return handle to cancel the operation | 60 | * @return handle to cancel the operation |
61 | */ | 61 | */ |
62 | struct GSF_CadetRequest * | 62 | struct GSF_CadetRequest * |
63 | GSF_cadet_query (const struct GNUNET_PeerIdentity *target, | 63 | GSF_cadet_query(const struct GNUNET_PeerIdentity *target, |
64 | const struct GNUNET_HashCode *query, | 64 | const struct GNUNET_HashCode *query, |
65 | enum GNUNET_BLOCK_Type type, | 65 | enum GNUNET_BLOCK_Type type, |
66 | GSF_CadetReplyProcessor proc, | 66 | GSF_CadetReplyProcessor proc, |
67 | void *proc_cls); | 67 | void *proc_cls); |
68 | 68 | ||
69 | /** | 69 | /** |
70 | * Function called on each active cadets to shut them down. | 70 | * Function called on each active cadets to shut them down. |
@@ -75,9 +75,9 @@ GSF_cadet_query (const struct GNUNET_PeerIdentity *target, | |||
75 | * @return #GNUNET_YES (continue to iterate) | 75 | * @return #GNUNET_YES (continue to iterate) |
76 | */ | 76 | */ |
77 | int | 77 | int |
78 | GSF_cadet_release_clients (void *cls, | 78 | GSF_cadet_release_clients(void *cls, |
79 | const struct GNUNET_PeerIdentity *key, | 79 | const struct GNUNET_PeerIdentity *key, |
80 | void *value); | 80 | void *value); |
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
@@ -87,21 +87,21 @@ GSF_cadet_release_clients (void *cls, | |||
87 | * @param sr request to cancel | 87 | * @param sr request to cancel |
88 | */ | 88 | */ |
89 | void | 89 | void |
90 | GSF_cadet_query_cancel (struct GSF_CadetRequest *sr); | 90 | GSF_cadet_query_cancel(struct GSF_CadetRequest *sr); |
91 | 91 | ||
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Initialize subsystem for non-anonymous file-sharing. | 94 | * Initialize subsystem for non-anonymous file-sharing. |
95 | */ | 95 | */ |
96 | void | 96 | void |
97 | GSF_cadet_start_server (void); | 97 | GSF_cadet_start_server(void); |
98 | 98 | ||
99 | 99 | ||
100 | /** | 100 | /** |
101 | * Shutdown subsystem for non-anonymous file-sharing. | 101 | * Shutdown subsystem for non-anonymous file-sharing. |
102 | */ | 102 | */ |
103 | void | 103 | void |
104 | GSF_cadet_stop_server (void); | 104 | GSF_cadet_stop_server(void); |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * Cadet channel for creating outbound channels. | 107 | * Cadet channel for creating outbound channels. |
@@ -120,9 +120,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
120 | /** | 120 | /** |
121 | * Query from one peer, asking the other for CHK-data. | 121 | * Query from one peer, asking the other for CHK-data. |
122 | */ | 122 | */ |
123 | struct CadetQueryMessage | 123 | struct CadetQueryMessage { |
124 | { | ||
125 | |||
126 | /** | 124 | /** |
127 | * Type is GNUNET_MESSAGE_TYPE_FS_CADET_QUERY. | 125 | * Type is GNUNET_MESSAGE_TYPE_FS_CADET_QUERY. |
128 | */ | 126 | */ |
@@ -137,16 +135,13 @@ struct CadetQueryMessage | |||
137 | * Query hash from CHK (hash of encrypted block). | 135 | * Query hash from CHK (hash of encrypted block). |
138 | */ | 136 | */ |
139 | struct GNUNET_HashCode query; | 137 | struct GNUNET_HashCode query; |
140 | |||
141 | }; | 138 | }; |
142 | 139 | ||
143 | 140 | ||
144 | /** | 141 | /** |
145 | * Reply to a CadetQueryMessage. | 142 | * Reply to a CadetQueryMessage. |
146 | */ | 143 | */ |
147 | struct CadetReplyMessage | 144 | struct CadetReplyMessage { |
148 | { | ||
149 | |||
150 | /** | 145 | /** |
151 | * Type is GNUNET_MESSAGE_TYPE_FS_CADET_REPLY. | 146 | * Type is GNUNET_MESSAGE_TYPE_FS_CADET_REPLY. |
152 | */ | 147 | */ |
@@ -163,7 +158,6 @@ struct CadetReplyMessage | |||
163 | struct GNUNET_TIME_AbsoluteNBO expiration; | 158 | struct GNUNET_TIME_AbsoluteNBO expiration; |
164 | 159 | ||
165 | /* followed by the encrypted block */ | 160 | /* followed by the encrypted block */ |
166 | |||
167 | }; | 161 | }; |
168 | 162 | ||
169 | GNUNET_NETWORK_STRUCT_END | 163 | GNUNET_NETWORK_STRUCT_END |