diff options
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim_tickets.h')
-rw-r--r-- | src/reclaim/gnunet-service-reclaim_tickets.h | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.h b/src/reclaim/gnunet-service-reclaim_tickets.h index 05f834b1e..20a7a8e6f 100644 --- a/src/reclaim/gnunet-service-reclaim_tickets.h +++ b/src/reclaim/gnunet-service-reclaim_tickets.h | |||
@@ -16,7 +16,7 @@ | |||
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 | * @author Martin Schanzenbach | 22 | * @author Martin Schanzenbach |
@@ -63,8 +63,7 @@ struct RECLAIM_TICKETS_RevokeHandle; | |||
63 | /** | 63 | /** |
64 | * List of tickets | 64 | * List of tickets |
65 | */ | 65 | */ |
66 | struct TicketRecordsEntry | 66 | struct TicketRecordsEntry { |
67 | { | ||
68 | /** | 67 | /** |
69 | * DLL | 68 | * DLL |
70 | */ | 69 | */ |
@@ -162,10 +161,10 @@ typedef void (*RECLAIM_TICKETS_RevokeCallback) (void *cls, int32_t success); | |||
162 | * @return handle to the operation | 161 | * @return handle to the operation |
163 | */ | 162 | */ |
164 | struct RECLAIM_TICKETS_RevokeHandle * | 163 | struct RECLAIM_TICKETS_RevokeHandle * |
165 | RECLAIM_TICKETS_revoke (const struct GNUNET_RECLAIM_Ticket *ticket, | 164 | RECLAIM_TICKETS_revoke(const struct GNUNET_RECLAIM_Ticket *ticket, |
166 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 165 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
167 | RECLAIM_TICKETS_RevokeCallback cb, | 166 | RECLAIM_TICKETS_RevokeCallback cb, |
168 | void *cb_cls); | 167 | void *cb_cls); |
169 | 168 | ||
170 | 169 | ||
171 | /** | 170 | /** |
@@ -174,7 +173,7 @@ RECLAIM_TICKETS_revoke (const struct GNUNET_RECLAIM_Ticket *ticket, | |||
174 | * @param rh handle to the operation | 173 | * @param rh handle to the operation |
175 | */ | 174 | */ |
176 | void | 175 | void |
177 | RECLAIM_TICKETS_revoke_cancel (struct RECLAIM_TICKETS_RevokeHandle *rh); | 176 | RECLAIM_TICKETS_revoke_cancel(struct RECLAIM_TICKETS_RevokeHandle *rh); |
178 | 177 | ||
179 | 178 | ||
180 | /** | 179 | /** |
@@ -189,10 +188,10 @@ RECLAIM_TICKETS_revoke_cancel (struct RECLAIM_TICKETS_RevokeHandle *rh); | |||
189 | * @return handle to the operation | 188 | * @return handle to the operation |
190 | */ | 189 | */ |
191 | struct RECLAIM_TICKETS_ConsumeHandle * | 190 | struct RECLAIM_TICKETS_ConsumeHandle * |
192 | RECLAIM_TICKETS_consume (const struct GNUNET_CRYPTO_EcdsaPrivateKey *id, | 191 | RECLAIM_TICKETS_consume(const struct GNUNET_CRYPTO_EcdsaPrivateKey *id, |
193 | const struct GNUNET_RECLAIM_Ticket *ticket, | 192 | const struct GNUNET_RECLAIM_Ticket *ticket, |
194 | RECLAIM_TICKETS_ConsumeCallback cb, | 193 | RECLAIM_TICKETS_ConsumeCallback cb, |
195 | void *cb_cls); | 194 | void *cb_cls); |
196 | 195 | ||
197 | 196 | ||
198 | /** | 197 | /** |
@@ -201,7 +200,7 @@ RECLAIM_TICKETS_consume (const struct GNUNET_CRYPTO_EcdsaPrivateKey *id, | |||
201 | * @param cth the operation to cancel | 200 | * @param cth the operation to cancel |
202 | */ | 201 | */ |
203 | void | 202 | void |
204 | RECLAIM_TICKETS_consume_cancel (struct RECLAIM_TICKETS_ConsumeHandle *cth); | 203 | RECLAIM_TICKETS_consume_cancel(struct RECLAIM_TICKETS_ConsumeHandle *cth); |
205 | 204 | ||
206 | 205 | ||
207 | /** | 206 | /** |
@@ -216,11 +215,11 @@ RECLAIM_TICKETS_consume_cancel (struct RECLAIM_TICKETS_ConsumeHandle *cth); | |||
216 | * FIXME: Return handle?? | 215 | * FIXME: Return handle?? |
217 | */ | 216 | */ |
218 | void | 217 | void |
219 | RECLAIM_TICKETS_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 218 | RECLAIM_TICKETS_issue(const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
220 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, | 219 | const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, |
221 | const struct GNUNET_CRYPTO_EcdsaPublicKey *audience, | 220 | const struct GNUNET_CRYPTO_EcdsaPublicKey *audience, |
222 | RECLAIM_TICKETS_TicketResult cb, | 221 | RECLAIM_TICKETS_TicketResult cb, |
223 | void *cb_cls); | 222 | void *cb_cls); |
224 | 223 | ||
225 | 224 | ||
226 | /** | 225 | /** |
@@ -229,7 +228,7 @@ RECLAIM_TICKETS_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | |||
229 | * @param iter the iteration to continue | 228 | * @param iter the iteration to continue |
230 | */ | 229 | */ |
231 | void | 230 | void |
232 | RECLAIM_TICKETS_iteration_next (struct RECLAIM_TICKETS_Iterator *iter); | 231 | RECLAIM_TICKETS_iteration_next(struct RECLAIM_TICKETS_Iterator *iter); |
233 | 232 | ||
234 | 233 | ||
235 | /** | 234 | /** |
@@ -238,7 +237,7 @@ RECLAIM_TICKETS_iteration_next (struct RECLAIM_TICKETS_Iterator *iter); | |||
238 | * @param iter iteration to cancel | 237 | * @param iter iteration to cancel |
239 | */ | 238 | */ |
240 | void | 239 | void |
241 | RECLAIM_TICKETS_iteration_stop (struct RECLAIM_TICKETS_Iterator *iter); | 240 | RECLAIM_TICKETS_iteration_stop(struct RECLAIM_TICKETS_Iterator *iter); |
242 | 241 | ||
243 | 242 | ||
244 | /** | 243 | /** |
@@ -250,7 +249,7 @@ RECLAIM_TICKETS_iteration_stop (struct RECLAIM_TICKETS_Iterator *iter); | |||
250 | * @return a handle to the iteration | 249 | * @return a handle to the iteration |
251 | */ | 250 | */ |
252 | struct RECLAIM_TICKETS_Iterator * | 251 | struct RECLAIM_TICKETS_Iterator * |
253 | RECLAIM_TICKETS_iteration_start ( | 252 | RECLAIM_TICKETS_iteration_start( |
254 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | 253 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, |
255 | RECLAIM_TICKETS_TicketIter cb, | 254 | RECLAIM_TICKETS_TicketIter cb, |
256 | void *cb_cls); | 255 | void *cb_cls); |
@@ -263,7 +262,7 @@ RECLAIM_TICKETS_iteration_start ( | |||
263 | * @return GNUNET_SYSERR on error | 262 | * @return GNUNET_SYSERR on error |
264 | */ | 263 | */ |
265 | int | 264 | int |
266 | RECLAIM_TICKETS_init (const struct GNUNET_CONFIGURATION_Handle *c); | 265 | RECLAIM_TICKETS_init(const struct GNUNET_CONFIGURATION_Handle *c); |
267 | 266 | ||
268 | 267 | ||
269 | /** | 268 | /** |
@@ -271,6 +270,6 @@ RECLAIM_TICKETS_init (const struct GNUNET_CONFIGURATION_Handle *c); | |||
271 | * FIXME: cancel all pending operations (gns, ns etc) | 270 | * FIXME: cancel all pending operations (gns, ns etc) |
272 | */ | 271 | */ |
273 | void | 272 | void |
274 | RECLAIM_TICKETS_deinit (void); | 273 | RECLAIM_TICKETS_deinit(void); |
275 | 274 | ||
276 | #endif | 275 | #endif |