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.h45
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 */
66struct TicketRecordsEntry 66struct 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 */
164struct RECLAIM_TICKETS_RevokeHandle * 163struct RECLAIM_TICKETS_RevokeHandle *
165RECLAIM_TICKETS_revoke (const struct GNUNET_RECLAIM_Ticket *ticket, 164RECLAIM_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 */
176void 175void
177RECLAIM_TICKETS_revoke_cancel (struct RECLAIM_TICKETS_RevokeHandle *rh); 176RECLAIM_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 */
191struct RECLAIM_TICKETS_ConsumeHandle * 190struct RECLAIM_TICKETS_ConsumeHandle *
192RECLAIM_TICKETS_consume (const struct GNUNET_CRYPTO_EcdsaPrivateKey *id, 191RECLAIM_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 */
203void 202void
204RECLAIM_TICKETS_consume_cancel (struct RECLAIM_TICKETS_ConsumeHandle *cth); 203RECLAIM_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 */
218void 217void
219RECLAIM_TICKETS_issue (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity, 218RECLAIM_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 */
231void 230void
232RECLAIM_TICKETS_iteration_next (struct RECLAIM_TICKETS_Iterator *iter); 231RECLAIM_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 */
240void 239void
241RECLAIM_TICKETS_iteration_stop (struct RECLAIM_TICKETS_Iterator *iter); 240RECLAIM_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 */
252struct RECLAIM_TICKETS_Iterator * 251struct RECLAIM_TICKETS_Iterator *
253RECLAIM_TICKETS_iteration_start ( 252RECLAIM_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 */
265int 264int
266RECLAIM_TICKETS_init (const struct GNUNET_CONFIGURATION_Handle *c); 265RECLAIM_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 */
273void 272void
274RECLAIM_TICKETS_deinit (void); 273RECLAIM_TICKETS_deinit(void);
275 274
276#endif 275#endif