diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-07 22:44:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-07 22:44:36 +0000 |
commit | 86d7f49fc64f0c766d4bec6b3f34879f108fc8a9 (patch) | |
tree | b8472cd2eeeacc601513f36bc03149ec9151db03 /src/fs/gnunet-service-fs_pe.h | |
parent | de952b871bfe79a7f2b79d9ab04dc37933d49bf1 (diff) | |
download | gnunet-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.h | 27 |
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 | */ |
40 | void | 40 | void |
41 | GSF_plan_add_ (struct GSF_ConnectedPeer *cp, | 41 | GSF_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 | */ |
52 | void | 52 | void |
53 | GSF_plan_notify_peer_disconnect_ (struct GSF_ConnectedPeer *cp); | 53 | GSF_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 | */ |
62 | void | 62 | void |
63 | GSF_plan_notify_request_done_ (struct GSF_PendingRequest *pr); | 63 | GSF_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 | */ |
73 | struct GSF_PendingRequest * | 73 | struct GSF_PendingRequest * |
74 | GSF_plan_get_ (struct GSF_ConnectedPeer *cp); | 74 | GSF_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 | */ |
83 | unsigned int | 83 | unsigned int |
84 | GSF_plan_size_ (struct GSF_ConnectedPeer *cp); | 84 | GSF_plan_size_ (const struct GSF_ConnectedPeer *cp); |
85 | |||
86 | |||
87 | /** | ||
88 | * Initialize plan subsystem. | ||
89 | */ | ||
90 | void | ||
91 | GSF_plan_init (void); | ||
92 | |||
93 | |||
94 | /** | ||
95 | * Shutdown plan subsystem. | ||
96 | */ | ||
97 | void | ||
98 | GSF_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 */ |