diff options
Diffstat (limited to 'src/reclaim/gnunet-service-reclaim_tickets.h')
-rw-r--r-- | src/reclaim/gnunet-service-reclaim_tickets.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.h b/src/reclaim/gnunet-service-reclaim_tickets.h index 7ad86dba5..81455fe53 100644 --- a/src/reclaim/gnunet-service-reclaim_tickets.h +++ b/src/reclaim/gnunet-service-reclaim_tickets.h | |||
@@ -30,6 +30,19 @@ | |||
30 | #include "gnunet_signatures.h" | 30 | #include "gnunet_signatures.h" |
31 | #include "reclaim.h" | 31 | #include "reclaim.h" |
32 | 32 | ||
33 | struct RECLAIM_TICKETS_Iterator; | ||
34 | |||
35 | /** | ||
36 | * Continuation called with ticket. | ||
37 | * | ||
38 | * @param cls closure | ||
39 | * @param ticket the ticket | ||
40 | */ | ||
41 | typedef void | ||
42 | (*RECLAIM_TICKETS_TicketIter) (void *cls, | ||
43 | struct GNUNET_RECLAIM_Ticket *ticket); | ||
44 | |||
45 | |||
33 | /** | 46 | /** |
34 | * Continuation called with ticket. | 47 | * Continuation called with ticket. |
35 | * | 48 | * |
@@ -59,5 +72,23 @@ RECLAIM_TICKETS_issue_ticket (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identi | |||
59 | RECLAIM_TICKETS_TicketResult cb, | 72 | RECLAIM_TICKETS_TicketResult cb, |
60 | void* cb_cls); | 73 | void* cb_cls); |
61 | 74 | ||
75 | void | ||
76 | RECLAIM_TICKETS_iteration_next (struct RECLAIM_TICKETS_Iterator *iter); | ||
77 | |||
78 | |||
79 | void | ||
80 | RECLAIM_TICKETS_iteration_stop (struct RECLAIM_TICKETS_Iterator *iter); | ||
81 | |||
82 | |||
83 | struct RECLAIM_TICKETS_Iterator* | ||
84 | RECLAIM_TICKETS_iteration_start (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, | ||
85 | RECLAIM_TICKETS_TicketIter cb, | ||
86 | void* cb_cls); | ||
87 | |||
88 | |||
62 | int | 89 | int |
63 | RECLAIM_TICKETS_init (const struct GNUNET_CONFIGURATION_Handle *c); | 90 | RECLAIM_TICKETS_init (const struct GNUNET_CONFIGURATION_Handle *c); |
91 | |||
92 | void | ||
93 | RECLAIM_TICKETS_deinit (void); | ||
94 | |||