From 115801f16cbcb3c50d0703654d6202f745f12be6 Mon Sep 17 00:00:00 2001 From: telleriam Date: Tue, 13 Feb 2007 11:54:51 +0000 Subject: [PATCH] Added forgotten function frsh_get_remaining_statiblity_time() git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@295 35b4ef3e-fd22-0410-ab77-dab3279adceb --- frsh_spare_capacity.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frsh_spare_capacity.h b/frsh_spare_capacity.h index 2b69d37..0bead40 100644 --- a/frsh_spare_capacity.h +++ b/frsh_spare_capacity.h @@ -225,6 +225,23 @@ int frsh_get_contract_reclamation_parameters int *weight); +/** + * frsh_get_remaining_stability_time() + * + * This operation returns the remaining_stability_time for the server. + * + * @return 0 if successful + * FRSH_ERR_BAD_ARGUMENT : if the value of the server argument is not in range or + * capacity is NULL + * FRSH_ERR_NOT_SCHEDULED_CALLING_THREAD : if the calling thread is not + * scheduled under the FRSH + * FRSH_ERR_INVALID_SCHEDULER_REPLY : the scheduler is wrong or not running + * FRSH_ERR_NOT_CONTRACTED_SERVER : if the server has been cancelled or it + * is not valid + * + **/ +int frsh_get_remaining_stability_time(frsh_server_id server, + struct timespec *remaining_stability_time); /** * frsh_get_available_capacity() -- 2.39.2