aboutsummaryrefslogtreecommitdiff
path: root/brandt.h
diff options
context:
space:
mode:
Diffstat (limited to 'brandt.h')
-rw-r--r--brandt.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/brandt.h b/brandt.h
index ec3c959..318da4f 100644
--- a/brandt.h
+++ b/brandt.h
@@ -97,20 +97,21 @@ BRANDT_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx);
97 * @param[in] unicast Pointer to the unicast callback function 97 * @param[in] unicast Pointer to the unicast callback function
98 * @param[in] result Pointer to the result callback function 98 * @param[in] result Pointer to the result callback function
99 * @param[in] auction_closure Closure pointer representing the auction. This 99 * @param[in] auction_closure Closure pointer representing the auction. This
100 * will not be touched by libbrandt. It is only passed to the callbacks. 100 * will not be touched by libbrandt itself. It is only passed to the callbacks.
101 * @param[in] auction_data The auction information data a an opaque data 101 * @param[in] auction_data The auction information data published by the seller.
102 * structure. It will be parsed and checked by BRANDT_join(). 102 * This is an opaque data structure. It will be parsed and checked by
103 * BRANDT_join().
103 * @param[in] auction_data_len The length in bytes of the @a auction_data 104 * @param[in] auction_data_len The length in bytes of the @a auction_data
104 * structure. 105 * structure.
105 * @return A pointer, which should only be remembered and passed to 106 * @return A pointer, which should only be remembered and passed to
106 * libbrandt functions when the client needs to refer to this auction. This is a 107 * libbrandt functions when the client needs to refer to this auction. This is a
107 * black-box pointer, do NOT access/change it or the data it points to! 108 * black-box pointer, do NOT dereference/change it or the data it points to!
108 */ 109 */
109struct BRANDT_Auction * 110struct BRANDT_Auction *
110BRANDT_join (BRANDT_CbBroadcast broadcast, 111BRANDT_join (BRANDT_CbBroadcast broadcast,
111 BRANDT_CbUnicast unicast, 112 BRANDT_CbUnicast unicast,
112 BRANDT_CbResult result, 113 BRANDT_CbResult result,
113 const void *auction_closure, 114 void *auction_closure,
114 const void *auction_data, 115 const void *auction_data,
115 size_t auction_data_len); 116 size_t auction_data_len);
116/* \todo: where do I specify my bid? */ 117/* \todo: where do I specify my bid? */
@@ -149,7 +150,7 @@ BRANDT_join (BRANDT_CbBroadcast broadcast,
149 * winner and the seller. 150 * winner and the seller.
150 * @return A pointer, which should only be remembered and passed to 151 * @return A pointer, which should only be remembered and passed to
151 * libbrandt functions when the client needs to refer to this auction. This is a 152 * libbrandt functions when the client needs to refer to this auction. This is a
152 * black-box pointer, do NOT access/change it or the data it points to! 153 * black-box pointer, do NOT dereference/change it or the data it points to!
153 */ 154 */
154struct BRANDT_Auction * 155struct BRANDT_Auction *
155BRANDT_new (BRANDT_CbBroadcast broadcast, 156BRANDT_new (BRANDT_CbBroadcast broadcast,
@@ -157,6 +158,8 @@ BRANDT_new (BRANDT_CbBroadcast broadcast,
157 void *auction_closure, 158 void *auction_closure,
158 void **auction_data, 159 void **auction_data,
159 size_t *auction_data_len, 160 size_t *auction_data_len,
161 struct GNUNET_TIME_Absolute time_start,
162 struct GNUNET_TIME_Relative time_round,
160 uint16_t num_prices, 163 uint16_t num_prices,
161 uint16_t m, 164 uint16_t m,
162 int outcome_public); 165 int outcome_public);