diff options
Diffstat (limited to 'src/rps/rps-sampler_client.h')
-rw-r--r-- | src/rps/rps-sampler_client.h | 32 |
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 | */ |
55 | unsigned int | 55 | unsigned int |
56 | RPS_sampler_get_size(struct RPS_Sampler *sampler); | 56 | RPS_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 | */ |
65 | void | 65 | void |
66 | RPS_sampler_resize(struct RPS_Sampler *sampler, unsigned int new_size); | 66 | RPS_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 | */ |
76 | struct RPS_Sampler * | 76 | struct RPS_Sampler * |
77 | RPS_sampler_mod_init(size_t init_size, | 77 | RPS_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 | */ |
87 | void | 87 | void |
88 | RPS_sampler_update(struct RPS_Sampler *sampler, | 88 | RPS_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 | */ |
101 | void | 101 | void |
102 | RPS_sampler_reinitialise_by_value(struct RPS_Sampler *sampler, | 102 | RPS_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 | */ |
118 | struct RPS_SamplerRequestHandle * | 118 | struct RPS_SamplerRequestHandle * |
119 | RPS_sampler_get_n_rand_peers(struct RPS_Sampler *sampler, | 119 | RPS_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 | */ |
130 | void | 130 | void |
131 | RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle); | 131 | RPS_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 | */ |
142 | uint32_t | 142 | uint32_t |
143 | RPS_sampler_count_id(struct RPS_Sampler *sampler, | 143 | RPS_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 | */ |
152 | void | 152 | void |
153 | RPS_sampler_destroy(struct RPS_Sampler *sampler); | 153 | RPS_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 */ |