summaryrefslogtreecommitdiff
path: root/src/reclaim/gnunet-service-reclaim_tickets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim_tickets.h')
-rw-r--r--src/reclaim/gnunet-service-reclaim_tickets.h43
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 */
66struct TicketRecordsEntry { 66struct 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 */
163struct RECLAIM_TICKETS_RevokeHandle * 164struct RECLAIM_TICKETS_RevokeHandle *
164RECLAIM_TICKETS_revoke(const struct GNUNET_RECLAIM_Ticket *ticket, 165RECLAIM_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 */
175void 176void
176RECLAIM_TICKETS_revoke_cancel(struct RECLAIM_TICKETS_RevokeHandle *rh); 177RECLAIM_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 */
190struct RECLAIM_TICKETS_ConsumeHandle * 191struct RECLAIM_TICKETS_ConsumeHandle *
191RECLAIM_TICKETS_consume(const struct GNUNET_CRYPTO_EcdsaPrivateKey *id, 192RECLAIM_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 */
202void 203void
203RECLAIM_TICKETS_consume_cancel(struct RECLAIM_TICKETS_ConsumeHandle *cth); 204RECLAIM_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 */
217void 218void
218RECLAIM_TICKETS_issue(const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, 219RECLAIM_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 */
230void 231void
231RECLAIM_TICKETS_iteration_next(struct RECLAIM_TICKETS_Iterator *iter); 232RECLAIM_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 */
239void 240void
240RECLAIM_TICKETS_iteration_stop(struct RECLAIM_TICKETS_Iterator *iter); 241RECLAIM_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 */
251struct RECLAIM_TICKETS_Iterator * 252struct RECLAIM_TICKETS_Iterator *
252RECLAIM_TICKETS_iteration_start( 253RECLAIM_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 */
264int 265int
265RECLAIM_TICKETS_init(const struct GNUNET_CONFIGURATION_Handle *c); 266RECLAIM_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 */
272void 273void
273RECLAIM_TICKETS_deinit(void); 274RECLAIM_TICKETS_deinit (void);
274 275
275#endif 276#endif