aboutsummaryrefslogtreecommitdiff
path: root/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'internals.h')
-rw-r--r--internals.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/internals.h b/internals.h
index 4624347..656e798 100644
--- a/internals.h
+++ b/internals.h
@@ -37,13 +37,27 @@ enum rounds {
37}; 37};
38 38
39 39
40enum auction_type {
41 auction_firstPrice,
42 auction_mPlusFirstPrice,
43 auction_last
44};
45
46
47enum outcome_type {
48 outcome_private,
49 outcome_public,
50 outcome_last
51};
52
53
40/** 54/**
41 * This struct describes an auction and has to be followed by #description_len 55 * This struct describes an auction and has to be followed by #description_len
42 * bytes of arbitrary data where the description of the item to be sold is 56 * bytes of arbitrary data where the description of the item to be sold is
43 * stored. 57 * stored.
44 * 58 *
45 * \todo: align to a multiple of 64bit */ 59 * \todo: align to a multiple of 64bit */
46struct BRANDT_AuctionDescrP { 60struct BRANDT_DescrP {
47 /** The length of the description in bytes directly following this struct */ 61 /** The length of the description in bytes directly following this struct */
48 uint32_t description_len; 62 uint32_t description_len;
49 63
@@ -63,7 +77,7 @@ struct BRANDT_AuctionDescrP {
63 77
64 78
65struct BRANDT_Auction { 79struct BRANDT_Auction {
66 struct BRANDT_AuctionDescrP *desc; /** pointer to the auction information */ 80 struct BRANDT_DescrP *desc; /** pointer to the auction information */
67 81
68 BRANDT_CbBroadcast bcast; /** broadcast callback */ 82 BRANDT_CbBroadcast bcast; /** broadcast callback */
69 BRANDT_CbUnicast ucast; /** unicast callback */ 83 BRANDT_CbUnicast ucast; /** unicast callback */