]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Update transaction API master
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 25 Jun 2010 23:16:14 +0000 (01:16 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 25 Jun 2010 23:16:14 +0000 (01:16 +0200)
frsh_transaction.h

index 7071b2180cf33e967dc0ecced2e1597550f12a55..3b81ebd4d022a5516970d2129120e8dde72307e4 100644 (file)
@@ -66,16 +66,16 @@ frsh_transaction_destroy(frsh_transaction_t *transaction);
  * @param transaction Transaction
  * @param contract Contract to add
  * 
- * @param id ID of the contract within the transaction. The ID is used
- * in frsh_transaction_alloc_vres(). The ID of the first added
- * contract must be zero, of the second contract one, etc.
+ * @param index Index of the contract within the transaction. The
+ * index is used in frsh_transaction_alloc_vres(). The first added
+ * contract must have zero index, the second one, etc.
  * 
  * @return Zero on success, non-zero error code on return.
  */
 int
 frsh_transaction_add_contract(frsh_transaction_t *transaction,
                              frsh_contract_t *contract,
-                             int id);
+                             int index);
 
 /** 
  * Negotiates a multi-resource transaction.
@@ -120,19 +120,19 @@ frsh_transaction_wait_for_name(frsh_transaction_t *transaction,
 /** 
  * Allocates VRES from the negotiated transaction.
  *
- * Given the transaction object and an ID (see
+ * Given the transaction object and an index (see
  * frsh_transaction_add_contract()) this function requests allocation
  * of the
  * 
  * @param t 
  * @param vres 
- * @param i
+ * @param index
  * 
  * @return 
  */
 int
 frsh_transaction_alloc_vres(frsh_transaction_t *t,
-                           int id,
+                           int index,
                            frsh_vres_id_t *vres);
 
 FRSH_CPP_END_DECLS