aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/rps/gnunet-service-rps_sampler.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
downloadgnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz
gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.h b/src/rps/gnunet-service-rps_sampler.h
index 8bccb8431..f3a8c9763 100644
--- a/src/rps/gnunet-service-rps_sampler.h
+++ b/src/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/**
@@ -80,8 +80,8 @@ RPS_sampler_init(size_t init_size,
80 * @param id the PeerID that is put in the sampler 80 * @param id the PeerID that is put in the sampler
81 */ 81 */
82void 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/**
@@ -100,8 +100,8 @@ RPS_sampler_update(struct RPS_Sampler *sampler,
100 * @param id the id of the samplers to update. 100 * @param id the id of the samplers to update.
101 */ 101 */
102void 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/**
@@ -142,8 +142,8 @@ RPS_sampler_request_cancel(struct RPS_SamplerRequestHandle *req_handle);
142 * @return the number of occurrences of id. 142 * @return the number of occurrences of id.
143 */ 143 */
144uint32_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/**
@@ -152,7 +152,7 @@ RPS_sampler_count_id(struct RPS_Sampler *sampler,
152 * @param sampler the sampler to destroy. 152 * @param sampler the sampler to destroy.
153 */ 153 */
154void 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 */