From 2ca79f782952a3d871591bfce458b88d9d359c9a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 26 Jun 2010 01:16:14 +0200 Subject: [PATCH] Update transaction API --- frsh_transaction.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frsh_transaction.h b/frsh_transaction.h index 7071b21..3b81ebd 100644 --- a/frsh_transaction.h +++ b/frsh_transaction.h @@ -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 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 -- 2.39.2