summaryrefslogtreecommitdiff
path: root/brandt.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-06-12 01:13:03 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-06-12 01:14:22 +0200
commit1d3b927c3743f626f0ffb3f49c8167c4efb34a67 (patch)
treef259651699325e94e17b81067090b0d8a64419fd /brandt.h
parente0f63621dd45a9da0fa06bee3e4d3cde6ca550cf (diff)
uncrustify brandt.h
Diffstat (limited to 'brandt.h')
-rw-r--r--brandt.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/brandt.h b/brandt.h
index 4791729..1f95d40 100644
--- a/brandt.h
+++ b/brandt.h
@@ -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 */