diff options
Diffstat (limited to 'src/dht/dhtlog.h')
-rw-r--r-- | src/dht/dhtlog.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/dht/dhtlog.h b/src/dht/dhtlog.h index c86d98ee2..6a8a6f1bb 100644 --- a/src/dht/dhtlog.h +++ b/src/dht/dhtlog.h | |||
@@ -178,7 +178,7 @@ struct GNUNET_DHTLOG_Handle | |||
178 | * | 178 | * |
179 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 179 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
180 | */ | 180 | */ |
181 | int (*insert_trial) (struct GNUNET_DHTLOG_TrialInfo *trial_info); | 181 | int (*insert_trial) (struct GNUNET_DHTLOG_TrialInfo * trial_info); |
182 | 182 | ||
183 | /* | 183 | /* |
184 | * Inserts the specified stats into the dhttests.node_statistics table | 184 | * Inserts the specified stats into the dhttests.node_statistics table |
@@ -204,15 +204,15 @@ struct GNUNET_DHTLOG_Handle | |||
204 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 204 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
205 | */ | 205 | */ |
206 | int (*insert_stat) | 206 | int (*insert_stat) |
207 | (const struct GNUNET_PeerIdentity *peer, unsigned int route_requests, | 207 | (const struct GNUNET_PeerIdentity * peer, unsigned int route_requests, |
208 | unsigned int route_forwards, unsigned int result_requests, | 208 | unsigned int route_forwards, unsigned int result_requests, |
209 | unsigned int client_requests, unsigned int result_forwards, | 209 | unsigned int client_requests, unsigned int result_forwards, |
210 | unsigned int gets, unsigned int puts, | 210 | unsigned int gets, unsigned int puts, |
211 | unsigned int data_inserts, unsigned int find_peer_requests, | 211 | unsigned int data_inserts, unsigned int find_peer_requests, |
212 | unsigned int find_peers_started, unsigned int gets_started, | 212 | unsigned int find_peers_started, unsigned int gets_started, |
213 | unsigned int puts_started, unsigned int find_peer_responses_received, | 213 | unsigned int puts_started, unsigned int find_peer_responses_received, |
214 | unsigned int get_responses_received, unsigned int find_peer_responses_sent, | 214 | unsigned int get_responses_received, |
215 | unsigned int get_responses_sent); | 215 | unsigned int find_peer_responses_sent, unsigned int get_responses_sent); |
216 | 216 | ||
217 | /* | 217 | /* |
218 | * Update dhttests.trials table with current server time as end time | 218 | * Update dhttests.trials table with current server time as end time |
@@ -231,7 +231,7 @@ struct GNUNET_DHTLOG_Handle | |||
231 | * | 231 | * |
232 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure. | 232 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure. |
233 | */ | 233 | */ |
234 | int (*set_malicious) (struct GNUNET_PeerIdentity *peer); | 234 | int (*set_malicious) (struct GNUNET_PeerIdentity * peer); |
235 | 235 | ||
236 | /* | 236 | /* |
237 | * Records the current topology (number of connections, time, trial) | 237 | * Records the current topology (number of connections, time, trial) |
@@ -250,7 +250,8 @@ struct GNUNET_DHTLOG_Handle | |||
250 | * | 250 | * |
251 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 251 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
252 | */ | 252 | */ |
253 | int (*insert_extended_topology) (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second); | 253 | int (*insert_extended_topology) (const struct GNUNET_PeerIdentity * first, |
254 | const struct GNUNET_PeerIdentity * second); | ||
254 | 255 | ||
255 | /* | 256 | /* |
256 | * Inserts the specified stats into the dhttests.generic_stats table | 257 | * Inserts the specified stats into the dhttests.generic_stats table |
@@ -262,10 +263,9 @@ struct GNUNET_DHTLOG_Handle | |||
262 | * | 263 | * |
263 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 264 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
264 | */ | 265 | */ |
265 | int | 266 | int (*add_generic_stat) (const struct GNUNET_PeerIdentity * peer, |
266 | (*add_generic_stat) (const struct GNUNET_PeerIdentity *peer, | 267 | const char *name, |
267 | const char *name, | 268 | const char *section, uint64_t value); |
268 | const char *section, uint64_t value); | ||
269 | 269 | ||
270 | /* | 270 | /* |
271 | * Inserts the specified round into the dhttests.rounds table | 271 | * Inserts the specified round into the dhttests.rounds table |
@@ -288,8 +288,10 @@ struct GNUNET_DHTLOG_Handle | |||
288 | * | 288 | * |
289 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 289 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
290 | */ | 290 | */ |
291 | int (*insert_round_details) (unsigned int round_type, unsigned int round_count, | 291 | int (*insert_round_details) (unsigned int round_type, |
292 | unsigned int num_messages, unsigned int num_messages_succeeded); | 292 | unsigned int round_count, |
293 | unsigned int num_messages, | ||
294 | unsigned int num_messages_succeeded); | ||
293 | 295 | ||
294 | /* | 296 | /* |
295 | * Update dhttests.trials table with total connections information | 297 | * Update dhttests.trials table with total connections information |
@@ -371,14 +373,14 @@ struct GNUNET_DHTLOG_Plugin | |||
371 | * | 373 | * |
372 | * @param c a configuration to use | 374 | * @param c a configuration to use |
373 | */ | 375 | */ |
374 | struct GNUNET_DHTLOG_Handle * | 376 | struct GNUNET_DHTLOG_Handle *GNUNET_DHTLOG_connect (const struct |
375 | GNUNET_DHTLOG_connect (const struct GNUNET_CONFIGURATION_Handle *c); | 377 | GNUNET_CONFIGURATION_Handle |
378 | *c); | ||
376 | 379 | ||
377 | /** | 380 | /** |
378 | * Shutdown the module. | 381 | * Shutdown the module. |
379 | */ | 382 | */ |
380 | void | 383 | void GNUNET_DHTLOG_disconnect (struct GNUNET_DHTLOG_Handle *api); |
381 | GNUNET_DHTLOG_disconnect (struct GNUNET_DHTLOG_Handle *api); | ||
382 | 384 | ||
383 | 385 | ||
384 | #if 0 /* keep Emacsens' auto-indent happy */ | 386 | #if 0 /* keep Emacsens' auto-indent happy */ |