aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-sampler_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps-sampler_client.h')
-rw-r--r--src/rps/rps-sampler_client.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/rps/rps-sampler_client.h b/src/rps/rps-sampler_client.h
index 680fabfda..db8087795 100644
--- a/src/rps/rps-sampler_client.h
+++ b/src/rps/rps-sampler_client.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file rps/rps-sampler_client.h 22 * @file rps/rps-sampler_client.h
@@ -53,7 +53,7 @@ struct RPS_SamplerRequestHandleSingleInfo;
53 * @return the size of the sampler 53 * @return the size of the sampler
54 */ 54 */
55unsigned int 55unsigned int
56RPS_sampler_get_size (struct RPS_Sampler *sampler); 56RPS_sampler_get_size(struct RPS_Sampler *sampler);
57 57
58 58
59/** 59/**
@@ -63,7 +63,7 @@ RPS_sampler_get_size (struct RPS_Sampler *sampler);
63 * @param new_size the new size of the sampler (not 0) 63 * @param new_size the new size of the sampler (not 0)
64 */ 64 */
65void 65void
66RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size); 66RPS_sampler_resize(struct RPS_Sampler *sampler, unsigned int new_size);
67 67
68 68
69/** 69/**
@@ -74,8 +74,8 @@ RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size);
74 * @return a handle to a sampler that consists of sampler elements. 74 * @return a handle to a sampler that consists of sampler elements.
75 */ 75 */
76struct RPS_Sampler * 76struct RPS_Sampler *
77RPS_sampler_mod_init (size_t init_size, 77RPS_sampler_mod_init(size_t init_size,
78 struct GNUNET_TIME_Relative max_round_interval); 78 struct GNUNET_TIME_Relative max_round_interval);
79 79
80 80
81/** 81/**
@@ -84,9 +84,9 @@ RPS_sampler_mod_init (size_t init_size,
84 * @param sampler the sampler to update. 84 * @param sampler the sampler to update.
85 * @param id the PeerID that is put in the sampler 85 * @param id the PeerID that is put in the sampler
86 */ 86 */
87 void 87void
88RPS_sampler_update (struct RPS_Sampler *sampler, 88RPS_sampler_update(struct RPS_Sampler *sampler,
89 const struct GNUNET_PeerIdentity *id); 89 const struct GNUNET_PeerIdentity *id);
90 90
91 91
92/** 92/**
@@ -98,9 +98,9 @@ RPS_sampler_update (struct RPS_Sampler *sampler,
98 * @param sampler the sampler to reinitialise a sampler in. 98 * @param sampler the sampler to reinitialise a sampler in.
99 * @param id the id of the samplers to update. 99 * @param id the id of the samplers to update.
100 */ 100 */
101 void 101void
102RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler, 102RPS_sampler_reinitialise_by_value(struct RPS_Sampler *sampler,
103 const struct GNUNET_PeerIdentity *id); 103 const struct GNUNET_PeerIdentity *id);
104 104
105 105
106/** 106/**
@@ -116,10 +116,10 @@ RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler,
116 * @param num_peers the number of peers requested 116 * @param num_peers the number of peers requested
117 */ 117 */
118struct RPS_SamplerRequestHandle * 118struct RPS_SamplerRequestHandle *
119RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, 119RPS_sampler_get_n_rand_peers(struct RPS_Sampler *sampler,
120 uint32_t num_peers, 120 uint32_t num_peers,
121 RPS_sampler_n_rand_peers_ready_cb cb, 121 RPS_sampler_n_rand_peers_ready_cb cb,
122 void *cls); 122 void *cls);
123 123
124 124
125/** 125/**
@@ -128,7 +128,7 @@ RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler,
128 * @param req_handle the handle to the request 128 * @param req_handle the handle to the request
129 */ 129 */
130void 130void
131RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); 131RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle);
132 132
133 133
134/** 134/**
@@ -139,9 +139,9 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle);
139 * 139 *
140 * @return the number of occurrences of id. 140 * @return the number of occurrences of id.
141 */ 141 */
142 uint32_t 142uint32_t
143RPS_sampler_count_id (struct RPS_Sampler *sampler, 143RPS_sampler_count_id(struct RPS_Sampler *sampler,
144 const struct GNUNET_PeerIdentity *id); 144 const struct GNUNET_PeerIdentity *id);
145 145
146 146
147/** 147/**
@@ -149,8 +149,8 @@ RPS_sampler_count_id (struct RPS_Sampler *sampler,
149 * 149 *
150 * @param sampler the sampler to destroy. 150 * @param sampler the sampler to destroy.
151 */ 151 */
152 void 152void
153RPS_sampler_destroy (struct RPS_Sampler *sampler); 153RPS_sampler_destroy(struct RPS_Sampler *sampler);
154 154
155#endif /* RPS_SAMPLER_CLIENT_H */ 155#endif /* RPS_SAMPLER_CLIENT_H */
156/* end of gnunet-service-rps.c */ 156/* end of gnunet-service-rps.c */