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