diff options
Diffstat (limited to 'src/dht/dhtlog.h')
-rw-r--r-- | src/dht/dhtlog.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/dht/dhtlog.h b/src/dht/dhtlog.h index 6a8a6f1bb..476a4039e 100644 --- a/src/dht/dhtlog.h +++ b/src/dht/dhtlog.h | |||
@@ -166,8 +166,7 @@ struct GNUNET_DHTLOG_Handle | |||
166 | */ | 166 | */ |
167 | int (*insert_query) (unsigned long long *sqlqueryuid, | 167 | int (*insert_query) (unsigned long long *sqlqueryuid, |
168 | unsigned long long queryid, DHTLOG_MESSAGE_TYPES type, | 168 | unsigned long long queryid, DHTLOG_MESSAGE_TYPES type, |
169 | unsigned int hops, | 169 | unsigned int hops, int succeeded, |
170 | int succeeded, | ||
171 | const struct GNUNET_PeerIdentity * node, | 170 | const struct GNUNET_PeerIdentity * node, |
172 | const GNUNET_HashCode * key); | 171 | const GNUNET_HashCode * key); |
173 | 172 | ||
@@ -203,16 +202,19 @@ struct GNUNET_DHTLOG_Handle | |||
203 | * | 202 | * |
204 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 203 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
205 | */ | 204 | */ |
206 | int (*insert_stat) | 205 | int (*insert_stat) (const struct GNUNET_PeerIdentity * peer, |
207 | (const struct GNUNET_PeerIdentity * peer, unsigned int route_requests, | 206 | unsigned int route_requests, unsigned int route_forwards, |
208 | unsigned int route_forwards, unsigned int result_requests, | 207 | unsigned int result_requests, |
209 | unsigned int client_requests, unsigned int result_forwards, | 208 | unsigned int client_requests, |
210 | unsigned int gets, unsigned int puts, | 209 | unsigned int result_forwards, unsigned int gets, |
211 | unsigned int data_inserts, unsigned int find_peer_requests, | 210 | unsigned int puts, unsigned int data_inserts, |
212 | unsigned int find_peers_started, unsigned int gets_started, | 211 | unsigned int find_peer_requests, |
213 | unsigned int puts_started, unsigned int find_peer_responses_received, | 212 | unsigned int find_peers_started, |
214 | unsigned int get_responses_received, | 213 | unsigned int gets_started, unsigned int puts_started, |
215 | unsigned int find_peer_responses_sent, unsigned int get_responses_sent); | 214 | unsigned int find_peer_responses_received, |
215 | unsigned int get_responses_received, | ||
216 | unsigned int find_peer_responses_sent, | ||
217 | unsigned int get_responses_sent); | ||
216 | 218 | ||
217 | /* | 219 | /* |
218 | * Update dhttests.trials table with current server time as end time | 220 | * Update dhttests.trials table with current server time as end time |
@@ -264,8 +266,8 @@ struct GNUNET_DHTLOG_Handle | |||
264 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 266 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
265 | */ | 267 | */ |
266 | int (*add_generic_stat) (const struct GNUNET_PeerIdentity * peer, | 268 | int (*add_generic_stat) (const struct GNUNET_PeerIdentity * peer, |
267 | const char *name, | 269 | const char *name, const char *section, |
268 | const char *section, uint64_t value); | 270 | uint64_t value); |
269 | 271 | ||
270 | /* | 272 | /* |
271 | * Inserts the specified round into the dhttests.rounds table | 273 | * Inserts the specified round into the dhttests.rounds table |
@@ -327,10 +329,8 @@ struct GNUNET_DHTLOG_Handle | |||
327 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure. | 329 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure. |
328 | */ | 330 | */ |
329 | int (*insert_route) (unsigned long long *sqlqueryuid, | 331 | int (*insert_route) (unsigned long long *sqlqueryuid, |
330 | unsigned long long queryid, | 332 | unsigned long long queryid, unsigned int type, |
331 | unsigned int type, | 333 | unsigned int hops, int succeeded, |
332 | unsigned int hops, | ||
333 | int succeeded, | ||
334 | const struct GNUNET_PeerIdentity * node, | 334 | const struct GNUNET_PeerIdentity * node, |
335 | const GNUNET_HashCode * key, | 335 | const GNUNET_HashCode * key, |
336 | const struct GNUNET_PeerIdentity * from_node, | 336 | const struct GNUNET_PeerIdentity * from_node, |