summaryrefslogtreecommitdiff
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.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/rps/rps-sampler_client.h b/src/rps/rps-sampler_client.h
index db8087795..e6b808650 100644
--- a/src/rps/rps-sampler_client.h
+++ b/src/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/**
@@ -85,8 +85,8 @@ RPS_sampler_mod_init(size_t init_size,
85 * @param id the PeerID that is put in the sampler 85 * @param id the PeerID that is put in the sampler
86 */ 86 */
87void 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/**
@@ -99,8 +99,8 @@ RPS_sampler_update(struct RPS_Sampler *sampler,
99 * @param id the id of the samplers to update. 99 * @param id the id of the samplers to update.
100 */ 100 */
101void 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/**
@@ -140,8 +140,8 @@ RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle);
140 * @return the number of occurrences of id. 140 * @return the number of occurrences of id.
141 */ 141 */
142uint32_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/**
@@ -150,7 +150,7 @@ RPS_sampler_count_id(struct RPS_Sampler *sampler,
150 * @param sampler the sampler to destroy. 150 * @param sampler the sampler to destroy.
151 */ 151 */
152void 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 */