diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/rps/gnunet-service-rps_sampler_elem.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler_elem.h')
-rw-r--r-- | src/rps/gnunet-service-rps_sampler_elem.h | 20 |
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 | */ |
40 | enum RPS_SamplerEmpty { | 40 | enum 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 | */ |
48 | struct RPS_SamplerElement { | 49 | struct 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 | */ |
104 | void | 106 | void |
105 | RPS_sampler_elem_reinit(struct RPS_SamplerElement *sampler_elem); | 107 | RPS_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 | */ |
116 | struct RPS_SamplerElement * | 118 | struct RPS_SamplerElement * |
117 | RPS_sampler_elem_create(void); | 119 | RPS_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 | */ |
125 | void | 127 | void |
126 | RPS_sampler_elem_destroy(struct RPS_SamplerElement *sampler_elem); | 128 | RPS_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 | */ |
135 | void | 137 | void |
136 | RPS_sampler_elem_next(struct RPS_SamplerElement *sampler_elem, | 138 | RPS_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 | */ |
145 | void | 147 | void |
146 | RPS_sampler_elem_set(struct RPS_SamplerElement *sampler_elem, | 148 | RPS_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 */ |