aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pe.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-02-07 22:44:36 +0000
committerChristian Grothoff <christian@grothoff.org>2011-02-07 22:44:36 +0000
commit86d7f49fc64f0c766d4bec6b3f34879f108fc8a9 (patch)
treeb8472cd2eeeacc601513f36bc03149ec9151db03 /src/fs/gnunet-service-fs_pe.h
parentde952b871bfe79a7f2b79d9ab04dc37933d49bf1 (diff)
downloadgnunet-86d7f49fc64f0c766d4bec6b3f34879f108fc8a9.tar.gz
gnunet-86d7f49fc64f0c766d4bec6b3f34879f108fc8a9.zip
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_pe.h')
-rw-r--r--src/fs/gnunet-service-fs_pe.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/fs/gnunet-service-fs_pe.h b/src/fs/gnunet-service-fs_pe.h
index 09baebc1a..d70001356 100644
--- a/src/fs/gnunet-service-fs_pe.h
+++ b/src/fs/gnunet-service-fs_pe.h
@@ -38,9 +38,9 @@
38 * lower weights are earlier in the queue 38 * lower weights are earlier in the queue
39 */ 39 */
40void 40void
41GSF_plan_add_ (struct GSF_ConnectedPeer *cp, 41GSF_plan_add_ (const struct GSF_ConnectedPeer *cp,
42 struct GSF_PendingRequest *pr, 42 struct GSF_PendingRequest *pr,
43 double weight); 43 GNUNET_CONTAINER_HeapCostType weight);
44 44
45 45
46/** 46/**
@@ -50,7 +50,7 @@ GSF_plan_add_ (struct GSF_ConnectedPeer *cp,
50 * @param cp connected peer 50 * @param cp connected peer
51 */ 51 */
52void 52void
53GSF_plan_notify_peer_disconnect_ (struct GSF_ConnectedPeer *cp); 53GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp);
54 54
55 55
56/** 56/**
@@ -60,7 +60,7 @@ GSF_plan_notify_peer_disconnect_ (struct GSF_ConnectedPeer *cp);
60 * @param pr request that is done 60 * @param pr request that is done
61 */ 61 */
62void 62void
63GSF_plan_notify_request_done_ (struct GSF_PendingRequest *pr); 63GSF_plan_notify_request_done_ (const struct GSF_PendingRequest *pr);
64 64
65 65
66/** 66/**
@@ -71,7 +71,7 @@ GSF_plan_notify_request_done_ (struct GSF_PendingRequest *pr);
71 * @return NULL if the queue for this peer is empty 71 * @return NULL if the queue for this peer is empty
72 */ 72 */
73struct GSF_PendingRequest * 73struct GSF_PendingRequest *
74GSF_plan_get_ (struct GSF_ConnectedPeer *cp); 74GSF_plan_get_ (const struct GSF_ConnectedPeer *cp);
75 75
76 76
77/** 77/**
@@ -81,7 +81,22 @@ GSF_plan_get_ (struct GSF_ConnectedPeer *cp);
81 * @return number of entries in this peer's request queue 81 * @return number of entries in this peer's request queue
82 */ 82 */
83unsigned int 83unsigned int
84GSF_plan_size_ (struct GSF_ConnectedPeer *cp); 84GSF_plan_size_ (const struct GSF_ConnectedPeer *cp);
85
86
87/**
88 * Initialize plan subsystem.
89 */
90void
91GSF_plan_init (void);
92
93
94/**
95 * Shutdown plan subsystem.
96 */
97void
98GSF_plan_done (void);
99
85 100
86#endif 101#endif
87/* end of gnunet-service-fs_pe.h */ 102/* end of gnunet-service-fs_pe.h */