summaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler_elem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler_elem.h')
-rw-r--r--src/rps/gnunet-service-rps_sampler_elem.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/rps/gnunet-service-rps_sampler_elem.h b/src/rps/gnunet-service-rps_sampler_elem.h
index c22b7413c..98959a88f 100644
--- a/src/rps/gnunet-service-rps_sampler_elem.h
+++ b/src/rps/gnunet-service-rps_sampler_elem.h
@@ -37,7 +37,8 @@
37/** 37/**
38 * Used to indicate whether a sampler element is empty. 38 * Used to indicate whether a sampler element is empty.
39 */ 39 */
40enum RPS_SamplerEmpty { 40enum RPS_SamplerEmpty
41{
41 NOT_EMPTY = 0x0, 42 NOT_EMPTY = 0x0,
42 EMPTY = 0x1 43 EMPTY = 0x1
43}; 44};
@@ -45,7 +46,8 @@ enum RPS_SamplerEmpty {
45/** 46/**
46 * A sampler element sampling one PeerID at a time. 47 * A sampler element sampling one PeerID at a time.
47 */ 48 */
48struct RPS_SamplerElement { 49struct RPS_SamplerElement
50{
49 /** 51 /**
50 * Min-wise linear permutation used by this sampler. 52 * Min-wise linear permutation used by this sampler.
51 * 53 *
@@ -102,7 +104,7 @@ struct RPS_SamplerElement {
102 * @param sampler_el The sampler element to (re-) initialise 104 * @param sampler_el The sampler element to (re-) initialise
103 */ 105 */
104void 106void
105RPS_sampler_elem_reinit(struct RPS_SamplerElement *sampler_elem); 107RPS_sampler_elem_reinit (struct RPS_SamplerElement *sampler_elem);
106 108
107 109
108/** 110/**
@@ -114,7 +116,7 @@ RPS_sampler_elem_reinit(struct RPS_SamplerElement *sampler_elem);
114 * @return a newly created RPS_SamplerElement which currently holds no id. 116 * @return a newly created RPS_SamplerElement which currently holds no id.
115 */ 117 */
116struct RPS_SamplerElement * 118struct RPS_SamplerElement *
117RPS_sampler_elem_create(void); 119RPS_sampler_elem_create (void);
118 120
119 121
120/** 122/**
@@ -123,7 +125,7 @@ RPS_sampler_elem_create(void);
123 * @param sampler_elem the element to destroy 125 * @param sampler_elem the element to destroy
124 */ 126 */
125void 127void
126RPS_sampler_elem_destroy(struct RPS_SamplerElement *sampler_elem); 128RPS_sampler_elem_destroy (struct RPS_SamplerElement *sampler_elem);
127 129
128 130
129/** 131/**
@@ -133,8 +135,8 @@ RPS_sampler_elem_destroy(struct RPS_SamplerElement *sampler_elem);
133 * @param new_ID The PeerID to update with 135 * @param new_ID The PeerID to update with
134 */ 136 */
135void 137void
136RPS_sampler_elem_next(struct RPS_SamplerElement *sampler_elem, 138RPS_sampler_elem_next (struct RPS_SamplerElement *sampler_elem,
137 const struct GNUNET_PeerIdentity *new_ID); 139 const struct GNUNET_PeerIdentity *new_ID);
138 140
139/** 141/**
140 * Set the min-wise independent function of the given sampler element. 142 * Set the min-wise independent function of the given sampler element.
@@ -143,8 +145,8 @@ RPS_sampler_elem_next(struct RPS_SamplerElement *sampler_elem,
143 * @param auth_key the key to use 145 * @param auth_key the key to use
144 */ 146 */
145void 147void
146RPS_sampler_elem_set(struct RPS_SamplerElement *sampler_elem, 148RPS_sampler_elem_set (struct RPS_SamplerElement *sampler_elem,
147 struct GNUNET_CRYPTO_AuthKey auth_key); 149 struct GNUNET_CRYPTO_AuthKey auth_key);
148 150
149 151
150#endif /* RPS_SAMPLER_ELEM_H */ 152#endif /* RPS_SAMPLER_ELEM_H */