summaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.h')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.h b/src/dht/gnunet-service-dht_neighbours.h
index dae854fb8..8b7a22422 100644
--- a/src/dht/gnunet-service-dht_neighbours.h
+++ b/src/dht/gnunet-service-dht_neighbours.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 dht/gnunet-service-dht_neighbours.h 22 * @file dht/gnunet-service-dht_neighbours.h
@@ -58,16 +58,16 @@ extern struct GNUNET_HashCode my_identity_hash;
58 * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not 58 * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not
59 */ 59 */
60int 60int
61GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, 61GDS_NEIGHBOURS_handle_put(enum GNUNET_BLOCK_Type type,
62 enum GNUNET_DHT_RouteOption options, 62 enum GNUNET_DHT_RouteOption options,
63 uint32_t desired_replication_level, 63 uint32_t desired_replication_level,
64 struct GNUNET_TIME_Absolute expiration_time, 64 struct GNUNET_TIME_Absolute expiration_time,
65 uint32_t hop_count, 65 uint32_t hop_count,
66 struct GNUNET_CONTAINER_BloomFilter *bf, 66 struct GNUNET_CONTAINER_BloomFilter *bf,
67 const struct GNUNET_HashCode *key, 67 const struct GNUNET_HashCode *key,
68 unsigned int put_path_length, 68 unsigned int put_path_length,
69 struct GNUNET_PeerIdentity *put_path, 69 struct GNUNET_PeerIdentity *put_path,
70 const void *data, size_t data_size); 70 const void *data, size_t data_size);
71 71
72 72
73/** 73/**
@@ -88,15 +88,15 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type,
88 * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not 88 * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not
89 */ 89 */
90int 90int
91GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, 91GDS_NEIGHBOURS_handle_get(enum GNUNET_BLOCK_Type type,
92 enum GNUNET_DHT_RouteOption options, 92 enum GNUNET_DHT_RouteOption options,
93 uint32_t desired_replication_level, 93 uint32_t desired_replication_level,
94 uint32_t hop_count, 94 uint32_t hop_count,
95 const struct GNUNET_HashCode *key, 95 const struct GNUNET_HashCode *key,
96 const void *xquery, 96 const void *xquery,
97 size_t xquery_size, 97 size_t xquery_size,
98 struct GNUNET_BLOCK_Group *bg, 98 struct GNUNET_BLOCK_Group *bg,
99 struct GNUNET_CONTAINER_BloomFilter *peer_bf); 99 struct GNUNET_CONTAINER_BloomFilter *peer_bf);
100 100
101 101
102/** 102/**
@@ -116,16 +116,16 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type,
116 * @param data_size number of bytes in data 116 * @param data_size number of bytes in data
117 */ 117 */
118void 118void
119GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, 119GDS_NEIGHBOURS_handle_reply(const struct GNUNET_PeerIdentity *target,
120 enum GNUNET_BLOCK_Type type, 120 enum GNUNET_BLOCK_Type type,
121 struct GNUNET_TIME_Absolute expiration_time, 121 struct GNUNET_TIME_Absolute expiration_time,
122 const struct GNUNET_HashCode *key, 122 const struct GNUNET_HashCode *key,
123 unsigned int put_path_length, 123 unsigned int put_path_length,
124 const struct GNUNET_PeerIdentity *put_path, 124 const struct GNUNET_PeerIdentity *put_path,
125 unsigned int get_path_length, 125 unsigned int get_path_length,
126 const struct GNUNET_PeerIdentity *get_path, 126 const struct GNUNET_PeerIdentity *get_path,
127 const void *data, 127 const void *data,
128 size_t data_size); 128 size_t data_size);
129 129
130 130
131/** 131/**
@@ -139,8 +139,8 @@ GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target,
139 * #GNUNET_NO otherwise. 139 * #GNUNET_NO otherwise.
140 */ 140 */
141int 141int
142GDS_am_closest_peer (const struct GNUNET_HashCode *key, 142GDS_am_closest_peer(const struct GNUNET_HashCode *key,
143 const struct GNUNET_CONTAINER_BloomFilter *bloom); 143 const struct GNUNET_CONTAINER_BloomFilter *bloom);
144 144
145 145
146 146
@@ -150,14 +150,14 @@ GDS_am_closest_peer (const struct GNUNET_HashCode *key,
150 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 150 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
151 */ 151 */
152int 152int
153GDS_NEIGHBOURS_init (void); 153GDS_NEIGHBOURS_init(void);
154 154
155 155
156/** 156/**
157 * Shutdown neighbours subsystem. 157 * Shutdown neighbours subsystem.
158 */ 158 */
159void 159void
160GDS_NEIGHBOURS_done (void); 160GDS_NEIGHBOURS_done(void);
161 161
162 162
163/** 163/**
@@ -166,7 +166,7 @@ GDS_NEIGHBOURS_done (void);
166 * @return identity of the local node 166 * @return identity of the local node
167 */ 167 */
168struct GNUNET_PeerIdentity * 168struct GNUNET_PeerIdentity *
169GDS_NEIGHBOURS_get_id (void); 169GDS_NEIGHBOURS_get_id(void);
170 170
171 171
172#endif 172#endif