diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/dht/gnunet-service-dht_neighbours.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.h')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.h b/src/dht/gnunet-service-dht_neighbours.h index 8b7a22422..cdcf30b01 100644 --- a/src/dht/gnunet-service-dht_neighbours.h +++ b/src/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 | */ |
60 | int | 60 | int |
61 | GDS_NEIGHBOURS_handle_put(enum GNUNET_BLOCK_Type type, | 61 | GDS_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 | */ |
90 | int | 90 | int |
91 | GDS_NEIGHBOURS_handle_get(enum GNUNET_BLOCK_Type type, | 91 | GDS_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 | */ |
118 | void | 118 | void |
119 | GDS_NEIGHBOURS_handle_reply(const struct GNUNET_PeerIdentity *target, | 119 | GDS_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 | */ |
141 | int | 141 | int |
142 | GDS_am_closest_peer(const struct GNUNET_HashCode *key, | 142 | GDS_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 | */ |
152 | int | 152 | int |
153 | GDS_NEIGHBOURS_init(void); | 153 | GDS_NEIGHBOURS_init (void); |
154 | 154 | ||
155 | 155 | ||
156 | /** | 156 | /** |
157 | * Shutdown neighbours subsystem. | 157 | * Shutdown neighbours subsystem. |
158 | */ | 158 | */ |
159 | void | 159 | void |
160 | GDS_NEIGHBOURS_done(void); | 160 | GDS_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 | */ |
168 | struct GNUNET_PeerIdentity * | 168 | struct GNUNET_PeerIdentity * |
169 | GDS_NEIGHBOURS_get_id(void); | 169 | GDS_NEIGHBOURS_get_id (void); |
170 | 170 | ||
171 | 171 | ||
172 | #endif | 172 | #endif |