diff options
Diffstat (limited to 'brandt.h')
-rw-r--r-- | brandt.h | 80 |
1 files changed, 40 insertions, 40 deletions
@@ -41,9 +41,9 @@ struct BRANDT_Auction; * @return 0 on success, -1 on failure. */ typedef int -(*BRANDT_BroadcastCallback) (void *auction_closure, - const void *msg, - size_t msg_len); +(*BRANDT_BroadcastCallback)(void * auction_closure, + const void *msg, + size_t msg_len); /** @@ -59,9 +59,9 @@ typedef int * @return 0 on success, -1 on failure. */ typedef int -(*BRANDT_UnicastSellerCallback) (void *auction_closure, - const void *msg, - size_t msg_len); +(*BRANDT_UnicastSellerCallback)(void * auction_closure, + const void *msg, + size_t msg_len); /** @@ -80,10 +80,10 @@ typedef int * is private and the user did not win. */ typedef void -(*BRANDT_ReportResultCallback) (void *auction_closure, - unsigned int bidder_id, - int status, - uint16_t price); +(*BRANDT_ReportResultCallback)(void * auction_closure, + unsigned int bidder_id, + int status, + uint16_t price); /** @@ -103,24 +103,24 @@ typedef void * black-box pointer, do NOT access/change it or the data it points to! */ struct BRANDT_Auction * -BRANDT_join (BRANDT_BroadcastCallback broadcast, +BRANDT_join (BRANDT_BroadcastCallback broadcast, BRANDT_UnicastSellerCallback unicast, - BRANDT_ReportResultCallback report, - const void *auction_closure, - const void *auction_data, - size_t auction_data_len); -// FIXME: where do I specify my bid? - - -// FIXME: Distinguish handles for seller/buyers -// FIXME: have cancellation (BRANDT_join_cancel()) -// FIXME: provide means to extract a hash from auction data to -// tie cryptographic operations to application-readable proposal -// FIXME: have separate function to export 'out' variables -// FIXME: might want to specify timeout? How do we deal with time? -// FIXME: separate creating an auction from starting it; initial -// setup needs more auction proposal details (hash, timeout, -// bid structure), later we need to know # participants + BRANDT_ReportResultCallback report, + const void * auction_closure, + const void * auction_data, + size_t auction_data_len); +/* FIXME: where do I specify my bid? */ + + +/* FIXME: Distinguish handles for seller/buyers */ +/* FIXME: have cancellation (BRANDT_join_cancel()) */ +/* FIXME: provide means to extract a hash from auction data to */ +/* tie cryptographic operations to application-readable proposal */ +/* FIXME: have separate function to export 'out' variables */ +/* FIXME: might want to specify timeout? How do we deal with time? */ +/* FIXME: separate creating an auction from starting it; initial */ +/* setup needs more auction proposal details (hash, timeout, */ +/* bid structure), later we need to know # participants */ /** * Create a new auction described by the @a auction_data parameter. * @@ -148,14 +148,14 @@ BRANDT_join (BRANDT_BroadcastCallback broadcast, * black-box pointer, do NOT access/change it or the data it points to! */ struct BRANDT_Auction * -BRANDT_new (BRANDT_BroadcastCallback broadcast, +BRANDT_new (BRANDT_BroadcastCallback broadcast, BRANDT_ReportResultCallback report, - const void *auction_closure, - const void **auction_data, - size_t *auction_data_len, - uint16_t num_prices, - enum BRANDT_AuctionMode m, - int outcome_public); + const void * auction_closure, + const void ** auction_data, + size_t * auction_data_len, + uint16_t num_prices, + enum BRANDT_AuctionMode m, + int outcome_public); /** @@ -168,8 +168,8 @@ BRANDT_new (BRANDT_BroadcastCallback broadcast, */ void BRANDT_got_broadcast (struct BRANDT_Auction *auction, - void *msg, - size_t msg_len); + void * msg, + size_t msg_len); /** @@ -185,10 +185,10 @@ BRANDT_got_broadcast (struct BRANDT_Auction *auction, */ void BRANDT_got_unicast (struct BRANDT_Auction *auction, - void *msg, - size_t msg_len); + void * msg, + size_t msg_len); -///TODO: Error handling functions? +/**TODO: Error handling functions? */ -#endif +#endif /* ifndef _BRANDT_BRANDT_H */ |