aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.h')
-rw-r--r--src/fs/gnunet-service-fs_cp.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_cp.h b/src/fs/gnunet-service-fs_cp.h
index 9bf36186c..f08e31a72 100644
--- a/src/fs/gnunet-service-fs_cp.h
+++ b/src/fs/gnunet-service-fs_cp.h
@@ -90,6 +90,11 @@ struct GSF_PeerPerformanceData
90 double avg_priority; 90 double avg_priority;
91 91
92 /** 92 /**
93 * Trust rating for this peer
94 */
95 uint32_t trust;
96
97 /**
93 * Number of pending queries (replies are not counted) 98 * Number of pending queries (replies are not counted)
94 */ 99 */
95 unsigned int pending_queries; 100 unsigned int pending_queries;
@@ -265,6 +270,28 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other,
265 270
266 271
267/** 272/**
273 * Return the performance data record for the given peer
274 *
275 * @param cp peer to query
276 * @return performance data record for the peer
277 */
278struct GSF_PeerPerformanceData *
279GSF_get_peer_performance_data_ (struct GSF_ConnectedPeer *cp);
280
281
282/**
283 * Ask a peer to stop migrating data to us until the given point
284 * in time.
285 *
286 * @param cp peer to ask
287 * @param block_time until when to block
288 */
289void
290GSF_block_peer_migration_ (struct GSF_ConnectedPeer *cp,
291 struct GNUNET_TIME_Relative block_time);
292
293
294/**
268 * A peer disconnected from us. Tear down the connected peer 295 * A peer disconnected from us. Tear down the connected peer
269 * record. 296 * record.
270 * 297 *