**/
/**
- * fna_spare_get_capacity()
+ * fna_resource_get_capacity()
*
* This operation gets the spare capacity currently assigned to a importance
* level. If we divide this value by UINT32_MAX we will get the network
* FNA_ERR_BAD_ARGUMENT: if pointers are NULL \n
*
**/
-int fna_spare_get_capacity
+int fna_resource_get_capacity
(const frsh_resource_id_t resource_id,
const int importance,
uint32_t *capacity);
/**
- * fna_spare_get_total_weight()
+ * fna_resource_get_total_weight()
*
* This function gets the sum of the weight parameters for all vres in a
* network of an importance level.
* FNA_ERR_BAD_ARGUMENT: if pointers are NULL \n
*
**/
-int fna_spare_get_total_weight
+int fna_resource_get_total_weight
(const frsh_resource_id_t resource_id,
const int importance,
int *total_weight);
/**
- * fna_spare_release_capacity()
+ * fna_vres_decrease_capacity()
*
* This function allows to ask for less budget and period than what we
* received. The request must be compatible with the rest of contract
* contract \n
*
**/
-int fna_spare_release_capacity
+int fna_vres_decrease_capacity
(const frsh_resource_id_t resource_id,
const fna_vres_id_t vres,
const struct timespec new_budget,
/**
* fna_message_get_tx_time()
*
- * This operation gives the worst case transmission time that it takes to
+ * This operation gives the physical transmission time that it takes to
* send a message of the nbytes size through the network designated by
- * resource_id, including any network overheads (fragmentation in packets,
+ * resource_id, not including any network overheads (fragmentation in packets,
* headers, retransmissions,...).
*
* It is be used by the application to calculate the minimum and
* maximum budgets used in the preparation of network contracts.
+ * (Note that in the negotiation overheads must be taken into account)
*
* @param[in] resource_id The network we want the tx time from.
* @param[in] nbytes Number of bytes of the message
- * @param[out] tx_time The transmission time for nbytes (including overheads)
+ * @param[out] tx_time The transmission time for nbytes (without overheads)
*
* @return
* FNA_NO_ERROR: in this case it also means contract accepted \n