aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
committerng0 <ng0@n0.is>2019-09-08 12:33:09 +0000
commitd41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch)
tree9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/rps/gnunet-service-rps_sampler.h
parenta0fce305c565c0937d917a92712f15e9c5736260 (diff)
downloadgnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz
gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip
uncrustify as demanded.
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h
index d8e5f3efd..8bccb8431 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/rps/gnunet-service-rps_sampler.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/gnunet-service-rps_sampler.h 22 * @file rps/gnunet-service-rps_sampler.h
@@ -48,7 +48,7 @@ struct RPS_SamplerRequestHandle;
48 * @return the size of the sampler 48 * @return the size of the sampler
49 */ 49 */
50unsigned int 50unsigned int
51RPS_sampler_get_size (struct RPS_Sampler *sampler); 51RPS_sampler_get_size(struct RPS_Sampler *sampler);
52 52
53 53
54/** 54/**
@@ -58,7 +58,7 @@ RPS_sampler_get_size (struct RPS_Sampler *sampler);
58 * @param new_size the new size of the sampler (not 0) 58 * @param new_size the new size of the sampler (not 0)
59 */ 59 */
60void 60void
61RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size); 61RPS_sampler_resize(struct RPS_Sampler *sampler, unsigned int new_size);
62 62
63 63
64/** 64/**
@@ -69,8 +69,8 @@ RPS_sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size);
69 * @return a handle to a sampler that consists of sampler elements. 69 * @return a handle to a sampler that consists of sampler elements.
70 */ 70 */
71struct RPS_Sampler * 71struct RPS_Sampler *
72RPS_sampler_init (size_t init_size, 72RPS_sampler_init(size_t init_size,
73 struct GNUNET_TIME_Relative max_round_interval); 73 struct GNUNET_TIME_Relative max_round_interval);
74 74
75 75
76/** 76/**
@@ -79,9 +79,9 @@ RPS_sampler_init (size_t init_size,
79 * @param sampler the sampler to update. 79 * @param sampler the sampler to update.
80 * @param id the PeerID that is put in the sampler 80 * @param id the PeerID that is put in the sampler
81 */ 81 */
82 void 82void
83RPS_sampler_update (struct RPS_Sampler *sampler, 83RPS_sampler_update(struct RPS_Sampler *sampler,
84 const struct GNUNET_PeerIdentity *id); 84 const struct GNUNET_PeerIdentity *id);
85 85
86 86
87/** 87/**
@@ -99,9 +99,9 @@ RPS_sampler_update (struct RPS_Sampler *sampler,
99 * @param sampler the sampler to reinitialise a sampler in. 99 * @param sampler the sampler to reinitialise a sampler in.
100 * @param id the id of the samplers to update. 100 * @param id the id of the samplers to update.
101 */ 101 */
102 void 102void
103RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler, 103RPS_sampler_reinitialise_by_value(struct RPS_Sampler *sampler,
104 const struct GNUNET_PeerIdentity *id); 104 const struct GNUNET_PeerIdentity *id);
105 105
106 106
107/** 107/**
@@ -119,10 +119,10 @@ RPS_sampler_reinitialise_by_value (struct RPS_Sampler *sampler,
119 * @param num_peers the number of peers requested 119 * @param num_peers the number of peers requested
120 */ 120 */
121struct RPS_SamplerRequestHandle * 121struct RPS_SamplerRequestHandle *
122RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler, 122RPS_sampler_get_n_rand_peers(struct RPS_Sampler *sampler,
123 uint32_t num_peers, 123 uint32_t num_peers,
124 RPS_sampler_n_rand_peers_ready_cb cb, 124 RPS_sampler_n_rand_peers_ready_cb cb,
125 void *cls); 125 void *cls);
126 126
127/** 127/**
128 * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. 128 * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb.
@@ -130,7 +130,7 @@ RPS_sampler_get_n_rand_peers (struct RPS_Sampler *sampler,
130 * @param req_handle the handle to the request 130 * @param req_handle the handle to the request
131 */ 131 */
132void 132void
133RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle); 133RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle);
134 134
135 135
136/** 136/**
@@ -141,9 +141,9 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle);
141 * 141 *
142 * @return the number of occurrences of id. 142 * @return the number of occurrences of id.
143 */ 143 */
144 uint32_t 144uint32_t
145RPS_sampler_count_id (struct RPS_Sampler *sampler, 145RPS_sampler_count_id(struct RPS_Sampler *sampler,
146 const struct GNUNET_PeerIdentity *id); 146 const struct GNUNET_PeerIdentity *id);
147 147
148 148
149/** 149/**
@@ -151,8 +151,8 @@ RPS_sampler_count_id (struct RPS_Sampler *sampler,
151 * 151 *
152 * @param sampler the sampler to destroy. 152 * @param sampler the sampler to destroy.
153 */ 153 */
154 void 154void
155RPS_sampler_destroy (struct RPS_Sampler *sampler); 155RPS_sampler_destroy(struct RPS_Sampler *sampler);
156 156
157#endif 157#endif
158/* end of gnunet-service-rps.c */ 158/* end of gnunet-service-rps.c */