* @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.
/**
* 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 id
+ * @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