diff options
Diffstat (limited to 'src/include/gnunet_scalarproduct_service.h')
-rw-r--r-- | src/include/gnunet_scalarproduct_service.h | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h index b12a19a2f..1d775f659 100644 --- a/src/include/gnunet_scalarproduct_service.h +++ b/src/include/gnunet_scalarproduct_service.h | |||
@@ -17,7 +17,6 @@ | |||
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | |||
21 | /** | 20 | /** |
22 | * @author Christian M. Fuchs | 21 | * @author Christian M. Fuchs |
23 | * @author Gaurav Kukreja | 22 | * @author Gaurav Kukreja |
@@ -118,10 +117,9 @@ GNUNET_NETWORK_STRUCT_END | |||
118 | * @param status Status of the request | 117 | * @param status Status of the request |
119 | */ | 118 | */ |
120 | typedef void | 119 | typedef void |
121 | (*GNUNET_SCALARPRODUCT_ContinuationWithStatus) (void *cls, | 120 | (*GNUNET_SCALARPRODUCT_ContinuationWithStatus) ( |
122 | enum | 121 | void *cls, |
123 | GNUNET_SCALARPRODUCT_ResponseStatus | 122 | enum GNUNET_SCALARPRODUCT_ResponseStatus status); |
124 | status); | ||
125 | 123 | ||
126 | 124 | ||
127 | /** | 125 | /** |
@@ -132,10 +130,10 @@ typedef void | |||
132 | * @param result result of the computation | 130 | * @param result result of the computation |
133 | */ | 131 | */ |
134 | typedef void | 132 | typedef void |
135 | (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, | 133 | (*GNUNET_SCALARPRODUCT_DatumProcessor) ( |
136 | enum GNUNET_SCALARPRODUCT_ResponseStatus | 134 | void *cls, |
137 | status, | 135 | enum GNUNET_SCALARPRODUCT_ResponseStatus status, |
138 | gcry_mpi_t result); | 136 | gcry_mpi_t result); |
139 | 137 | ||
140 | 138 | ||
141 | /** | 139 | /** |
@@ -157,16 +155,14 @@ struct GNUNET_SCALARPRODUCT_ComputationHandle; | |||
157 | * @return a new handle for this computation | 155 | * @return a new handle for this computation |
158 | */ | 156 | */ |
159 | struct GNUNET_SCALARPRODUCT_ComputationHandle * | 157 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
160 | GNUNET_SCALARPRODUCT_start_computation (const struct | 158 | GNUNET_SCALARPRODUCT_start_computation ( |
161 | GNUNET_CONFIGURATION_Handle *cfg, | 159 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
162 | const struct | 160 | const struct GNUNET_HashCode *session_key, |
163 | GNUNET_HashCode *session_key, | 161 | const struct GNUNET_PeerIdentity *peer, |
164 | const struct GNUNET_PeerIdentity *peer, | 162 | const struct GNUNET_SCALARPRODUCT_Element *elements, |
165 | const struct | 163 | uint32_t element_count, |
166 | GNUNET_SCALARPRODUCT_Element *elements, | 164 | GNUNET_SCALARPRODUCT_DatumProcessor cont, |
167 | uint32_t element_count, | 165 | void *cont_cls); |
168 | GNUNET_SCALARPRODUCT_DatumProcessor cont, | ||
169 | void *cont_cls); | ||
170 | 166 | ||
171 | 167 | ||
172 | /** | 168 | /** |
@@ -181,15 +177,13 @@ GNUNET_SCALARPRODUCT_start_computation (const struct | |||
181 | * @return a new handle for this computation | 177 | * @return a new handle for this computation |
182 | */ | 178 | */ |
183 | struct GNUNET_SCALARPRODUCT_ComputationHandle * | 179 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
184 | GNUNET_SCALARPRODUCT_accept_computation (const struct | 180 | GNUNET_SCALARPRODUCT_accept_computation ( |
185 | GNUNET_CONFIGURATION_Handle *cfg, | 181 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
186 | const struct GNUNET_HashCode *key, | 182 | const struct GNUNET_HashCode *key, |
187 | const struct | 183 | const struct GNUNET_SCALARPRODUCT_Element *elements, |
188 | GNUNET_SCALARPRODUCT_Element *elements, | 184 | uint32_t element_count, |
189 | uint32_t element_count, | 185 | GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, |
190 | GNUNET_SCALARPRODUCT_ContinuationWithStatus | 186 | void *cont_cls); |
191 | cont, | ||
192 | void *cont_cls); | ||
193 | 187 | ||
194 | 188 | ||
195 | /** | 189 | /** |